Repository navigation
fix(shell): "No agent was notified" hint vs wake-on-message contradiction (#914) - #918
Merged
Merged
Conversation
…Guide is waking (#914) The composer delivery hint keyed on enqueued===0 from the send response, but wake-on-message targets (ADR-018 D8 — the Guide in every fresh workspace) are counted in a separate `woken` list the controller never projected. Result on signup day: "No agent was notified — @mention one" rendered directly above "Guide is thinking…", and the banner stayed pinned above the Guide's landed reply. The honesty surface lied in the first pod every new user sees. Two changes, both minimal: - messageController projects `woken` (count) into the agentDelivery envelope; the hint now also requires woken===0. - An `agent_typing_start` for the current pod clears any visible hint — typing falsifies the banner's claim regardless of how the agent was reached. Tests: controller envelope cases updated + a woken>0 case; frontend hint suite gains woken-suppression and typing-clears-hint cases (socket mock made settable per-test). Backend unit tier green locally; frontend jest runs in CI (its tier on this machine); typecheck clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
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.
Closes #914.
Caught in the 2026-08-12 live smoke: sending a mention-less message in a fresh workspace rendered "No agent was notified — @mention one to get a reply. Try @guide" at the same moment "Guide is thinking…" appeared, and the banner stayed pinned above the Guide's landed reply.
Root cause: the hint keys on
agentDelivery.enqueued === 0from the send response, but wake-on-message targets (ADR-018 D8) live in a separatewokenlist thatenqueueMentionsalready returns and the controller never projected.agentDeliverygainswoken(count). Additive — older clients ignore it, and the frontend treats it as optional for older backends.woken === 0; and anagent_typing_startfor the current pod clears any visible hint, since typing falsifies the banner's claim no matter how the agent was reached.Tests: controller envelope cases + new woken>0 case (backend unit tier green locally); hint suite gains woken-suppression and typing-clears-hint cases. Frontend jest runs in CI (its tier on this machine); typecheck clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8