Skip to content

feat(hermes): add native lifecycle hooks - #475

Open
beruro wants to merge 1 commit into
developfrom
junyu/rebuild-hermes-hooks
Open

feat(hermes): add native lifecycle hooks#475
beruro wants to merge 1 commit into
developfrom
junyu/rebuild-hermes-hooks

Conversation

@beruro

@beruro beruro commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

Hermes sessions do not currently report their native lifecycle through ORG2’s existing authenticated status pipeline, leaving external and integrated TUI sessions without authoritative lifecycle hooks.

Solution

  • Add and enable the managed orgii-status Hermes plugin.
  • Post privacy-safe lifecycle callbacks to the authenticated loopback server.
  • Translate Hermes events into the existing AgentStatusEventV1 pipeline.
  • Support external and integrated TUI sessions through ORGII_SESSION_ID.
  • Validation: 8 Python tests, Python compile check, scoped Rust formatting/clippy, diff check, and GitHub CI.

Potential risks

  • Hermes plugin/API changes could require lifecycle payload updates.
  • Loopback availability and session-ID propagation remain external runtime dependencies.
  • This PR deliberately excludes polling, UI, i18n, and historical merge content.

Verification

Published branch was rebased by GitHub onto current develop at 7be527a7a, producing head c4ff5b657. The rebase completed without conflicts, and changed-file/addition/deletion counts are unchanged from the pre-rebase PR. CI is rerunning on this integrated head.

Previous GitHub CI on head ff8cb2e6f:

  • pnpm install --frozen-lockfilePASS in Frontend (typecheck · lint · test).
  • pnpm typecheckPASS in Frontend (typecheck · lint · test).
  • pnpm lintPASS in Frontend (typecheck · lint · test).
  • pnpm run testPASS in Frontend (typecheck · lint · test).
  • node scripts/tauri/prepare-sidecars.cjs --profile debugPASS in Rust (clippy).
  • (cd src-tauri && cargo clippy --workspace --all-targets -- -D warnings)PASS in Rust (clippy).
  • AI-attribution history scan — PASS.

Not run: a live Hermes lifecycle callback against a packaged desktop build; loopback and session-ID propagation remain external runtime dependencies.

@beruro
beruro marked this pull request as ready for review July 21, 2026 13:52
@beruro
beruro force-pushed the junyu/rebuild-hermes-hooks branch 4 times, most recently from ed406a8 to f03f3e0 Compare July 30, 2026 15:08
@beruro
beruro force-pushed the junyu/rebuild-hermes-hooks branch from ff8cb2e to 7e23506 Compare August 10, 2026 04:05
@beruro
beruro force-pushed the junyu/rebuild-hermes-hooks branch from 9fd0cd3 to c4ff5b6 Compare August 10, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant