singularity-forge/src/resources
Mikael Hugo 995a57335b fix(surfaces): stamp correct surface in AutoSession + /mode yolo headless command
Surface stamp:
- AutoSession._loadPersistedModeState() now calls detectSurface() to stamp
  the correct surface (headless/web/tui) from env vars on every startup.
  Persisted surface value was the previous launch's surface — wrong when
  switching between TUI and headless on the same project.
  SF_HEADLESS=1 → 'headless', SF_WEB_BRIDGE_TUI=1 → 'web', else 'tui'.

/mode yolo:
- handleModeCommand now recognises 'yolo' as a toggleable special case.
  Headless callers can now run: sf headless --command '/mode yolo'
  Same behaviour as Ctrl+Y: full-autonomy slam + settingsManager bypass.
  /mode catalog description updated to list 'yolo' as an option.

Documentation:
- headless.ts /query and /doctor short-circuits annotated as intentional
  architecture trade-offs with a note to keep them in sync with the extension.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-09 17:03:33 +02:00
..
agents fix: harden sift codebase indexing 2026-05-05 13:31:35 +02:00
extensions fix(surfaces): stamp correct surface in AutoSession + /mode yolo headless command 2026-05-09 17:03:33 +02:00
skills feat: improve sf runtime self-reload and safeguards 2026-05-08 23:52:35 +02:00
workflow-skills sf snapshot: uncommitted changes after 131m inactivity 2026-05-09 02:53:47 +02:00
workflows sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00
SF-WORKFLOW.md sf snapshot: uncommitted changes after 110m inactivity 2026-05-08 00:17:47 +02:00
traces.ts sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00