Skip to content

feat(tui): align session composer chrome with opencode layout (08g) - #284

Merged
rotemmiz merged 3 commits into
mainfrom
plan/08g-tui-layout-chrome
Jul 24, 2026
Merged

rotemmiz merged 3 commits into
mainfrom
plan/08g-tui-layout-chrome

Conversation

@rotemmiz

@rotemmiz rotemmiz commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Restructure the session composer to match opencode’s prompt stack: elevated box with padding, in-box mode/model line, under-box hint row (tab agents / usage + ctrl+p commands).
  • Drop the separate bottom status strip that duplicated mode chips; textarea growth cap is now max(6, height/3) (overridable via prompt.max_height).
  • Tighten sidebar padding to (1, 2) and denser title spacing; refresh canvas goldens + add 08g layout tests. Plan: plans/08g-tui-layout-chrome.md.

Test plan

  • go test ./internal/tui/ -count=1
  • golangci-lint run ./internal/tui/...
  • Visually compare same session in Opcode42 vs opencode: composer height, mode line placement, sidebar density
  • Confirm splash still shows composer + centered hints

rotemmiz and others added 3 commits July 24, 2026 00:40
Fold mode/model into the elevated prompt box and put usage/hints on the
under-box row so the empty input bar reads tall like opencode; tighten
sidebar padding and use max(6, h/3) as the textarea growth cap.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stop double-counting the hint row in autocomplete Y; size the textarea to
barWidth-5 (border+padding under lipgloss v2); align resize with the
guttered stream column; tighten tests and mode-line gap.

Co-authored-by: Cursor <cursoragent@cursor.com>
Splash has no stream gutter; applying it there narrowed the home
composer. Also truncate sidebar cwd for Padding(1,2).

Co-authored-by: Cursor <cursoragent@cursor.com>
@rotemmiz
rotemmiz merged commit b5e1a0e into main Jul 24, 2026
7 checks passed
@rotemmiz
rotemmiz deleted the plan/08g-tui-layout-chrome branch July 24, 2026 10:03
rotemmiz added a commit that referenced this pull request Jul 27, 2026
…284)

* feat(tui): align session composer chrome with opencode layout (08g)

Fold mode/model into the elevated prompt box and put usage/hints on the
under-box row so the empty input bar reads tall like opencode; tighten
sidebar padding and use max(6, h/3) as the textarea growth cap.

* fix(tui): address 08g review — acPopupY and composer inner width

Stop double-counting the hint row in autocomplete Y; size the textarea to
barWidth-5 (border+padding under lipgloss v2); align resize with the
guttered stream column; tighten tests and mode-line gap.

* fix(tui): only gutter composer width on the session screen

Splash has no stream gutter; applying it there narrowed the home
composer. Also truncate sidebar cwd for Padding(1,2).
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