Skip to content

feat: show model thinking/reasoning in task tree viewer#15

Draft
belisarius222 wants to merge 1 commit intodevfrom
feat/thinking-in-task-tree
Draft

feat: show model thinking/reasoning in task tree viewer#15
belisarius222 wants to merge 1 commit intodevfrom
feat/thinking-in-task-tree

Conversation

@belisarius222
Copy link
Contributor

Summary

  • When a sub-task's model emits chain-of-thought reasoning, the task tree viewer now shows a thinking entry at the end of the tool call list
  • Selecting the thinking entry displays the full reasoning text in the detail pane (bottom third), streaming in live as CoT tokens arrive
  • When reasoning text exceeds available space, the most recent tokens are shown (tail view)

Details

  • New ThinkingInfo type tracks reasoning text, streaming state, and start time
  • selectedSessionData memo now scans for reasoning parts alongside tool parts
  • Thinking row uses icon while streaming and when complete, with a text preview
  • ThinkingDetailView component renders in the detail section, re-rendering every tick for live updates
  • Navigation (arrow keys, tab, home/end) updated to include the thinking entry in the selectable items

Test plan

  • Run bun dev and trigger a task that uses a thinking model (e.g. Claude with extended thinking)
  • Open task tree viewer and select the sub-task — verify "thinking" row appears at bottom of tool call list
  • Select the thinking row — verify CoT text streams in the detail pane
  • Verify long CoT text shows most recent content (tail behavior)
  • Verify keyboard navigation (j/k, tab, home/end) works with thinking entry
  • Verify non-thinking tasks still display normally

🤖 Generated with Claude Code

When a sub-task's model is emitting chain-of-thought reasoning, the task
tree viewer now shows a "thinking" entry at the end of the tool call list.
Selecting it displays the reasoning text in the detail pane, streaming in
live and showing the most recent tokens when content exceeds available space.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant