From 3869f2ce17a8eb64512ecc2e0260298866355361 Mon Sep 17 00:00:00 2001 From: kingwl Date: Mon, 20 Jul 2026 20:19:32 +0800 Subject: [PATCH] chore(acp-demo): fence the persistence passthrough clone for jscpd The acp/stdio front doors intentionally duplicate their small persistence passthrough blocks (same rationale as their Config schemas, already fenced). --- packages/examples/acp-demo/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/examples/acp-demo/src/index.ts b/packages/examples/acp-demo/src/index.ts index cf95101e14..c1b9989a3f 100644 --- a/packages/examples/acp-demo/src/index.ts +++ b/packages/examples/acp-demo/src/index.ts @@ -98,10 +98,14 @@ export const Config: z = z.object({ export function apply(ctx: Context, config: Config): void { ctx.plugin(agentCore, agentCore.pickSpineConfig(config)) ctx.plugin(UserInteractionService) + // Same rationale as the Config schema above: each front door forwards its own + // persistence passthroughs rather than sharing a facade with stdio-demo. + /* jscpd:ignore-start */ ctx.plugin(SessionPersistenceJsonl, { root: config.persistenceRoot ?? DEFAULT_PERSISTENCE_ROOT, ...config.packChunks !== undefined ? { packChunks: config.packChunks } : {}, ...(config.persistenceCompression === undefined ? {} : { compression: config.persistenceCompression }), }) + /* jscpd:ignore-end */ ctx.plugin(acp, { provider: config.provider, model: config.model }) }