Repository navigation
Hosted agents: refuse a mail that would wake a session with a cold prompt cache - #3
Merged
Merged
Conversation
…ompt cache mail_send from a hosted chat to one idle Claude Code session whose prompt cache has expired is refused with the idle time, the tokens a wake would re-read and the live sessions. wake_cold sends anyway. Asked for by Alexander on 2026-12-04; written from a cloud session without a Swift toolchain, so CI on this branch is its first build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011nXBkm9upAoTWX1BhWGVFd
Owner
Author
|
Merged on Alexander's word as edde095. CI on
So the red result is the clipboard selftest's synthetic click timing out on the runner, not the cold-wake gate. I used the one re-run and did not revert. The check posts a mouse-up and then enters the table's tracking loop; a fix would be to make that click independent of event delivery on the runner, which needs a Mac to try. Generated by Claude Code |
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.
Alexander asked for this on 2026-12-04: a hosted chat should not have to ask him which agent is idle, and a mail must not wake a session whose prompt cache is cold without saying so.
What changes
mail_sendfrom a hosted chat to one idle Claude Code session whose prompt cache has expired is refused. The answer names the idle time, about how many tokens the wake would re-read at full price and the sessions that are live.wake_coldin the call sends anyway, for the one session the person named. It is refused together withall.PromptCacheParser, the reading the Agents rows show.Not in this change
agent-mailis not gated. That lives in the dotfiles, which this session could not open.wake_coldthrough in ANcpLua/agents-relay; without it the override is simply never set.Verification
./pack.sh checkon macOS is its first build;hosted-agents-selftestcovers the gate, the transcript reading and thewake_coldargument.Generated by Claude Code