claude-code - 💡(How to fix) Fix Focus mode: tool call output re-renders repeatedly during extended thinking (Orbiting) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54059Fetched 2026-04-28 06:40:21
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

When viewMode is set to "focus" in settings, the TUI repeatedly re-renders previous tool call outputs every time the model enters an extended thinking phase ("Orbiting..."). This results in the same block of tool outputs appearing 3-5+ times in the terminal scrollback during a single turn.

Root Cause

When viewMode is set to "focus" in settings, the TUI repeatedly re-renders previous tool call outputs every time the model enters an extended thinking phase ("Orbiting..."). This results in the same block of tool outputs appearing 3-5+ times in the terminal scrollback during a single turn.

Code Example

Bash(command1)
  ⎿  output1

Bash(command2)
  ⎿  output2

Orbiting… (2m 7s · ↓ 3.8k tokens · thought for 14s)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Bash(command1)          <-- REPEATED
  ⎿  output1

Bash(command2)          <-- REPEATED
  ⎿  output2

Bash(command3)
  ⎿  output3

Orbiting… (2m 31s · ↓ 4.8k tokens · thought for 14s)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Bash(command1)          <-- REPEATED AGAIN
  ⎿  output1

Bash(command2)          <-- REPEATED AGAIN
  ⎿  output2

Bash(command3)          <-- REPEATED AGAIN
  ⎿  output3
RAW_BUFFERClick to expand / collapse

Description

When viewMode is set to "focus" in settings, the TUI repeatedly re-renders previous tool call outputs every time the model enters an extended thinking phase ("Orbiting..."). This results in the same block of tool outputs appearing 3-5+ times in the terminal scrollback during a single turn.

Steps to reproduce

  1. Set "viewMode": "focus" in ~/.claude/settings.json
  2. Give Claude a task that requires many sequential tool calls (e.g., 10+ Bash calls searching for something)
  3. The model will periodically enter extended thinking ("Orbiting...") between batches of tool calls
  4. Observe: each time "Orbiting" appears, all previous tool call outputs from that turn re-render below the separator line

Expected behavior

Each tool call output should appear exactly once. The "Orbiting" thinking indicator should not trigger a re-render of already-displayed content.

Actual behavior

The terminal output looks like this pattern repeating:

⏺ Bash(command1)
  ⎿  output1

⏺ Bash(command2)
  ⎿  output2

✶ Orbiting… (2m 7s · ↓ 3.8k tokens · thought for 14s)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

⏺ Bash(command1)          <-- REPEATED
  ⎿  output1

⏺ Bash(command2)          <-- REPEATED
  ⎿  output2

⏺ Bash(command3)
  ⎿  output3

✢ Orbiting… (2m 31s · ↓ 4.8k tokens · thought for 14s)

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

⏺ Bash(command1)          <-- REPEATED AGAIN
  ⎿  output1

⏺ Bash(command2)          <-- REPEATED AGAIN
  ⎿  output2

⏺ Bash(command3)          <-- REPEATED AGAIN
  ⎿  output3

The repetition grows with each thinking phase — by the 4th or 5th "Orbiting" cycle, the entire prior tool history re-renders.

Environment

  • Claude Code version: 2.1.119
  • OS: macOS (Darwin 25.4.0)
  • Terminal: iTerm2 (iTerm.app)
  • Shell: zsh
  • TERM: xterm-256color
  • viewMode: focus
  • Model: Opus 4.6 via Bedrock

Notes

  • Does NOT happen with the initial file-write permission prompt duplication (that's a separate, milder issue)
  • Seems specific to focus mode — the re-render logic during thinking pauses may not correctly track what's already been flushed to the terminal
  • Purely cosmetic — execution and output correctness are unaffected
  • Makes long multi-tool sessions very hard to follow due to scrollback pollution

extent analysis

TL;DR

The issue can be mitigated by modifying the rendering logic to track and prevent re-rendering of previous tool call outputs during extended thinking phases in "focus" mode.

Guidance

  • Review the rendering logic in "focus" mode to identify why previous tool call outputs are being re-rendered during extended thinking phases.
  • Consider implementing a mechanism to track which outputs have already been displayed and skip re-rendering them.
  • Investigate if the issue is related to the viewMode setting and how it interacts with the rendering logic during thinking pauses.
  • Test the rendering logic with different viewMode settings to confirm if the issue is specific to "focus" mode.

Example

No code snippet is provided as the issue description does not include specific code references.

Notes

The issue seems to be specific to "focus" mode and does not affect execution or output correctness, but it can cause significant scrollback pollution in long multi-tool sessions.

Recommendation

Apply a workaround by modifying the rendering logic to prevent re-rendering of previous tool call outputs during extended thinking phases, as the issue is purely cosmetic and does not affect functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Each tool call output should appear exactly once. The "Orbiting" thinking indicator should not trigger a re-render of already-displayed content.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING