Skip to content

Live thought line on the working row (#1531) - #1535

Merged
currentbits merged 1 commit into
mainfrom
coder/1531-live-thought-line-a3538a
Oct 9, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/1531-live-thought-line-a3538a

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Part of #1531.

While the agent is thinking, the working row now shows the last line of its latest thought instead of just "Thinking…". Markdown emphasis such as Claude's **Planning the fix** headers is stripped, and the line is cut off at 120 characters. When there is no thought text yet, the row still says "Thinking…". A hung warning, workflow fan-out or a running tool still take priority over the thought.

Tests are in test/workingLabel.test.ts, plus updated call-site expectations in test/threadView.test.tsx.

🤖 Generated with Claude Code

The status strip showed a bare "Thinking…" while reasoning streamed.
It now shows the last non-empty line of the latest thought, with
markdown emphasis stripped and clamped to 120 chars, falling back to
"Thinking…" when there is no text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T12:07:12.342522Z b92baa3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b92baa30b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +152 to +153
const liveThought = latestThinkingId
? (detail?.messages.find((m) => m.id === latestThinkingId)?.text ?? null)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the live tail after reasoning truncation

When a Claude, Kimi, Cursor, OpenCode, or Codex reasoning block grows beyond 8,000 characters, the provider adapters store only its prefix in ChatMessage.text (THINKING_TRUNCATE in electron/runner.js, with truncate implemented as slice(0, max) in electron/claude.js). Reading the last line from that stored value therefore makes the new working-row text freeze at the 8,000-character boundary even while further thoughts are streaming; preserve or transmit the current tail separately so the row continues showing the latest thought.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit 6fe2e86 into main Oct 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant