fix: honor pinned gbrain code sources#1691
Conversation
|
Hit this same bug on a worktree where the source had been registered before the Existing source id Setup specifics:
Independently arrived at the same fix shape ( Happy to test against this PR's branch on my repro if it helps move review along. The fix is the load-bearing path between a working |
c19d4dc to
a542f53
Compare
|
Rebased onto current garrytan/main on 2026-06-04 and resolved the test comment conflict in test/explain-level-config.test.ts. Local verification passed: bun test test/explain-level-config.test.ts test/gstack-gbrain-sync.test.ts (43 pass, 0 fail) and bun run build after installing from bun.lock. GitHub now reports the branch as MERGEABLE; no GitHub check runs are currently attached to this PR. |
Summary
.gbrain-sourcepin as the canonical gbrain code sourcegbrain sources renameis unavailable or fails, avoiding duplicate source registration and preserving pagesexplain_leveldefault contractVerification
bun test test/gstack-gbrain-sync.test.tsbun test test/explain-level-config.test.ts3 ok, 0 error, 0 skipped, sourcegstack-code-94f0884f-f4fca3,page_count=46/Users/admin/Documents/Codex/2026-05-23/gsd-discuss-phase-users-admin-codexNotes