Skip to content

Add lean TUI user setting#3181

Merged
rumpl merged 1 commit into
docker:mainfrom
rumpl:userconfig-lean-tui
Jun 19, 2026
Merged

Add lean TUI user setting#3181
rumpl merged 1 commit into
docker:mainfrom
rumpl:userconfig-lean-tui

Conversation

@rumpl

@rumpl rumpl commented Jun 19, 2026

Copy link
Copy Markdown
Member

Adds a global settings.lean user config option so users can make the lean TUI the default for interactive runs.

  • Applies settings.lean: true as a low-priority default
  • Preserves explicit CLI overrides, including --lean=false
  • Preserves explicit false bool flags when forwarding sandboxed runs
  • Documents the new config option

Testing:

  • go test ./pkg/userconfig/...
  • go test ./cmd/root ./pkg/userconfig ./pkg/leantui ./pkg/tui
  • ./scripts/build.sh
  • go run ./lint .
  • go mod tidy --diff

Full go test ./... was attempted but hit unrelated environment/pre-existing failures: localhost DNS, pkg/cache, and pkg/rag/treesitter CGO.

@rumpl rumpl requested a review from a team as a code owner June 19, 2026 20:25

@docker-agent docker-agent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

Reviewed changes across cmd/root/run.go, cmd/root/sandbox.go, pkg/userconfig/userconfig.go, and associated tests for the settings.lean user config feature.

No bugs found. The implementation correctly:

  • Applies settings.lean: true as a low-priority default (only when the user hasn't explicitly set --lean)
  • Preserves explicit CLI overrides including --lean=false
  • Forwards explicit false bool flags correctly in sandboxed runs
  • Documents the new config option in docs/features/tui/index.md

The priority/precedence logic, flag propagation, and test coverage all look sound.

@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat: commit prefix) labels Jun 19, 2026
@rumpl rumpl force-pushed the userconfig-lean-tui branch from d1c441e to 68ab5b6 Compare June 19, 2026 20:40
@rumpl rumpl merged commit 12f3ee7 into docker:main Jun 19, 2026
5 checks passed
pull Bot pushed a commit to TheTechOddBug/cagent that referenced this pull request Jun 20, 2026
Adds an Unreleased section to CHANGELOG.md for PR docker#3181, which landed
after the v1.83.0 cut and adds settings.lean to the user config file.

The TUI feature page already documents the setting; this commit records
the change in the changelog.

Source: docker#3181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants