Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(persistence): the classic unbound-source hint marks activation as a brain-wide change to ask the user about

garrytand42d41c499b9
diff --git a/src/core/persistence/unbound-source.ts b/src/core/persistence/unbound-source.ts
index d47927c5c3..e76e75d1d5 100644
--- a/src/core/persistence/unbound-source.ts
+++ b/src/core/persistence/unbound-source.ts
@@ -45,7 +45,7 @@ export function unboundSourceError(sourceId: string, path: string | null, scope:
// #6122: on a brain whose managed persistence is not activated, a claim alone fences classic sync of the source,
// so the working path is the file plus classic sync; claiming is named with that consequence.
const edit = `edit the page's file in the checkout${path ? ` (${path})` : ''} and run gbrain sync --source ${sourceId}, which imports it`;
- const trap = `To have gbrain own the checkout instead, ${bind}, then activate managed persistence (preview first: gbrain sources writer activate --confirm-quiesced --dry-run --json). `
+ const trap = `To have gbrain own the checkout instead (a brain-wide change: ask the user first), ${bind}, then activate managed persistence (preview first: gbrain sources writer activate --confirm-quiesced --dry-run --json). `
+ `Managed persistence is not activated on this brain, so a claim without activation blocks classic sync of ${sourceId} until it is activated or the claim is released with gbrain sources writer deactivate.`;
const suggestion = classic ? scope === 'database_only_eligible'
? `Source '${sourceId}' has a checkout path but no canonical owner. Choose one: ${edit}; or allow database-only writes to unbound sources `