* docs(#1650): fix stale opencode install-path claim in core settings * feat(#1688): warn on stale model bake for static-frontmatter runtimes * chore(#1688): backfill changeset pr field with real PR number * test(#1688): make resolveAgentDir assertions use path.join for windows * docs(#1688): codify windows path-literal-in-assert anti-pattern + align test
This commit is contained in:
@@ -227,6 +227,10 @@ const evalMod = require('./lib/eval.cjs');
|
||||
const { routeVerificationCommand } = require('./lib/verification-command-router.cjs');
|
||||
const verification = require('./lib/verification.cjs');
|
||||
const { routeInitCommand } = require('./lib/init-command-router.cjs');
|
||||
// Stale-bake guard (#1688): warns once when model config changed since agents
|
||||
// were last baked on static-frontmatter runtimes (codex/opencode). Lazy-required
|
||||
// here, invoked from case 'init' below.
|
||||
const { warnIfStaleBake } = require('./lib/stale-bake-guard.cjs');
|
||||
const loopResolver = require('./lib/loop-resolver.cjs');
|
||||
const capabilityState = require('./lib/capability-state.cjs');
|
||||
const capabilityWriter = require('./lib/capability-writer.cjs');
|
||||
@@ -1414,6 +1418,10 @@ async function runCommand(command, args, cwd, raw, defaultValue, originalCommand
|
||||
}
|
||||
|
||||
case 'init': {
|
||||
// #1688: warn (at most once per process) if the user edited model_overrides
|
||||
// without re-running `gsd install <runtime>` on a static-frontmatter runtime.
|
||||
// Best-effort, stderr-only, swallowed errors — never blocks the command.
|
||||
try { warnIfStaleBake(cwd); } catch { /* guard must never break init */ }
|
||||
routeInitCommand({
|
||||
init,
|
||||
args,
|
||||
|
||||
Reference in New Issue
Block a user