Skip to content

feat(sim): add live enable/disable toggle across settings, palette, and MCP - #65

Merged
collissimo merged 2 commits into
collin/mainfrom
t3/sim-toggle
Nov 19, 2026
Merged

collissimo merged 2 commits into
collin/mainfrom
t3/sim-toggle

Conversation

@collissimo

Copy link
Copy Markdown
Owner

ServerSettings.sim.enabled could only be changed by editing settings.json directly, and turning it off still advertised the SIM MCP tools in tools/list and allowed SimAuditService.inspectThread and markAuditDone to run.

Changes

  • Server / MCP: Read settings.sim.enabled per /mcp request in McpHttpServer and gate sim_read, sim_write, and sim_apply_harness_change via McpSchema.EnabledWhen (hiddenWhileSimOff / hiddenFromOutsideClientsOrSimOff), while preserving the outside-client restriction on write tools. Enforce sim.enabled across audit, inspectThread, and markAuditDone in SimAuditService.
  • Web & Desktop: Add an environment-scoped Self-Improvement Memory (SIM) switch under Settings → Labs (with per-field mixed-state detection across environments), wire it into settings search, and add a Turn off / Turn on Self-Improvement Memory (SIM) action to the command palette (apps/web/src/lib/simToggle.ts).
  • Mobile: Add a per-machine Self-Improvement Memory (SIM) switch under Settings → Labs.
  • i18n & Docs: Generate and translate all new keys across all 9 non-English locales for web and mobile (vp run i18n:check passing), wrap the pre-existing untranslated Script tool strings in the two edited Labs files, and document the live toggle in FORK.md.
  • Tests: Add live MCP tools/list toggle coverage (McpHttpServer.test.ts), disabled-state audit coverage (SimAuditService.test.ts), settings search assertions (settingsSearch.test.ts), and simToggle unit tests (simToggle.test.ts). Verified in an isolated worktree dev server in the browser.

Built with Gemini (Antigravity).

@collissimo
collissimo merged commit b9bf543 into collin/main Nov 19, 2026
1 check 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.

1 participant