feat(hermes): add native lifecycle hooks for Hermes#386
Open
beruro wants to merge 2 commits into
Open
Conversation
Pre-commit hook ran. Total eslint: 0, total circular: 0
beruro
marked this pull request as ready for review
July 15, 2026 15:53
Pre-commit hook ran. Total eslint: 0, total circular: 0
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
~/.orgii/hermes-hook.envdescriptor; integrated terminals retain per-terminal credentialsWhy
Foreground-process polling can tell that Hermes is alive, but it cannot distinguish active model/tool work from an idle TUI or an approval boundary. Hermes official plugin hook API exposes those lifecycle transitions directly, and the global descriptor follows the same app-running model used by other global Hermes hook integrations.
User impact
Hermes tabs inside ORGII keep accurate status, hover details, and notification click targeting. Hermes started in another terminal can now also report lifecycle events and raise an approval notification while ORGII is running. ORGII does not invent a terminal tab for an external process, so approval still happens in the terminal that launched Hermes.
Activity previews are allowlisted, truncated, and redacted. Raw prompts, complete argument objects, file contents, and tool results are not transported.
Validation
org2: passedgit diff --check: passedsrc/engines/ChatPanel/InputArea/components/ContextInfoButton.tsx:468