Skip to content

feat(tui): borderless conversation panel with scrollbar - #661

Merged
mohitranka merged 2 commits into
mainfrom
feat/tui-borderless-conversation
Sep 12, 2026
Merged

mohitranka merged 2 commits into
mainfrom
feat/tui-borderless-conversation

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Re-lands the change reverted in #660 through the normal review path.

Original intent (unchanged): the sidebar transcript becomes a flat surface instead of a bordered box.

  • Drop the sidebar Borders::ALL block; padding reproduces the exact origin and measure the border+padding provided (PANE_PAD_X + 1 per side, one row top/bottom), so no transcript line moves.
  • Thin scrollbar in the right padding only when the transcript overflows: │ track, ▐ thumb, no arrows; position follows the scroll-from-bottom offset.
  • Borderless focus cue: while the Sidebar block owns the keyboard the scrollbar takes the accent █ thumb and track; otherwise muted. Shape + colour keeps the one-keyboard-owner invariant without a box; the unfocused state matches the reference mock.
  • Composer, navigator and other panes untouched (explicit scope).

Docs: FORGE-DESIGN §7.1, §8.4, §9.4. Tests: new scrollbar unit test (fit = no track, thumb position, focused shape); forge-tui 1266 lib + integration pass; fmt/clippy clean. PTY-verified at 160×44.

Match the conversation-panel layout from the reference mock: the sidebar
transcript is a flat surface, not a bordered box.

- Drop the sidebar `Borders::ALL` block. The padding now reproduces the
  exact origin and measure the border+padding provided (PANE_PAD_X + 1 per
  side, one row top/bottom), so no transcript line moves.
- Paint a thin scrollbar in the right padding only when the transcript
  overflows: `│` track, `▐` thumb, no arrows. Position follows the view's
  scroll-from-bottom offset (0 = pinned to the newest line).
- Borderless focus cue: while the Sidebar block owns the keyboard the
  scrollbar takes the accent `█` thumb and track; otherwise it stays muted.
  Shape plus colour keeps the "one visible keyboard owner" invariant without
  a box, and the unfocused state matches the mock exactly.
- Composer, navigator and other panes untouched (explicit scope).

Docs: FORGE-DESIGN SS7.1, SS8.4, SS9.4 updated.
Tests: new scrollbar unit test (fit = no track, thumb position, focused
shape); forge-tui 1266 lib + integration pass; fmt/clippy clean. PTY
verified: no box around the transcript, track/thumb at 160x44, thumb turns
solid accent when the conversation is focused.
@mohitranka
mohitranka enabled auto-merge (squash) September 12, 2026 17:21
`git status` (and `git diff`) refresh the index and take `index.lock` by
default. The TUI polls status in the background, so a foreground `s` / `u`
stage could collide with a poll and fail with "Unable to create
'index.lock': File exists" — intermittently, which is how CI caught it:
`app::tests::diff::s_stages_the_selected_file_and_u_puts_it_back` failed
with the file still staged after `u`.

Pass `--no-optional-locks` to both background reads so they never take the
lock. Re-ran the diff suite 20x locally with no failures; forge-workspace
and forge-tui suites pass.
@mohitranka
mohitranka merged commit fcfa1b3 into main Sep 12, 2026
3 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