Skip to content

Commit 0487aa2

Browse files
chore(acp): document the foreground-events flavor flag
AI-assisted; verified with the tests and tools listed above.
1 parent 4df8535 commit 0487aa2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/provider-acp/src/server/adapter.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ export interface AcpAdapterV2Flavor {
554554
readonly enablePostSettleContinuation?: boolean;
555555
/** Settle on native idle after the accepted user echo, only on negotiated ACP v2. */
556556
readonly followAgentWorkState?: boolean;
557+
/** Settle on the agent's root idle/wake extension events on ACP v1, while the prompt RPC stays open. */
557558
readonly followForegroundEvents?: boolean;
558559
/**
559560
* Grok CLI currently accepts and vision-processes image blocks while still
@@ -1944,8 +1945,8 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
19441945
flavor.followForegroundEvents === true &&
19451946
setup.initializeResult.protocolVersion === 1;
19461947
followsAgentWorkState =
1947-
continuationRequests !== undefined &&
19481948
flavor.followAgentWorkState === true &&
1949+
continuationRequests !== undefined &&
19491950
setup.initializeResult.protocolVersion === 2;
19501951
agentWork = null;
19511952
foregroundWork = null;

0 commit comments

Comments
 (0)