singularity-forge/packages
ace-pm 828c5edf62 fix(cli): don't persist --model override in print mode (#4251)
`gsd -p --model X "msg"` was silently overwriting defaultProvider/
defaultModel in settings.json. One-shot verification runs must use the
model for that invocation only.

Adds an AgentSessionConfig.persistModelChanges flag (default true so
interactive behavior is unchanged), forwards it through createAgentSession,
and sets it false in main.ts when !isInteractive and in src/cli.ts print
mode. The gsd wrapper also skips validateConfiguredModel when --model is
explicitly passed, so a CLI-provided model can't trigger a fallback repair
that writes the wrong default back.

Three settings.json write sinks audited: agent-session._applyModelChange
(gated on flag), model-selector.ts (interactive only, unreachable in
print), startup-model-validation (gated by !cliFlags.model in print).

Regression: 8 source-assertion tests in
agent-session-print-mode-persist.test.ts.
2026-04-15 10:12:32 +02:00
..
daemon fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
mcp-server feat(graph): parse LEARNINGS.md into knowledge graph and rebuild after extraction 2026-04-15 04:52:52 +02:00
native fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
pi-agent-core fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
pi-ai feat(anthropic): support longcat as Bearer-auth Anthropic-compatible provider 2026-04-15 08:54:52 +02:00
pi-coding-agent fix(cli): don't persist --model override in print mode (#4251) 2026-04-15 10:12:32 +02:00
pi-tui fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
rpc-client fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00