Skip to content

transcript diffs, thinking blocks, error hints, and mouse selection#99

Merged
jbj338033 merged 1 commit into
mainfrom
feat/tui-ui-improvements
Jul 5, 2026
Merged

transcript diffs, thinking blocks, error hints, and mouse selection#99
jbj338033 merged 1 commit into
mainfrom
feat/tui-ui-improvements

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

A set of goat-tui UI improvements, each scoped by necessity against the current code:

  • Edit diffs render inline in the transcript (+/ colored), reusing the diff already produced in ToolOutcome.summary; also fixes a latent cache bug where item_signature never hashed the summary.
  • Thinking blocks materialize as a collapsible ▸ Thought line (Ctrl+T to expand raw reasoning), preserved across /resume via a new TranscriptEntry::Thinking.
  • Errors gain a left rail plus a structured Event::Error.hint with an → /command action line, and actionable hints are backfilled for the five previously bare categories.
  • Inline · separators audited by role: whitespace where anchored, for state→action, · kept only for anchorless peer lists.
  • Composer Esc-clear now recovers the wiped draft via history ().
  • Mouse: drag-to-select with highlight, Cmd+C copy (WYSIWYG minus the structural gutter, CJK-aware, clipboard write offloaded), double-click word select, and click-to-zoom for inline images.
  • Scroll: a ↓ N below indicator when scrolled up with content below.

Skipped by necessity (rationale in the plan): keybinding customization, custom themes, header/indicator density, transcript virtualization (already viewport-bounded), scrollbar drag.

Verification

  • cargo test --workspace — passed (goat-tui 225, select.rs 11 pure-logic tests)
  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo fmt --all -- --check — passed
  • Interactive paths (drag-select→Cmd+C, image zoom, thinking toggle) need manual cargo run in a real tty; the full-screen TUI is not driven headlessly.

@jbj338033 jbj338033 merged commit 2d198d2 into main Jul 5, 2026
5 checks passed
@jbj338033 jbj338033 deleted the feat/tui-ui-improvements branch July 5, 2026 13:31
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