Skip to content

fix(shell): "No agent was notified" hint vs wake-on-message contradiction (#914) - #918

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/mention-hint-wake-honesty
Aug 13, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/mention-hint-wake-honesty

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

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 === 0 from the send response, but wake-on-message targets (ADR-018 D8) live in a separate woken list that enqueueMentions already returns and the controller never projected.

  • Backend: agentDelivery gains woken (count). Additive — older clients ignore it, and the frontend treats it as optional for older backends.
  • Frontend: hint additionally requires woken === 0; and an agent_typing_start for 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

…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
@lilyshen0722
lilyshen0722 merged commit 9f67dda into main Aug 13, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/mention-hint-wake-honesty branch August 13, 2026 02:49
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.

Mention-honesty banner says 'No agent was notified' while a wake-on-message agent wakes, types, and replies

1 participant