Skip to content

Fork settings: group by task, plain help with defaults; fork README - #1056

Merged
scuttletoby merged 4 commits into
mainfrom
fork/1054-settings-readme
Nov 23, 2026
Merged

scuttletoby merged 4 commits into
mainfrom
fork/1054-settings-readme

Conversation

@scuttletoby

@scuttletoby scuttletoby commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Closes #1054

What changes

Settings → Fork is grouped by what a person wants to do, and every row says in plain words what on and off do and what the default is. Rare options are folded under Advanced. Stored keys are unchanged.

New page order. A group of several sections has a title and a one-line explanation (linked to the group for screen readers); a lone section shows only its own title. Each feature has one name, used the same in the overview, the section title and the docs:

  1. Plan usage and machine load: Plan usage pacing, Limit on running agents, Stop finished sub-agents
  2. Waiting instead of polling: Agent waits, Custom wait checks
  3. Models and tools agents get: Models agents may use, Tool profiles
  4. Handoff instead of compaction
  5. Review rules
  6. Assistant
  7. Playtest sessions
  8. Automatic updates

The three dropdown rows (pacing gate, model policy, handoff mode) show one help line for every option under the lead line. The chosen one is bold with a check mark and "(chosen)" for screen readers, so it is not marked by colour alone.

Every "Default: …" in the help is read from DEFAULT_SERVER_SETTINGS (forkDefaultText.logic.ts); a test fails on a default written by hand or one that differs from the pinned defaults. A problem under a folded Advanced (a blank or wider thread tool pick, a handoff note source that cannot run) shows as a line above the fold, so it is seen without opening it.

Newly folded under Advanced: lower effort when ahead of pace, the sub-agent stop grace time, the per-thread tool profile picks, and the "ask a program before updating" command.

Docs: a new docs/fork/about.md covers what the fork is and how it follows upstream (daily rebase, v<upstream>.fork.<n>), install and update, every shipped feature in one line with where to turn it on, and a Planned list. That list comes from the open fork issues, grouped, one line each with #N (owner questions and small follow-ups are left out). README.md's fork banner is rewritten within its seam ceiling (still 10 lines) and points there. It says most switches are in Settings → Fork and a few only in the settings file. docs/fork/README.md and assistant.md now name the new section titles; about.md also lists the Waiting on you page, thread roles, lens_start and the new host kits. The FORK_CHANGES Settings row also mentions the grouping.

Upstream components only (SettingsSection, SettingsRow, AdvancedSettings). The only new code is a small ForkGroup heading in the fork's own panel file and an OptionLines helper in ForkRow.tsx (upstream's select items hold only a label).

Screenshots

Taken from a local dev build with an empty, isolated home: no accounts, no projects, no personal data.

Before After

(The images live on the branch pr-assets/1054-settings. Keep that branch: deleting it breaks these screenshots.)

Every fork setting

Old and new labels are the Settings row titles. "Settings file only" means the setting has no row.

Setting Stored key Old label (help) New label Default
Overview (none) Fork features on or off What the fork has on n/a
Automatic updates automaticUpdates Update automatically (On text only) Update automatically (On/Off/Default) false
Quiet command automaticUpdatesQuietCommand Quiet check before an update Ask a program before updating (Advanced) ""
Busy check activityProbe settings file only ("Activity probe" in overview) settings file only ("Busy check" in overview) false
Usage reserve usagePacing Usage reserve per account Share of each plan kept for you {}
Pacing gate usagePacingGate Usage pacing gate Pace agents by plan usage "off"
Lower effort usagePacingLowerEffort Lower effort when ahead of pace same (Advanced) {}
Waits waitFor Let agents wait for events (Off text only) same (On/Off/Default); number rows renamed, e.g. "Time limit when the agent sets none" {enabled:false}
Wait checks waitChecks Wait checks Custom wait checks {}
Playtest playtest Playtest sessions / Playtest steps Let agents run playtests / Commands for each playtest step {enabled:false}
Handoff handoff Handoff instead of compaction; Handoff mode per thread; Handoff size; Idle handoff size; Handoff written by; Handoff instructions Hand off instead of compacting; Choice per thread; Hand off at this size; Hand off an idle thread from; Who writes the handoff note; What the handoff note should say {mode:"off"}
Review rules reviewRules Review rules (Off text only) Review rules (On/Off/Default) {preset:"off"}
Model policy modelPolicy Model policy; Allowed models; Your model picks and the policy Limit which models agents pick; Allowed models; Your own model picks {mode:"off", allow:[]}
Placement placement settings file only settings file only {mode:"off"}
Placement needs placementNeeds settings file only settings file only []
Agent slots agentSlots Limit running agents; Agents on this machine; Free memory floor Limit running agents; Most agents on this machine; Keep this much memory free {enabled:false} (observes only)
Usage refresh headlessUsageRefreshInterval settings file only settings file only 600000 ms (on, read only)
MCP profiles mcpProfiles MCP profiles Profiles and their tools (section Tool profiles) {}
Default profile mcpProfile Default MCP profile Profile for new threads "all"
Sub-agent profile mcpSubagentProfile Sub-agent MCP profile Profile for sub-agents "inherit"
Thread picks mcpThreadProfiles MCP profile per thread Profile picked per thread (Advanced) {}
Carried profiles mcpCarriedProfiles settings file only settings file only "apply"
Thread roles threadRoles set by Make assistant, no row same {assistant:null, orchestrators:{}}
Assistant assistant Assistant Offer an assistant thread {enabled:false}
Stop finished children stopFinishedChildren Stop finished children; Grace time Stop finished sub-agents; Wait before stopping (Advanced) {enabled:false}, grace 60 s
Project overrides projectSettingsOverrides.<id>.{waitChecks, mcpProfile, mcpSubagentProfile, playtest, handoff, reviewRules, placementNeeds} same rows, project scope same rows, new titles unset
Calm sidebar client calmSidebarEnabled no row no row false

