Repository navigation
Conversation
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.
Every Stop from an agent reads "Done", so a turn that finished and a turn that ended asking you something look the same in Events, and you have to open each one to find out which is waiting on you.
Claude Code and Codex both send the last reply on Stop (
last_assistant_message), so notify.sh now passes the last 2,000 characters of it through aslast_message. Not for SubagentStop, a subagent's reply is for the agent that launched it. The app looks at the closing line of prose (skipping a trailing code block, list markers and emphasis) and if it ends on a "?" the row shows that question in place of "Done", with its own icon. Only the last line on purpose, an agent that asked something mid reply and then carried on isn't waiting on you.The chip row gets Questions and Done chips ahead of the feed tags, so ⇧⏎ or option-click on Questions shows just those. F, Space and the rest work as they already did. Permission prompts still have no chip and can't be hidden, same reason as before. FeedTagFilter is EventTagFilter now since it isn't feed only any more. History records a
questionflag, so typing question in the history filter finds them.Gemini, pi and older Claude Code builds don't send the reply, so their turns stay Done. Reading the transcript tail would cover those, left out of this one.
Before:
After:
Questions only (the prompt stays):
Tests are in AgentQuestionTests, EventListenerTests, EventLogTests and EventsListTests. I also ran the hook's payload builder against a scratch socket with a 3,000 character Stop reply and a SubagentStop to check what goes over the wire.