Skip to content

fix(claude-code): suppress intermediate tool call noise in TUI#3862

Draft
drkthng wants to merge 1 commit intogsd-build:mainfrom
drkthng:fix/cc-intermediate-tool-noise
Draft

fix(claude-code): suppress intermediate tool call noise in TUI#3862
drkthng wants to merge 1 commit intogsd-build:mainfrom
drkthng:fix/cc-intermediate-tool-noise

Conversation

@drkthng
Copy link
Copy Markdown
Contributor

@drkthng drkthng commented Apr 9, 2026

Summary

  • Removes intermediateToolCalls collection from CC stream adapter — CC-internal tool calls are no longer injected into the final AssistantMessage
  • Eliminates the wall of "(executed by Claude Code)" entries that rendered after every response, making the actual answer unreadable without scrolling

Fixes #3861

Test plan

  • Start GSD with claude-code provider active
  • Send a prompt that triggers CC to make multiple internal tool calls
  • Verify the response shows only the text answer — no "(executed by Claude Code)" entries appended
  • Verify thinking blocks still render correctly

@github-actions github-actions bot added bug Something isn't working High Priority labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

🟠 PR Risk Report — HIGH

Files changed 2
Systems affected 2
Overall risk 🟠 HIGH

Affected Systems

Risk System
🟠 high Tool System
🟡 medium TUI Components
File Breakdown
Risk File Systems
🟠 packages/pi-coding-agent/src/modes/interactive/components/tool-execution.ts TUI Components, Tool System
packages/pi-coding-agent/src/modes/interactive/components/__tests__/phantom-tool-block.test.ts (unclassified)

⚠️ High risk — please run full integration tests and verify tool/extension contracts.

@drkthng drkthng force-pushed the fix/cc-intermediate-tool-noise branch from d285a96 to 4c3d32d Compare April 9, 2026 12:14
@jeremymcs jeremymcs marked this pull request as ready for review April 9, 2026 13:04
@jeremymcs
Copy link
Copy Markdown
Collaborator

@drkthng looks like you've got more in this PR than just the noise issue. Please clean it up.

@drkthng drkthng force-pushed the fix/cc-intermediate-tool-noise branch from 4c3d32d to 2215e2f Compare April 9, 2026 13:42
When a model emits tool_use blocks that never execute (empty args, no
result), the TUI rendered them as noisy "Bash {}" lines. Now the
ToolExecutionComponent detects these phantom blocks and hides them.

Closes gsd-build#3861

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@drkthng drkthng force-pushed the fix/cc-intermediate-tool-noise branch from 2215e2f to 9183c78 Compare April 9, 2026 14:12
@drkthng drkthng marked this pull request as draft April 9, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working High Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Code provider floods TUI with intermediate tool call events

2 participants