Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(c2): keep ops/pages.ts within its size ceiling

garrytan9f546d03de52
diff --git a/src/core/ops/pages.ts b/src/core/ops/pages.ts
index dde4af6dd4..7779da250a 100644
--- a/src/core/ops/pages.ts
+++ b/src/core/ops/pages.ts
@@ -224,8 +224,6 @@ const fetch_page: Operation = {
const slug = identity?.slug ?? id.trim();
const missing = () => new OperationError('page_not_found', 'Page not found', 'Pass an id returned by a current `search` call.');
let sourceOpts: ReturnType<typeof federatedSearchScope>;
- // #5081: a source-qualified id is read under the same explicit-read
- // admission as the search that issued it; a refusal still reads as missing.
try { sourceOpts = federatedSearchScope(ctx, identity?.sourceId); }
catch (error) {
if (error instanceof OperationError && error.code === 'permission_denied') throw missing();