State question

  • Old saved settings: no stored key is renamed, moved or removed; only labels, help text, order and folding change. A new test in packages/contracts/src/forkDefaults.test.ts loads a settings file an older build saved (non-default values for every key this page edits) and checks every value comes back, and that writing it back keeps them. It also pins every project-override key name and loads a project's old saved overrides, so renaming one (for example mcpSubagentProfile) fails.
  • Missing keys read as their pinned defaults (same test); unknown keys are ignored.
  • Runs again / stops half-way: no migration and no writes on open; the page only reads. Each save is unchanged and still writes only the keys it changes.
  • Search: row ids are unchanged, so search jumps still work. A jump to a row folded under Advanced opens the fold (targetIds).

General vs project

All general: fork settings UI copy and docs for anyone running the fork. No project facts. The Planned list paraphrases issue titles and leaves out project-specific and personal items.

Checks

vp run check:changed: format, lint, knip, typecheck (39 packages), tests, and react compiler all pass. The settings browser tests (src/components/settings) and the shared forkDocs and fork-changes-list tests pass too. The fork seam check (--no-upstream) passes.

🤖 Generated with Claude Code

@scuttletoby

Copy link
Copy Markdown
Owner Author

lens: approach · reviewer: Claude Opus 5.5 · read at: d0ec9d3

blocker: none
major: none

Verdict: the approach is right. It fixes what the issue asks for at the source. Every fork setting row now says what On and Off do and what the default is. Rows are grouped by what a person wants to do, and rare rows are folded under upstream's own AdvancedSettings (with targetIds, so a search jump still opens the fold). No stored key changes. The only new UI is a heading (ForkGroup) and a help helper (OptionLines), and both live in fork-owned files. All code changes are in fork-owned files; the one upstream file touched is the README, inside its 10-line seam. So the rebase cost against nightly stays low. I see no simpler approach. The minors below are copy fixes that can go in this PR or a follow-up; they do not need another round.

State question: old saved settings, missing keys, unknown keys and a downgrade are all safe. The PR renames no key and adds or moves no stored value, and nothing is written when the page opens. An older build reads the same file without a problem. The new forkDefaults.test.ts loads and re-saves an older settings file. It is a guard, not a migration, and that is right here.

Personal data: none found in the diff, about.md, the README banner or either screenshot. The screenshots come from an empty home with no accounts or projects. The provider names in them come from the dev build, not from a person.

pr-assets/ branch: a sane choice. It is an orphan branch that holds only the two PNGs, the secret scan runs on every branch push, and no CI is triggered. But deleting it after merge, as the PR body suggests, breaks this PR's screenshots for good. Either keep it, or write the pattern down once (for example one long-lived pr-assets orphan branch with a folder per issue).

about.md against the code: the Planned list matches the open issues exactly. Every #N in it is open, and the open issues it leaves out are owner questions, follow-ups or project-specific ones. All link targets exist. Install and update steps, version format and where to turn each feature on all match the code.

minor: about.md "What it adds" leaves out two shipped features. One is the Waiting on you page (/owner-questions, owner questions part 1 in FORK_CHANGES). It ships today with no menu entry, yet about.md lists it only under Planned (#887). The other is thread roles, the settings part of the calm sidebar. One line each, for example "reachable by URL only, no menu yet", would make "every shipped feature" true.
minor: The Overview text says "agents cannot change them". docs/fork/README.md says the narrower true thing: "An agent's tools cannot change any fork setting". An agent with a shell can still edit settings.json. Say "agents' T3 tools cannot change them".
minor: The README banner says "Every fork switch is off until you turn it on in Settings → Fork". Some switches have no row (Busy check, Placement), and Usage history is on by default. about.md already gets this right ("the one exception only reads usage limits"), so the banner should match it.
minor: The Review rules help when Off does not say that nothing uses the rules yet; only the On text says so. A newcomer may turn them on and expect reviews to change. Put "Nothing uses them yet" in both texts.
minor: The same feature has three or four names. For example: section "How many agents run at once", row "Limit running agents", overview "Limit on running agents", docs "Agent slots". Section "Models agents may use" is "Model policy" in the overview. Section "Plan usage" is "Plan usage pacing" in the overview. Groups with a single section also stack three headings for one switch (REVIEWS / Review rules / Review rules, UPDATES / Automatic updates / Update automatically). Use one name per feature, and either drop the group heading or the section title when the group has only one section.
minor: The Advanced fold now hides error states. A thread pick shows a red blank-pick error or a wider-than-parent warning, and that pick now sits under a closed "Advanced". A Lower-effort map or quiet command that is not the default is hidden the same way. Open the fold when a row inside it has an issue or a non-default value, or show a count on the fold.
minor: Help text a newcomer cannot follow without the docs: delegate_task in two rows, "review lenses", and "Busy check (settings file only)" in the overview with no row or explanation anywhere on the page. "(delegate_task)" is fine as an aside. "Review lens" needs a few words of explanation.
minor (out of scope, existing before this PR): the 10 per-provider reserve rows and 10 per-provider slot rows fill most of the top two groups even when a provider has no account. A follow-up could show only providers that have an account, with the rest under a fold.

🤖 Generated with Claude Code

@scuttletoby

Copy link
Copy Markdown
Owner Author

lens: code · reviewer: Claude Opus 5.5 (code lens) · read at: d0ec9d3

blocker: none
major: none
minor: The new key-name test does not cover the project-override keys this page edits (mcpProfile, mcpSubagentProfile, playtest, placementNeeds), and no saved project override is decoded. I renamed projectOverride.mcpSubagentProfile in both forkSettings.ts and forkDefaults.ts, and all 38 tests still passed. Renaming server waitChecks the same way does fail, as it should. Suggestion: pin the whole discovered list as one literal, and decode a ProjectSettingsOverrides fixture with values. The older-file fixture also has no values for usagePacing, usagePacingLowerEffort or waitChecks; only their names are pinned.
minor: Some of the "Default:" text is typed into the help, for example the Default: Off. tails of the three dropdowns, "Default: off" on the switches, "Default: 0% kept, no account first", "Default: 0." and "Default: empty". Other rows already read the default from DEFAULT_SERVER_SETTINGS. Every typed default matches the schema today, but a later change to a default would leave the help wrong, and only the pinned-defaults test would notice. Suggestion: build these from DEFAULT_SERVER_SETTINGS, for example the label of the default option.
minor: The per-thread MCP picks row now sits under Advanced, which starts closed. Its warnings ("blank pick, ignored" and "wider than parent") are hidden until someone opens it. Suggestion: open the fold, or show a short status on the section, when any pick row has a warning.
minor: Accessibility. The ForkGroup description is not linked to its role="group" (no aria-describedby). OptionLines marks the chosen option only with weight and colour. The impact is small because the select itself announces its value.

Checked and fine:

  • Stored keys: packages/contracts changes only by adding a test, so no key, schema or patch rule is renamed. Settings saved by an older build load, and so do empty or partial files; missing keys read as their defaults and unknown keys are ignored (the new tests show this). Going back to an older build is safe, because neither a key nor a value's shape changes and opening the page writes nothing.
  • Nothing dropped: the same panels are mounted as on main, for both the server and the project screen. A group with nothing to show (project screen) is left out through Children.toArray. Search row ids are unchanged, and every folded row has its targetIds.
  • Dropdown help: the help line for each option matches what the option does. React keys (option.value) are unique. The page does no new work at runtime.
  • Rebase cost: only fork-owned files plus the README fork banner, which stays inside its seam.

Ran on the head: forkDefaults.test.ts 38/38, the fork settings logic tests 36/36 and forkDocs 34/34. I also made the two test renames described above.

🤖 Generated with Claude Code

scuttletoby and others added 3 commits November 23, 2026 15:22
Settings → Fork now groups its sections by what a person wants to do
(plan usage and machine load, waiting, models and tools, long threads,
reviews, assistant, playtesting, updates). Each row says what on and off
do and shows its default; rare options fold under Advanced. Stored keys
are unchanged; a test loads values an older settings file saved.

docs/fork/about.md: what the fork is, how it follows upstream, every
shipped feature with where to turn it on, and a Planned list from open
issues. The README banner points to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pacing, model policy and handoff rows now show one help line per option
under the lead line, with the chosen one in bold, instead of only the
chosen option's line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Help texts read their "Default:" from DEFAULT_SERVER_SETTINGS; a test
  fails on a hand-written default or one that drifts from the pinned rows.
- A blank or wider thread pick and a broken handoff source show above
  a folded Advanced.
- Each feature uses one name in the overview, section title and docs;
  a group of one section shows no extra heading; groups are labelled
  and described for screen readers; the chosen option has a check
  mark and "(chosen)" text.
- The old-settings test pins the project-override keys and loads old
  saved overrides.
- about.md lists Waiting on you, thread roles, lens_start and the new
  kits; the README banner says most switches are in Settings > Fork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scuttletoby
scuttletoby force-pushed the fork/1054-settings-readme branch from d0ec9d3 to 6b3426a Compare November 23, 2026 15:38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scuttletoby
scuttletoby merged commit 23f445b into main Nov 23, 2026
40 checks passed
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.

Readable fork settings + up-to-date README with planned features

1 participant