improve-wg-setup

Improve: wg setup wizard — --scope flag + launcher_history pickers + delta summary

Metadata

Statusdone
Assignedagent-853
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Created2026-04-27T19:34:03.634067296+00:00
Started2026-04-27T21:21:40.169454559+00:00
Completed2026-04-27T21:22:13.908550201+00:00
Tagseval-scheduled
Tokens14191113 in / 39665 out
Eval score0.56
└ blocking impact0.50
└ completeness0.60
└ coordination overhead0.60
└ correctness0.65
└ downstream usability0.35
└ efficiency0.45
└ intent fidelity0.74
└ style adherence0.70

Description

Description

Per docs/config-ux-design.md §4 (wg setup interactive flow). Three changes:

  1. --scope global|local|both flag — currently 'wg setup' resolves scope ambiguously; make it explicit (default: prompt the user). §4.1.

  2. Surface launcher_history in pickers — model/endpoint prompts should offer prior CLI/TUI invocations as picker entries (per feedback_launcher_history_in_config_ui.md). The picker code in setup.rs currently calls record_use but doesn't read it back. §4.2.

  3. Final summary screen prints the DELTA, not the full Config — show 'Will write 5 keys' + 'Will NOT write (built-in defaults): N more' so users see the file is intentionally short. §4.3.

Files to touch

  • src/commands/setup.rs — main changes
  • src/cli.rs — add --scope arg to SetupArgs

Validation

  • Failing test: setup --scope global writes only to ~/.wg/config.toml
  • Failing test: launcher_history entries appear in picker
  • Failing test: summary screen lists keys-to-write count separately from defaults-to-skip count
  • cargo build + cargo test pass with no regressions
  • Manual smoke: 'wg setup --scope global --route claude-cli' end-to-end

Depends on

Required by

Log