Skip to content
This repository was archived by the owner on Oct 22, 2026. It is now read-only.

feat: interactive settings menu and config set/get/unset - #10

Merged
ruban-24 merged 2 commits into
mainfrom
feat/interactive-config
Sep 27, 2026
Merged

ruban-24 merged 2 commits into
mainfrom
feat/interactive-config

Conversation

@ruban-24

@ruban-24 ruban-24 commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Add an interactive settings menu and single-setting commands, so users no longer edit policy JSON by hand.

  • switchboard config opens a menu for models per tier, skipped models, effort limits, agents, prompt history, and the classifier connection (which reuses the connection step of switchboard init). Changes are collected, summarized, confirmed, validated, and backed up before writing.
  • switchboard config set|get|unset changes one validated setting from the shell.
  • doctor, run in a terminal, offers its fixes after the offline report. It asks once before running claude --version and the local Codex model check, re-plans later questions after each answer, and remembers a kept Fable answer. doctor --fix runs the checks without asking first.
  • Launch hints and docs point to doctor and config instead of JSON edits.
  • Resetting a file that only pins default values now saves, and summaries list pins added or removed. "No limit" on a profile you created writes a full uncapped mapping.
  • Adds @clack/prompts 1.8.1 (MIT) for select, multiselect, and confirm prompts.

Validation: all 302 tests passed on this branch based on main (after #9); npm run test:package passed type checking, build, isolated global installation, npx execution, initialization, and policy validation. The interactive menu, config set/get/unset validation, and interactive doctor (including the older-CLI path and switching back after an update) were exercised by hand on macOS and in a Debian 12 VM.

🤖 Generated with Claude Code

@ruban-24
ruban-24 added this pull request to stack #11 September 25, 2026 02:38
@ruban-24 ruban-24 changed the title feat: interactive settings menu, config set/get/unset, doctor fixes feat: interactive settings menu and config set/get/unset Sep 25, 2026
@ruban-24
ruban-24 marked this pull request as ready for review September 25, 2026 02:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T02:42:44.957047Z 312120e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 312120e855

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/interactive.ts Resolved
Comment thread src/interactive.ts Resolved
@ruban-24
ruban-24 force-pushed the feat/interactive-config branch from 312120e to 912c8a8 Compare September 27, 2026 09:13
@ruban-24
ruban-24 force-pushed the feat/interactive-config branch from 912c8a8 to 75365f9 Compare September 27, 2026 09:25
Base automatically changed from models/gpt-6-opus-5-5 to main September 27, 2026 09:30
- switchboard config opens a menu for models per tier, skipped models,
  effort limits, agents, prompt history, and the classifier connection.
  Changes are collected, summarized, confirmed, validated, and backed up.
- config set|get|unset change one validated setting from the shell.
- doctor, run in a terminal, offers its fixes after the offline report:
  it asks once before running `claude --version` and the local Codex
  model check, and remembers a kept Fable answer. Each answer re-plans the
  remaining questions. doctor --fix runs the checks without asking first.
- Launch hints and docs point to doctor and config instead of JSON edits.
- Adds @clack/prompts 1.8.1 (MIT) for select/multiselect/confirm prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ruban-24
ruban-24 force-pushed the feat/interactive-config branch from 75365f9 to d47634e Compare September 27, 2026 09:30
Resetting a file that only pinned values equal to the shipped defaults
changed nothing effective, so the menu showed Done and never saved; the
pins stayed and could mask a future default. Change summaries now list
settings whose pin was added or removed.

Removing the effort limit from a profile you created deleted its required
efforts mapping, so validation rejected it. "No limit" now writes a full
uncapped mapping for profiles without a shipped default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ruban-24
ruban-24 merged commit 5317572 into main Sep 27, 2026
10 checks passed
@ruban-24
ruban-24 deleted the feat/interactive-config branch September 27, 2026 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant