Repository navigation
Fork settings: defaults from the working setup and shorter settings page (#1556) - #1566
scuttletoby wants to merge 5 commits into
Conversation
afadce9 to
e48d3c5
Compare
|
lens: code · reviewer: GPT-6.2 Sol (high) · read at: e48d3c5 blocker: The new handoff defaults reinterpret existing server and project settings. major: Sparse legacy slot settings change how launches are admitted. minor: The browser test exercises handoff saves on the retained standalone panel, while the Fork page uses a second copy of the controls. The new page test checks disclosure only. Reuse the production rows in the test and exercise a save/reset with another handoff field set. ( State questionMissing and empty settings load the new defaults. Explicit off values present on disk survive decoding for waits, review rules, pacing, assistant, work panel and the activity probe. The previous writer omitted values equal to the old defaults, so an earlier UI opt-out may already be absent from a partial file. Atomic writes protect interrupted saves from torn settings, but restart and unrelated saves continue applying these newly decoded values instead of recovering prior behavior. Cover old sparse files and project overrides through load, unrelated save, and reload. The exact-head fork checks passed, and the diff touches no registered upstream seams. Verdict: NOT SAFE |
e48d3c5 to
add542b
Compare
|
lens: code · reviewer: GPT-6.2 Sol (high) · read at: add542b blocker: An unrelated settings save can turn on automatic role-thread handoff. I reproduced this with the real settings service and a valid managed handoff default of major: The same service repro changed an inherited fixed slot cap from 4 to 10 on reload. With a managed default of minor: The browser test now saves and resets production rows on the Fork page. The search target opens Advanced and gives the mounted row focus. The browser test opens Advanced manually and leaves the search path untested. The slot description and status now say enforcement stays active, though the unchecked switch still has the accessible name “Limit running agents.” State questionWithout managed defaults, both requested legacy handoff cases and both slot cases keep their effective settings on unrelated saves and reloads. Fresh defaults apply typed slot limits in observe mode. Writes are atomic, so an interrupted save leaves a complete file. Under managed defaults, the first completed save persists the wrong values and subsequent saves retain them. Seam, upstream-file and schema checks passed. Zero upstream files changed. Verdict: NOT SAFE |
add542b to
2d4f672
Compare
2d4f672 to
d3fa27d
Compare
|
Merge conveyor: the serial merge of head |
Fixes #1556
Updates non-personal fork setting defaults so a fresh install matches the working setup out of the box, preserves legacy decoding semantics for saved sparse profiles, and reorganizes the Fork settings page into fewer, more scannable sections with a single collapsed Advanced section.
All changes stay inside fork-owned files (zero upstream files modified).
1. Defaults changed
server.activityProbefalsetrueserver.agentSlots{ enabled: false, mode: "enforce", maxPerMachine: 0, minFreeMemoryMb: 0 }{ enabled: true, mode: "observe", maxPerMachine: 10, minFreeMemoryMb: 1024 }agentSlots), enables typed machine limits (10agents/machine,1024 MBfree memory floor — these refuse new delegated starts when reached) while running the dynamic capacity rule inobservemode (records without refusing). Saved sparseagentSlotsprofiles keep legacy mode (fixedwhenenabled: true,enforcewhenenabled: false) and0limit defaults across loads and saves.server.assistant{ enabled: false }{ enabled: true }{ enabled: false }.server.handoff{ mode: "off", source: "none", sizeTokens: 150000, idleTokens: 75000 }(rolesunset){ mode: "off", roles: "handoff", source: "agent", sizeTokens: 150000, idleTokens: 75000 }handoff), keeps ordinary threads off while turning automatic handoff on for role threads using the built-in agent writer. Saved sparsehandoffprofiles (server and project overrides) preserve legacyrolesfallback tomodeandsource: "none"when omitted; corrupt/invalid saved blocks still fail safe tooff/none.server.reviewRules{ preset: "off" }{ preset: "recommended" }{ preset: "off" }and corrupt values still decode tooff.server.usagePacingGate"off""advise"server.waitFor{ enabled: false }{ enabled: true }wait_forandcancel_waittools on fresh installs so delegated agents can wait on checks/PRs without manual setup.client.workPanelEnabledfalsetrueSettings intentionally kept unchanged
threadRoles,handoff.threads,handoff.command,modelPolicy,usagePacing,waitChecks,projectSettingsOverrides,placementNeeds,hostTools,hostToolsOutsideInput,playtest,mcpProfiles,mcpProfile,mcpSubagentProfile,automaticUpdatesQuietCommand, etc.).client.calmSidebarEnabledremainsfalse: enabling it with emptythreadRolesdisplays a setup hint banner at the top of the sidebar on a fresh install.server.automaticUpdatesremainsfalse: its schema line lives in upstreampackages/contracts/src/settings.ts(pinned in.github/fork-seams.json, owner decision Owner question: automatic updates on or off by default after upstream's version lands? #41). Keeping it unchanged avoids modifying upstream files outside a dedicated 2-PR seam change; if flipping it totrueis desired, it can be done in a small follow-up seam PR.autoResumeLimitedThreadsis an upstream setting (packages/contracts/src/settings.ts) and was left untouched.2. Settings removed or merged
forkDefaults.ts)apps/andpackages/. Every key is actively read by production fork code (including in-flight host tools#885), andforkDefaults.test.tspreserves stored-key compatibility.Owner questions,Work panel,Calm sidebar,Assistant chat)AdvancedfoldsOverview,Agents & capacity,Threads, reviews & updates,Interface) + 1 collapsedAdvanceddisclosure (and 2 sections + 1 collapsedAdvancedon project scope)Advancedwhen targeting a nested setting, and saved-value problems (unreadablemodelPolicy, missinghandoffcommand) remain visible even whileAdvancedis collapsed.HandoffSettingscomponentHandoffPrimaryRowsandHandoffAdvancedRowsReviewRulesRow6-line effective-rules tableShow effective rulesdisclosure in the Fork settings pageReview rulesrow scannable to a single preset selector while keeping the full effective-rules summary one click away.3. General vs project
All general. Zero personal data or project-specific facts (no names, accounts, paths, hosts, project IDs, or machine IDs) are included in code, docs, or tests.
4. Verification
packages/contracts,packages/shared,apps/web, andapps/server(includinghandoff.test.ts,waitFor.test.ts,forkDefaults.test.ts,agentSlots.test.ts,forkDocs.test.ts,waitsAndSlotsSettings.logic.test.ts,handoffSettings.logic.test.ts,ForkPanels.browser.test.tsx,WaitsAndSlotsSettings.browser.test.tsx,serverSettings.forkSettings.test.ts,HandoffService.test.ts,SlotGate.test.ts,SlotObserver.test.ts,forkReport.test.ts,environmentFacts.test.ts).pnpm run fmt:checkandpnpm run lint(0 errors).typecheckacross@t3tools/contracts,@t3tools/shared,@t3tools/web, andt3(4/4 successful).fork-seam-check.cjs,fork-schema-check.cjs,fork-upstream-files-check.cjs, andfork-test-names-check.cjsall pass.