Skip to content

feat(server): Claude answers can stay visible outside the Worked-for fold - #6

Open
omar7550 wants to merge 1 commit into
mainfrom
feat/claude-answers-visible
Open

omar7550 wants to merge 1 commit into
mainfrom
feat/claude-answers-visible

Conversation

@omar7550

Copy link
Copy Markdown
Owner

Problem

A reply to a message often looked as if it never arrived. The agent wrote the full answer, then did more work in the same turn (a tool call, a question card, or a stop-hook continuation) and ended with a short closing note. Clients keep only a turn's last assistant message outside Worked for, unless the message is tagged phase: "final_answer". Codex tags its answers that way. Claude messages carry no phase, so the answer was folded away, and the user resent the question to see it. The same answer then came back as a new turn.

Upstream issue: pingdotgg#8879. Earlier client-side attempts were closed (pingdotgg#29859 showed every assistant message; pingdotgg#8075 used a length rule). This patch stays local for that reason.

Change

With T3CODE_CLAUDE_ANSWERS_VISIBLE=1 in the server's environment, a finished Claude message that reads as an answer is tagged final_answer. "Reads as an answer" means at least 400 characters, or at least 150 with a heading, list or table. Web and mobile already keep final_answer messages outside the fold, so no client change is needed. Short progress notes ("Now checking the deploy log.") still fold. Without the variable nothing changes.

Verification

  • Real case, Nov 17: the answer was written at 11:12 AM, followed by a question card and a 2-line closing note. The answer was folded, and the user resent the question at 11:14 AM. Tagged as above, it stays outside the fold, because the clients already exempt final_answer entries from the fold.
  • New tests: the answer rule separates progress notes from answers, and a finished Claude reply is tagged final_answer only when the setting is on. All 470 tests in ClaudeAdapterV2.test.ts pass; server typecheck, lint, fmt and knip are clean.
  • Runs on agentbox as part of local/nightly-patched, and on the Mac desktop app through the bundle patch in t3code-local-patches.

Written with Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 17, 2026
…fold

Claude messages carry no answer phase, so clients fold every message but a
turn's last one under Worked for. An answer followed by more work (a tool
call, a question card, a stop-hook continuation) then disappears and reads
as no reply. With T3CODE_CLAUDE_ANSWERS_VISIBLE=1, a finished Claude
message that reads as an answer (at least 400 characters, or 150 with a
heading, list or table) is tagged final_answer, which web and mobile
already keep outside the fold. Short progress notes still fold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omar7550
omar7550 force-pushed the feat/claude-answers-visible branch from d7b51ce to 7f8a6b3 Compare November 17, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant