From 222bebbbbe427d31d4009be5f5161cbed54b67ff Mon Sep 17 00:00:00 2001 From: Turtle Date: Sat, 25 Jul 2026 14:50:22 +0800 Subject: [PATCH] Clarify ACP workspace resolution --- docs/core-data-structures/subagent.i18n.yaml | 4 ++-- docs/core-data-structures/subagent.md | 3 ++- docs/core-data-structures/subagent.zh.md | 3 ++- packages/subagent/subagent/src/types.ts | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/core-data-structures/subagent.i18n.yaml b/docs/core-data-structures/subagent.i18n.yaml index 4aff0dc054..f0dd732459 100644 --- a/docs/core-data-structures/subagent.i18n.yaml +++ b/docs/core-data-structures/subagent.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write -subagent.md: b5e041dc54d43dcf3609885cfd3dc2c93fa09f25 -subagent.zh.md: 22fb3cd32bded30beff00a79ed4920ebacdd691a +subagent.md: 8a134b7be641323057135bcf772bf4cccec5c9a3 +subagent.zh.md: a66ad6b6c3b503b81fac97387577a689848edad2 diff --git a/docs/core-data-structures/subagent.md b/docs/core-data-structures/subagent.md index b5e041dc54..8a134b7be6 100644 --- a/docs/core-data-structures/subagent.md +++ b/docs/core-data-structures/subagent.md @@ -46,7 +46,8 @@ interface SubagentStartRequest { readonly prompt: ContentBlock[] /** * The spawning agent. In-process providers derive workspace, lineage, and - * delegation depth from its durable session state; ACP uses only its cwd. + * delegation depth from its durable session state. ACP reads only its cwd, + * and only when no deployment `cwd` override is configured. */ readonly parent: Agent /** diff --git a/docs/core-data-structures/subagent.zh.md b/docs/core-data-structures/subagent.zh.md index 22fb3cd32b..a66ad6b6c3 100644 --- a/docs/core-data-structures/subagent.zh.md +++ b/docs/core-data-structures/subagent.zh.md @@ -46,7 +46,8 @@ interface SubagentStartRequest { readonly prompt: ContentBlock[] /** * The spawning agent. In-process providers derive workspace, lineage, and - * delegation depth from its durable session state; ACP uses only its cwd. + * delegation depth from its durable session state. ACP reads only its cwd, + * and only when no deployment `cwd` override is configured. */ readonly parent: Agent /** diff --git a/packages/subagent/subagent/src/types.ts b/packages/subagent/subagent/src/types.ts index c4445e5d5d..fdb3527ebd 100644 --- a/packages/subagent/subagent/src/types.ts +++ b/packages/subagent/subagent/src/types.ts @@ -49,7 +49,8 @@ export interface SubagentStartRequest { readonly prompt: ContentBlock[] /** * The spawning agent. In-process providers derive workspace, lineage, and - * delegation depth from its durable session state; ACP uses only its cwd. + * delegation depth from its durable session state. ACP reads only its cwd, + * and only when no deployment `cwd` override is configured. */ readonly parent: Agent /**