Repository navigation
fix(indicator): a short-lived Claude no longer leaves its tab marked (core 0.41.6) - #243
Merged
Merged
Conversation
…(core 0.41.6) The agent mark goes up on Claude's title and only the process poll takes it back. Since #238 spaced the forced looks, a Claude that lived a few seconds could come and go between two looks: the poll's "no agent" was unchanged, so never sent, and the mark stayed. Prism's full e2e caught it ("claude leaving clears the detection", core 0.41.2, twice). When the title stops naming an agent only the title vouched for, or the prompt comes back after one, the poll is now asked for its answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA
MEASURED (Claude Code 2.1.301, 2026-10-16): quitting, Claude writes an empty title and ConPTY then restores the shell's, so a real exit always ends the title. Asking on the prompt too wiped the hook state of the e2e's stand-in agents (a pwsh prompt between steps): 4 agentHooks and indicator checks failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 16, 2026
…(core 0.41.6) (#243) * fix(indicator): a short-lived Claude no longer leaves its tab marked (core 0.41.6) The agent mark goes up on Claude's title and only the process poll takes it back. Since #238 spaced the forced looks, a Claude that lived a few seconds could come and go between two looks: the poll's "no agent" was unchanged, so never sent, and the mark stayed. Prism's full e2e caught it ("claude leaving clears the detection", core 0.41.2, twice). When the title stops naming an agent only the title vouched for, or the prompt comes back after one, the poll is now asked for its answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA * fix(indicator): only the title's end asks the poll again, not the prompt MEASURED (Claude Code 2.1.301, 2026-10-16): quitting, Claude writes an empty title and ConPTY then restores the shell's, so a real exit always ends the title. Asking on the prompt too wiped the hook state of the e2e's stand-in agents (a pwsh prompt between steps): 4 agentHooks and indicator checks failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Prism's full e2e failed "claude leaving clears the detection" three times today (core 0.41.2 and 0.41.5), passing alone. Reported by the Prism session.
Cause (a regression from #238)
^Cthen the PS prompt). The CSS in that TERM TAIL is xterm 6's own<style>inside.xterm, not shell input.Fix (
agentArm.ts)recheck, the existingtermAgentAgainpath), which it sends at the next look even inside the backoff.powershell.exe, so a real exit always ends the title.agentHooks/indicatorchecks failed). A real agent's prompt comes after its title ended anyway.Tests: a new
agentArmtest fails on main's code and passes (the measured exit titles); a poll test confirms an asked "no agent" is sent unchanged inside the backoff. Unit 2231 pass, typecheck clean, lint 0 errors. e2eindicator,agentHooks43/43,agentDiag,agentKeys,backgroundWork,termReplies,paste,imagePaste,indicatorStylesall pass.Core change: Prism gets it with the next pin. Core 0.41.5 -> 0.41.6, app 0.55.5 -> 0.55.6.
🤖 Generated with Claude Code
https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA