Skip to content

feat(tui): calmer settings box, option to pack the chat list - #11

Merged
RealDoc06 merged 1 commit into
mainfrom
feat/settings-look
Nov 20, 2026
Merged

RealDoc06 merged 1 commit into
mainfrom
feat/settings-look

Conversation

@RealDoc06

@RealDoc06 RealDoc06 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The settings menu was a flat block of gray and bright cyan, harsh on the eyes, and the chat list always kept a blank row between chats.

The settings now sit in a rounded box in the theme's border color, with the selected setting marked by the same accent bar as the selected chat. A new Chat spacing setting packs the chat list, stored as "packed_chats" in config.json. The old Spacing is now Message spacing.

Before After
before after

Chat spacing off:

packed

Created with Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Note

Add packed chat list option and rounded border to TUI settings box

  • Adds a PackedChats config field (packed_chats) that removes the blank row between chats in the TUI chat list. The setting appears in the settings menu as "Chat spacing" and is loaded from and saved to the config in cli.go
  • Reworks the settings menu rendering in settings.go: it now draws as a rounded-border box with a title, padding rows, a selection bar, and a width capped at the terminal size
  • Renames the message-spacing setting to "Message spacing" and renders both spacing settings as on/off values
  • Fixes mouse hit testing to use the new settings layout offset (settingsTop) and the dynamic chatStride() for chat rows in tui.go; a setting change now batches afterMove with afterScroll
  • Behavioral Change: chat-list layout calculations in view.go use chatGap()/chatStride() instead of fixed constants, so list capacity adapts to the spacing setting

Macroscope summarized b13768b.

Summary by CodeRabbit

  • New Features
    • Added a chat-spacing setting to control whether blank rows appear between chats, alongside the existing message-spacing setting. The preference is saved and restored.
    • Updated the settings menu with a redesigned layout and clearer indicators for selected options.
  • Bug Fixes
    • Improved mouse selection accuracy in the settings menu and chat list.
    • Updated chat-list layout calculations to respect the selected spacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The TUI adds a persisted chat-spacing setting that controls blank rows between chats, separate from message spacing. The settings menu has a redesigned layout, and chat-list capacity and click mapping use the updated chat stride.

Changes: Chat spacing

Layer / File(s) Summary
Preference and settings wiring
internal/config/config.go, internal/tui/tui.go, internal/cli/cli.go, internal/tui/settings.go, internal/tui/tui_test.go
Configuration and TUI state include PackedChats. The settings menu toggles chat spacing separately from message spacing, and the CLI saves the preference. Tests cover the separate settings and saved value.
Chat-list layout and click mapping
internal/tui/view.go, internal/tui/tui.go, internal/tui/tui_test.go
Chat gaps, stride, and visible-chat capacity use the configured chat-spacing preference. Chat-row click mapping and its test use the dynamic stride.
Settings menu layout and selection
internal/tui/settings.go, internal/tui/tui.go, README.md
The settings menu uses a wider bordered layout with updated row styling. Click selection accounts for the menu's vertical offset. The README describes message and chat spacing.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant SettingsMenu
  participant Look as tui.Look
  participant ChatList
  participant Config as config.File
  User->>SettingsMenu: Toggles chat spacing
  SettingsMenu->>Look: Updates PackedChats
  Look->>ChatList: Controls chatGap()
  SettingsMenu->>Config: Saves PackedChats
Loading

Possibly related PRs

Suggested reviewers: macroscopeapp

Merge Risk: Minimal · up to b1376

This adds a chat-spacing option and a restyled settings menu with a backward-compatible config key. No actionable merge-blocking risk was found.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@macroscopeapp

macroscopeapp Bot commented Nov 20, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved at b13768b

Macroscope's review found this PR approvable — This refreshes the settings box and adds a saved, opt-in compact chat list while preserving the current default spacing. Effects are limited to presentation and existing view-loading behavior, with no material change to account access or message data.

You can add or adjust custom eligibility rules. Learn more.

@RealDoc06
RealDoc06 merged commit e5a4c54 into main Nov 20, 2026
3 of 4 checks passed
@RealDoc06
RealDoc06 deleted the feat/settings-look branch November 20, 2026 20:19
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