* fix(#1657): recover malformed (non-object) ~/.gsd/defaults.json in finishInstall JSON.parse of defaults.json succeeds for valid-JSON-but-non-object values (null, [], 42, "str"), which then bypassed the parse catch: null threw a TypeError on property access (swallowed by the outer try/catch), and array/number/string had resolve_model_ids set on a non-object whose JSON.stringify round-trip kept the broken shape. The non-Claude finishInstall step now resets any non-object (null, non-object, or array) parse result to {} before reading/writing, so the file is repaired and resolve_model_ids defaults normally. Regression folded into the owning tests/bug-410-install-defaults-test-mode-guard.test.cjs (parameterized over null/[]/42/"str"). * chore(#1657): backfill changeset pr ref to 1661
516 KiB
Executable File
516 KiB
Executable File