Repository navigation
AI-154 A question's brief includes what the agent sent with send_to_user - #31
Merged
Merged
Conversation
usa-rs USA-3219 posted its plan with send_to_user, asked, and ended with 'The plan ... is in the message above'. The dashboard's question read returned only chat messages, so the card showed that line and its window never had the plan. The read now adds the asking turns' send_to_user messages to the window and joins those sent before the ask into the brief (with parts, so the dashboard folds no copy). With message-mode questions Claude's instructions no longer name a question's subject as a use of send_to_user: the brief goes in the final reply.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosNo All 64 scenario measurements
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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.
usa-rs USA-3219 posted its plan with
send_to_user, asked the Plan question, and ended with "The plan ... is in the message above"./api/t4/threads/:id/questionreturned only chat messages, so the dashboard card showed that line and its window never held the plan.send_to_usermessages (completeddynamic_toolitems) tomessages, and joins those sent before the ask intobriefwith the reply, listing them inbrief.parts(t4/questionBrief.ts, tested).T4_CLAUDE_QUESTIONS_AS_MESSAGES, Claude's send_to_user instructions no longer name a question's subject as a use: the brief goes in the final reply.Tests:
questionBrief.test.ts,ClaudeAdapterV2.test.ts,AgentContextBudget.test.ts; server typecheck clean. Checked the stored shape against USA-3219'ssend_to_useritem (same run as its question).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.