Repository navigation
Show sessions heed can't hear, and reconnect them - #286
Merged
Merged
Conversation
A hook message without the pane's token, or with one heed cannot check, is still not taken; when it names a session heed has and comes from that session's agent pane, the session now carries an Unheard value (reason, first and last time, count) for this run, cleared by the next message heed takes from that pane. Such a session is filed under Working instead of by the state it last reported. session.reconnect (gk in the sessions scope) restarts its agent; the right-click and Session menus offer it. Reading the session key reports why the key is this run's only when it is (SessionKeyRead), and a Keychain that cannot be read is no longer written over with a new key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n the session key is this run's only The session row says "can't hear it" with the key, and a quiet strip over its panes says "heed can't hear this pane — restart it to reconnect" with Restart. gk asks first, then ends the pane's process and its zmx session (here or on its host) and resumes the agent in a new terminal with this run's token, as resume does. A session key that could not be read or kept goes in the call log once and Settings shows a notice for the run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Sessions whose agent pane was started by an older heed (a zmx pane heed reattached, or an agent resumed in one) carry no session token, so heed doesn't take their hook messages. Until now that happened silently: the session kept its last state and was filed under Parked while its agent worked. This makes it visible and fixable. Which messages heed takes is unchanged.
What changed
session.reconnect(gk, also in the right-click and Session menus) asks first, ends the pane's process and its zmx session, and resumes the agent in a fresh pane.session.key) and says so in Settings. A Keychain read error no longer makes heed write a new key over the stored one.Verified
mise run fmt,lint,text-check,tutor-check(0 problems) andtest(2585 tests) pass after rebasing on main; seven mutations each failed their test.Not tested
🤖 Generated with Claude Code