Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(sources): name the cursor's source without a placeholder in the refusal
garrytand8e553f6e219
diff --git a/src/commands/sources.ts b/src/commands/sources.tsindex 6b4ba2b7c0..498f8ec1d4 100644--- a/src/commands/sources.ts+++ b/src/commands/sources.ts@@ -1206,11 +1206,11 @@ async function runFederate(engine: BrainEngine, args: string[], value: boolean):// ── v0.40 sources status (D12) ──────────────────────────────async function runStatus(engine: BrainEngine, rawArgs: string[]): Promise<void> {const { parseListingFlags } = await import('../core/bounded-listing-cli.ts');- const { request, rest: args } = parseListingFlags(rawArgs.filter(arg => arg !== '--holds'), 'gbrain sources status <id> --json');+ const { request, rest: args } = parseListingFlags(rawArgs.filter(arg => arg !== '--holds'), 'gbrain sources status');const paged = rawArgs.some(arg => /^--(limit|cursor)(=|$)/.test(arg));const json = args.includes('--json'), only = args.find((arg, i) => !arg.startsWith('-') && args[i - 1] !== '--limit');if (request.cursor !== undefined && !only) {- throw opError('invalid_params', '--cursor pages the held files of one source.', 'Name the source the cursor came from: gbrain sources status <id> --json --limit <n> --cursor <next_cursor>.');+ throw opError('invalid_params', '--cursor pages the held files of one source.', 'Rerun with the id of the source the cursor came from right after status, keeping the same --limit.');}const holdListing = paged ? { mode: 'page' as const, request } : rawArgs.includes('--holds') || request.limit === null ? { mode: 'all' as const } : { mode: 'summary' as const };const { loadAllSources } = await import('../core/sources-load.ts');