tui-settings-tab

TUI Settings tab — config view + edit + lint runner

Metadata

Statusdone
Assignedagent-854
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Created2026-04-27T19:34:10.615865984+00:00
Started2026-04-27T21:21:41.042861056+00:00
Completed2026-04-27T21:35:11.934257075+00:00
Tagseval-scheduled
Tokens15564258 in / 51503 out
Eval score0.02
└ blocking impact0.05
└ completeness0.00
└ coordination overhead0.15
└ correctness0.00
└ downstream usability0.00
└ efficiency0.05
└ intent fidelity0.31
└ style adherence0.00

Description

Description

Per docs/config-ux-design.md §7. A 'Settings' tab in 'wg tui' showing the merged config grouped by section (audit §2 layout). Per-key edit dialogs that:

  • Show source: built-in / ~/.wg/config.toml:42 / ./.wg/config.toml:7
  • Validate via the same code path as the CLI setters (src/commands/config_cmd.rs)
  • Surface launcher_history for model/endpoint fields

Also: 'Run setup wizard' and 'Run wg config lint' buttons that shell out to the corresponding CLI commands (single source of truth for config rewrites).

Files to touch

  • src/tui/viz_viewer/state.rs — add SettingsTab
  • src/tui/viz_viewer/render.rs — render the settings panel
  • src/tui/viz_viewer/event.rs — wire keybindings + edit dialog

Validation

  • Failing test: tui settings tab renders without panic
  • Failing test: editing a key calls into config_cmd update path
  • cargo build + cargo test pass with no regressions
  • Manual smoke: open tui → switch to Settings tab → edit a key → verify written to ~/.wg/config.toml

Depends on

Required by

Log