Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(doctor): hot-check fixture turns the slug-line heal off with a config-table write, so the Postgres disconnect-call audit count matches the capture
garrytan3bcc0a441787
diff --git a/test/helpers/doctor-hot-checks-fixture.ts b/test/helpers/doctor-hot-checks-fixture.tsindex bcb79f16fe..80e6dfd817 100644--- a/test/helpers/doctor-hot-checks-fixture.ts+++ b/test/helpers/doctor-hot-checks-fixture.ts@@ -145,8 +145,8 @@ export async function buildHotCheckFixture(h: DoctorHome, sql: Sql): Promise<{ sgit(src, 'commit', '-q', '-m', 'broken files');const utcDay = () => new Date().toISOString().slice(0, 10);const before = utcDay();- // The fixture keeps fm/slug-mismatch.md held for the frontmatter findings, so the sync-time stray slug: line heal (#6865) is off.- await gbrain(h, ['config', 'set', 'sync.slug_conflicts.auto_remove', 'false']);+ // The fixture keeps fm/slug-mismatch.md held for the frontmatter findings, so the sync-time stray slug: line heal (#6865) is off (written directly: a CLI call would add to the doctor disconnect-call audit).+ await sql([['INSERT INTO config (key, value) VALUES ($1, $2) ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value', ['sync.slug_conflicts.auto_remove', 'false']]]);await runGbrain(h, ['sync', '--source', 'notes', '--no-pull', '--no-embed']);const syncDays: [string, string] = [before, utcDay()];// After the sync (a full catch-up re-imports changed pages): database-only timeline rows, one materializable and one that cannot round-trip (comment markup).