Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Lane the memory_propose Postgres arm and name the proposal in the proposal_closed suggestion (guards that landed on master)

garrytanbb98f7727ae7
diff --git a/src/core/persistence/memory-proposals.ts b/src/core/persistence/memory-proposals.ts
index 562fd06069..50d903e186 100644
--- a/src/core/persistence/memory-proposals.ts
+++ b/src/core/persistence/memory-proposals.ts
@@ -98,7 +98,7 @@ export async function ownerProposal(engine: SqlEngine, requestId: string): Promi
export const proposalClosedError = (row: Pick<MemoryProposal, 'request_id' | 'state'>) => opError('proposal_closed',
`Proposal ${row.request_id} is ${row.state}; only a proposal awaiting the owner can be approved or denied.`,
- 'Nothing changed. gbrain memory-proposals show <request_id> shows how it ended; the proposer sends a new proposal if the change is still wanted.');
+ `Nothing changed. gbrain memory-proposals show ${row.request_id} shows how it ended; the proposer sends a new proposal if the change is still wanted.`);
export const proposalExpiredError = (row: Pick<MemoryProposal, 'request_id'>) => opError('proposal_expired',
`Proposal ${row.request_id} expired before a decision.`,
'Nothing was written. The proposer sends a new proposal if the change is still wanted; proposals.ttl_hours sets how long one waits.');
diff --git a/test/postgres-unit-arms.txt b/test/postgres-unit-arms.txt
index 72ad5657dd..fd09d607ab 100644
--- a/test/postgres-unit-arms.txt
+++ b/test/postgres-unit-arms.txt
@@ -454,6 +454,7 @@ test/purge-global-marker.test.ts
test/purge-missing-cache-6911.test.ts
test/purge-read-surfaces.test.ts
test/purge-sync-tombstone-hold-7130.test.ts
+test/qm-memory-propose.test.ts
test/qm-memory-tools.test.ts
test/qm-scope-writes.test.ts
test/read-meta-diag.test.ts