Skip to content

fix(tui): separate mixed thought and tool activity details - #837

Merged
agenteinstinct1-max merged 2 commits into
dev-vibecodedfrom
fix/activity-semantic-spacing-816
Nov 11, 2026
Merged

agenteinstinct1-max merged 2 commits into
dev-vibecodedfrom
fix/activity-semantic-spacing-816

Conversation

@agenteinstinct1-max

@agenteinstinct1-max agenteinstinct1-max commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

Closes #816.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Leave one blank terminal row between semantic detail units in an expanded activity block that mixes reasoning and tools. Keep the header adjacent to the first detail, tool-only groups compact, and the existing preview contents and indent.

Two files change: the session route and its mounted activity-padding tests. The existing keyed part flow is retained. This does not redesign #792 or change other transcript spacing.

How did you verify your code works?

At f532079 on base 7b84622, Bun 1.3.14 focused activity-padding tests pass: 29 tests, 200 expectations. With only the route fix reverted, 6 tests fail and 23 pass. Mounted normal (130-column) and narrow (80-column) cases cover Thought, a three-of-fifteen-line Write preview, Thought, failed Edit, Thought, plus expansion/collapse and error details.

Before/after mounted-renderer PNGs were visually inspected. A separate real Linux PTY check used the real Session fixture and CLI renderer at 130 and 80 columns, captured the ANSI stream and inspected its terminal-emulated pixels. This used synthetic data, no model or network calls. No local root typecheck was run; exact-head CI typecheck is green. Linux/Windows unit CI and covered review remain merge requirements.

Screenshots / recordings

Normal/narrow before/after PTY frames and mounted error frames were visually inspected. Preview syntax colors, three-line contents, indent and semantic boundaries are preserved. Toggle/error clicks are covered by mounted tests, not by the PTY capture. No live Windows or model-generation testing is claimed.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown

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.

@kilo-code-bot

kilo-code-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Reviewed the PR diff for packages/tui/src/routes/session/index.tsx and packages/tui/test/cli/tui/activity-padding.test.tsx (HEAD f532079472d2b1517703b6ce5ff99e40e2e3720e). No CRITICAL, WARNING, or SUGGESTION findings were identified in changed code.

Files Reviewed (2 files)
  • packages/tui/src/routes/session/index.tsx - adds semantic-unit spacing for mixed reasoning/tool activity detail rows while keeping header-first and tool-only cases compact
  • packages/tui/test/cli/tui/activity-padding.test.tsx - expands mounted coverage for mixed detail spacing, preview/expand behavior, and updated spacing expectations; fixes failedToolPart fixture to match ToolStateError type
Previous Review Summary (commit b1df720)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit b1df720)

Status: No Issues Found | Recommendation: Merge

Overview

Reviewed the PR diff for packages/tui/src/routes/session/index.tsx and packages/tui/test/cli/tui/activity-padding.test.tsx (HEAD b1df720cd9c1536668609f2219050bb41d65077e). No CRITICAL, WARNING, or SUGGESTION findings were identified in changed code.

Files Reviewed (2 files)
  • packages/tui/src/routes/session/index.tsx - adds semantic-unit spacing for mixed reasoning/tool activity detail rows while keeping header-first and tool-only cases compact.
  • packages/tui/test/cli/tui/activity-padding.test.tsx - expands mounted coverage for mixed detail spacing, preview/expand behavior, and updated spacing expectations.

Reviewed by free · Input: 138.3K · Output: 9.5K · Cached: 1.3M

@agenteinstinct1-max
agenteinstinct1-max merged commit ef8e500 into dev-vibecoded Nov 11, 2026
8 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.

tui: interleaved Thought/write/edit details lose readable vertical separation

1 participant