@agentclientprotocol/claude-agent-acp 0.89.2-preview.6 → 0.89.2-preview.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp-agent.d.ts +52 -18
- package/dist/acp-agent.d.ts.map +1 -1
- package/dist/acp-agent.js +205 -76
- package/package.json +1 -1
package/dist/acp-agent.d.ts
CHANGED
|
@@ -284,7 +284,19 @@ type Turn = {
|
|
|
284
284
|
export type Session = {
|
|
285
285
|
query: Query;
|
|
286
286
|
input: Pushable<SDKUserMessage>;
|
|
287
|
+
/** Set by a cancel. While it is set, the consumer treats what arrives as the
|
|
288
|
+
* work the cancel stopped: it drops main-thread `assistant` and `user`
|
|
289
|
+
* messages (streamed text still goes out), skips results, and starts no
|
|
290
|
+
* model cycle. Cleared when the next prompt's turn activates,
|
|
291
|
+
* or when Claude Code starts a model request that serves none of
|
|
292
|
+
* {@link Session.cancelledPrompts} (see the `status` case of the
|
|
293
|
+
* consumer), such as its follow-up after a background command finished. */
|
|
287
294
|
cancelled: boolean;
|
|
295
|
+
/** The prompts whose work the cancel stopped: the turns it settled as
|
|
296
|
+
* cancelled, and their steers. Recorded when the cancel arrives, before the
|
|
297
|
+
* orphan accounting, which can undercount a prompt that Claude Code had
|
|
298
|
+
* already taken off its queue. */
|
|
299
|
+
cancelledPrompts?: Set<string>;
|
|
288
300
|
/** FIFO of in-flight prompts. The head is the turn the SDK is currently
|
|
289
301
|
* processing; later entries are queued and will be echoed in order. */
|
|
290
302
|
turnQueue?: Turn[];
|
|
@@ -356,6 +368,16 @@ export type Session = {
|
|
|
356
368
|
* cancel() routes orphan accounting to `orphanCommands` (exact, per-uuid)
|
|
357
369
|
* instead of `pendingOrphanResults` (count, coalescing-blind). */
|
|
358
370
|
msgLifecycleV1?: boolean;
|
|
371
|
+
/** True once a `system`/init advertised the request_marker_lists_v1
|
|
372
|
+
* capability: each `status: requesting` frame, which starts a model
|
|
373
|
+
* request, then lists the prompts the request serves in
|
|
374
|
+
* `user_message_uuids`, and leaves the field out for a request that serves
|
|
375
|
+
* none, such as a cycle that Claude Code started on its own. */
|
|
376
|
+
requestMarkerListsV1?: boolean;
|
|
377
|
+
/** A main-thread model request started (`status: requesting`) since the
|
|
378
|
+
* last result, so a model cycle runs. Read only with
|
|
379
|
+
* {@link Session.requestMarkerListsV1}. */
|
|
380
|
+
modelRequestSinceResult?: boolean;
|
|
359
381
|
/** Latched from `system`/init `terminal_slash_commands` (CLI 2.1.232+):
|
|
360
382
|
* names of advertised slash commands whose UX is bound to the CLI's own
|
|
361
383
|
* terminal (e.g. /doctor, /color). ACP clients aren't that terminal, so
|
|
@@ -462,11 +484,15 @@ export type Session = {
|
|
|
462
484
|
/** Whether nested subagent text/thinking is forwarded to the ACP client.
|
|
463
485
|
* Enabled by either the ACP capability or the pre-existing SDK option. */
|
|
464
486
|
forwardSubagentText: boolean;
|
|
465
|
-
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
|
|
487
|
+
/** The ACP permission and elicitation requests that await user input, each
|
|
488
|
+
* with the subagent that asked (`agentID`, absent for the main
|
|
489
|
+
* conversation and for a request that names no agent). Parallel subagents
|
|
490
|
+
* can ask concurrently. Steering stays non-interrupting while any request
|
|
491
|
+
* is open; the foreground work awaits the user while one that blocks it is
|
|
492
|
+
* open (see {@link blocksForeground}). */
|
|
493
|
+
openUserInputs?: Set<{
|
|
494
|
+
agentID?: string;
|
|
495
|
+
}>;
|
|
470
496
|
/** Context window size of the session's current model, carried across
|
|
471
497
|
* prompts so mid-stream usage_update notifications report a correct `size`
|
|
472
498
|
* before the turn's first result message arrives. Seeded synchronously at
|
|
@@ -582,6 +608,14 @@ export type Session = {
|
|
|
582
608
|
liveBackgroundTasks: Map<string, {
|
|
583
609
|
parentToolUseId?: string;
|
|
584
610
|
isSubagent: boolean;
|
|
611
|
+
/** Whether the task runs in the background, so that the tool call that
|
|
612
|
+
* spawned it does not wait on it (`task_started.is_backgrounded`, or a
|
|
613
|
+
* later `task_updated` patch). Absent when Claude Code did not say. */
|
|
614
|
+
backgrounded?: boolean;
|
|
615
|
+
/** The subagent task whose agent launched this task
|
|
616
|
+
* (`task_started.parent_task_id`), absent for one the main conversation
|
|
617
|
+
* launched. */
|
|
618
|
+
parentTaskId?: string;
|
|
585
619
|
/** Absent-from-level lifecycle, one field so the illegal
|
|
586
620
|
* armed-but-not-ended state is unrepresentable: undefined = live per
|
|
587
621
|
* the level signal; "ended" = a level omitted the task (holds stop
|
|
@@ -1300,19 +1334,19 @@ export declare class ClaudeAcpAgent {
|
|
|
1300
1334
|
private replaySessionHistory;
|
|
1301
1335
|
readTextFile(params: ReadTextFileRequest): Promise<ReadTextFileResponse>;
|
|
1302
1336
|
writeTextFile(params: WriteTextFileRequest): Promise<WriteTextFileResponse>;
|
|
1303
|
-
/** Mark a client request
|
|
1304
|
-
*
|
|
1305
|
-
*
|
|
1306
|
-
*
|
|
1307
|
-
*
|
|
1308
|
-
* `syncAwaitingUser`). */
|
|
1337
|
+
/** Mark a client request of the subagent `agentID` (absent for the main
|
|
1338
|
+
* conversation) as awaiting user input for exactly the lifetime of its
|
|
1339
|
+
* promise (see `Session.openUserInputs`). Steering consults the open
|
|
1340
|
+
* requests synchronously, so a message arriving while any permission or
|
|
1341
|
+
* elicitation card is open uses non-interrupting SDK delivery. */
|
|
1309
1342
|
private withPendingUserInput;
|
|
1310
1343
|
/** Report whether the session's foreground work awaits the user: exactly
|
|
1311
|
-
* while a permission request or question
|
|
1312
|
-
* does not say which prompt it is for,
|
|
1313
|
-
*
|
|
1314
|
-
*
|
|
1315
|
-
* when a turn activates
|
|
1344
|
+
* while a permission request or question that blocks it is open (see
|
|
1345
|
+
* {@link blocksForeground}). A request does not say which prompt it is for,
|
|
1346
|
+
* and Claude Code can ask for a queued prompt before the consumer activates
|
|
1347
|
+
* it, so a request is not tied to the work that was running when it
|
|
1348
|
+
* opened. Called when a request opens or closes, when a turn activates, and
|
|
1349
|
+
* when a task registers or moves to the background. */
|
|
1316
1350
|
private syncAwaitingUser;
|
|
1317
1351
|
/** Make `owner` the foreground work of the session `sessionId` (see
|
|
1318
1352
|
* {@link ForegroundEvents}): it reports `running`, then waits at once if a
|
|
@@ -1327,8 +1361,8 @@ export declare class ClaudeAcpAgent {
|
|
|
1327
1361
|
* work (see {@link ForegroundEvents}) when `message` is its first output:
|
|
1328
1362
|
* model output of the main conversation (not a subagent's) while no work
|
|
1329
1363
|
* runs. That includes a turn that v1 holds for its background subagents,
|
|
1330
|
-
* whose work ended at its result, so its follow-up is a cycle. Output
|
|
1331
|
-
* a cancel
|
|
1364
|
+
* whose work ended at its result, so its follow-up is a cycle. Output of
|
|
1365
|
+
* the work a cancel stopped starts nothing (see Session.cancelled). */
|
|
1332
1366
|
private startAutonomousCycle;
|
|
1333
1367
|
/** End the session's model cycle that Claude Code started on its own, if one
|
|
1334
1368
|
* runs. */
|
package/dist/acp-agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../src/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAER,mBAAmB,EAEnB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,+BAA+B,EAC/B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EAErB,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAGb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EAEd,mBAAmB,EACnB,oBAAoB,EAEpB,kBAAkB,EAClB,mBAAmB,EAEnB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,E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R,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;CAC7C,GACA,mBAAmB,EAAE,CAsHvB;AAED;;;;;;;;;;;oEAWoE;AACpE,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAC3D,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,cAAc,CAAC,CAczB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GACvC,QAAQ,CA0CV;AAED,8BAA8B;AAC9B,wBAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM;;;EAMrC"}
|
package/dist/acp-agent.js
CHANGED
|
@@ -2397,7 +2397,7 @@ export class ClaudeAcpAgent {
|
|
|
2397
2397
|
// Deliver into the running turn rather than queuing behind it as a fresh
|
|
2398
2398
|
// prompt would.
|
|
2399
2399
|
userMessage.priority =
|
|
2400
|
-
(session.
|
|
2400
|
+
(session.openUserInputs?.size ?? 0) > 0 ? STEER_PRIORITY_LATER : STEER_PRIORITY_NOW;
|
|
2401
2401
|
// Mark before the push and in the same synchronous section as the in-flight
|
|
2402
2402
|
// check: the interrupt can have the CLI finalizing the aborted cycle by the
|
|
2403
2403
|
// time the consumer next runs, and an unmarked result would settle the turn
|
|
@@ -2718,6 +2718,7 @@ export class ClaudeAcpAgent {
|
|
|
2718
2718
|
const activateTurn = (turn) => {
|
|
2719
2719
|
session.activeTurn = turn;
|
|
2720
2720
|
session.cancelled = false;
|
|
2721
|
+
session.cancelledPrompts = undefined;
|
|
2721
2722
|
compaction.resume();
|
|
2722
2723
|
if (turn.localCommand?.startsAtActivation)
|
|
2723
2724
|
ensureLocalCommandMarkdown(turn);
|
|
@@ -2789,7 +2790,7 @@ export class ClaudeAcpAgent {
|
|
|
2789
2790
|
* a stamp naming an orphaned command consumes the result outright, and a
|
|
2790
2791
|
* stamp naming anything else positively refutes "this is a dead turn's
|
|
2791
2792
|
* result", so the dup-over-loss one-skip must not eat it. */
|
|
2792
|
-
const ensureActiveTurn = async (resultUserMessageUuid) => {
|
|
2793
|
+
const ensureActiveTurn = async (resultUserMessageUuid, resultUserMessageUuids) => {
|
|
2793
2794
|
if (session.activeTurn) {
|
|
2794
2795
|
if (!isHeldOpen(session.activeTurn)) {
|
|
2795
2796
|
return;
|
|
@@ -2815,8 +2816,8 @@ export class ClaudeAcpAgent {
|
|
|
2815
2816
|
}
|
|
2816
2817
|
// Orphan accounting runs BEFORE the head check: an orphan's echo-less
|
|
2817
2818
|
// result can arrive with an EMPTY queue (the common post-cancel
|
|
2818
|
-
// timeline — the
|
|
2819
|
-
// user hasn't typed yet), and it must still be consumed here. Skipping
|
|
2819
|
+
// timeline — the cancelled turn settled at its interrupted result and
|
|
2820
|
+
// the user hasn't typed yet), and it must still be consumed here. Skipping
|
|
2820
2821
|
// the bookkeeping when there is nothing to promote would leave a
|
|
2821
2822
|
// phantom entry/count that swallows the next live echo-less result
|
|
2822
2823
|
// (e.g. /compact) instead.
|
|
@@ -2885,6 +2886,14 @@ export class ClaudeAcpAgent {
|
|
|
2885
2886
|
}
|
|
2886
2887
|
}
|
|
2887
2888
|
}
|
|
2889
|
+
// A result that names a prompt a cancel stopped is that prompt's, even
|
|
2890
|
+
// when the orphan accounting above lost track of it: the interrupt
|
|
2891
|
+
// receipt leaves out a prompt that Claude Code had already taken off its
|
|
2892
|
+
// queue. It must not settle the prompt sent after the cancel.
|
|
2893
|
+
const stamps = resultUserMessageUuids ??
|
|
2894
|
+
(resultUserMessageUuid !== undefined ? [resultUserMessageUuid] : []);
|
|
2895
|
+
if (stamps.some((uuid) => session.cancelledPrompts?.has(uuid)))
|
|
2896
|
+
return;
|
|
2888
2897
|
const head = firstUnsettledQueuedTurn();
|
|
2889
2898
|
if (!head) {
|
|
2890
2899
|
return;
|
|
@@ -2984,15 +2993,23 @@ export class ClaudeAcpAgent {
|
|
|
2984
2993
|
};
|
|
2985
2994
|
/** Registers a live background task (see `liveBackgroundTasks`). A
|
|
2986
2995
|
* subagent is also recorded on the active turn, so that turn holds until
|
|
2987
|
-
* the subagent settles (see `Turn.spawnedTaskIds`).
|
|
2988
|
-
|
|
2989
|
-
|
|
2996
|
+
* the subagent settles (see `Turn.spawnedTaskIds`). Its requests may
|
|
2997
|
+
* already be open, and where it runs decides whether they block the
|
|
2998
|
+
* foreground work, so that is checked again. */
|
|
2999
|
+
const registerLiveTask = (taskId, parentToolUseId, isSubagent, placement = {}) => {
|
|
3000
|
+
session.liveBackgroundTasks.set(taskId, {
|
|
3001
|
+
parentToolUseId,
|
|
3002
|
+
isSubagent,
|
|
3003
|
+
...(placement.backgrounded !== undefined ? { backgrounded: placement.backgrounded } : {}),
|
|
3004
|
+
...(placement.parentTaskId !== undefined ? { parentTaskId: placement.parentTaskId } : {}),
|
|
3005
|
+
});
|
|
2990
3006
|
if (parentToolUseId)
|
|
2991
3007
|
forgetForegroundToolCall(session, parentToolUseId);
|
|
2992
3008
|
session.resumableSubagents?.delete(taskId);
|
|
2993
3009
|
if (isSubagent && session.activeTurn && !session.activeTurn.settled) {
|
|
2994
3010
|
(session.activeTurn.spawnedTaskIds ??= new Set()).add(taskId);
|
|
2995
3011
|
}
|
|
3012
|
+
this.syncAwaitingUser(params.sessionId, session);
|
|
2996
3013
|
};
|
|
2997
3014
|
const settleLiveTask = (taskId) => settleLiveBackgroundTask(session, taskId);
|
|
2998
3015
|
/** Registers a settled subagent again when the SDK resumes it without a
|
|
@@ -3003,8 +3020,9 @@ export class ClaudeAcpAgent {
|
|
|
3003
3020
|
if (session.liveBackgroundTasks.has(taskId))
|
|
3004
3021
|
return;
|
|
3005
3022
|
const settled = session.resumableSubagents?.get(taskId);
|
|
3023
|
+
// Claude Code always resumes a subagent in the background.
|
|
3006
3024
|
if (settled)
|
|
3007
|
-
registerLiveTask(taskId, settled.parentToolUseId, true);
|
|
3025
|
+
registerLiveTask(taskId, settled.parentToolUseId, true, { backgrounded: true });
|
|
3008
3026
|
};
|
|
3009
3027
|
/** Whether any background subagent this turn spawned is still live —
|
|
3010
3028
|
* while true, the turn's settlement stays deferred so the subagent's
|
|
@@ -3333,9 +3351,9 @@ export class ClaudeAcpAgent {
|
|
|
3333
3351
|
}
|
|
3334
3352
|
}
|
|
3335
3353
|
else if (active.commandResultSeen) {
|
|
3336
|
-
// Its result was already consumed (
|
|
3337
|
-
//
|
|
3338
|
-
//
|
|
3354
|
+
// Its result was already consumed (at the cancelled guard);
|
|
3355
|
+
// only the terminal frame is outstanding, which no-ops with no
|
|
3356
|
+
// entry. Nothing to track.
|
|
3339
3357
|
}
|
|
3340
3358
|
else {
|
|
3341
3359
|
// The wedged turn WAS dispatched (it's active), so track it
|
|
@@ -3559,6 +3577,9 @@ export class ClaudeAcpAgent {
|
|
|
3559
3577
|
if (message.capabilities?.includes("msg_lifecycle_v1")) {
|
|
3560
3578
|
session.msgLifecycleV1 = true;
|
|
3561
3579
|
}
|
|
3580
|
+
if (message.capabilities?.includes("request_marker_lists_v1")) {
|
|
3581
|
+
session.requestMarkerListsV1 = true;
|
|
3582
|
+
}
|
|
3562
3583
|
// A fresh `system`/init (e.g. after reinitialize) can carry an
|
|
3563
3584
|
// updated Fast mode state; reconcile it with what we seeded at
|
|
3564
3585
|
// session creation.
|
|
@@ -3594,6 +3615,24 @@ export class ClaudeAcpAgent {
|
|
|
3594
3615
|
}
|
|
3595
3616
|
break;
|
|
3596
3617
|
case "status": {
|
|
3618
|
+
// A model request that serves none of the prompts a cancel
|
|
3619
|
+
// stopped is new work, such as Claude Code's follow-up after a
|
|
3620
|
+
// background command finished. It comes after the stopped
|
|
3621
|
+
// work's result: Claude Code ends the interrupted turn first,
|
|
3622
|
+
// then runs any prompt it had already taken off its queue (its
|
|
3623
|
+
// request names it, so the cancel still drops it), then its own
|
|
3624
|
+
// follow-ups, whose requests name no prompt.
|
|
3625
|
+
if (message.status === "requesting" &&
|
|
3626
|
+
session.cancelled &&
|
|
3627
|
+
session.requestMarkerListsV1 &&
|
|
3628
|
+
!servesCancelledWork(session, message)) {
|
|
3629
|
+
session.cancelled = false;
|
|
3630
|
+
session.cancelledPrompts = undefined;
|
|
3631
|
+
// The stopped work's tail has drained, as at activation.
|
|
3632
|
+
compaction.resume();
|
|
3633
|
+
}
|
|
3634
|
+
if (message.status === "requesting")
|
|
3635
|
+
session.modelRequestSinceResult = true;
|
|
3597
3636
|
if (message.status === "compacting") {
|
|
3598
3637
|
await compaction.start(message.uuid);
|
|
3599
3638
|
}
|
|
@@ -3705,9 +3744,9 @@ export class ClaudeAcpAgent {
|
|
|
3705
3744
|
// the time it arrives the SDK may have echoed the NEXT turn
|
|
3706
3745
|
// and activated it — settling now would resolve that new
|
|
3707
3746
|
// turn prematurely with end_turn and ~zero usage, dropping
|
|
3708
|
-
// its real result. A cancelled turn
|
|
3709
|
-
//
|
|
3710
|
-
//
|
|
3747
|
+
// its real result. A cancelled turn settles at its
|
|
3748
|
+
// interrupted result (at the `session.cancelled` guard); one
|
|
3749
|
+
// whose result never came settles here.
|
|
3711
3750
|
//
|
|
3712
3751
|
// An idle that is NOT owed while the active turn is still
|
|
3713
3752
|
// unsettled is the issue #825 signature: `idle` is the SDK's
|
|
@@ -3719,12 +3758,9 @@ export class ClaudeAcpAgent {
|
|
|
3719
3758
|
// the turn NOW so its session/prompt gets a terminal
|
|
3720
3759
|
// response, instead of leaving it hanging until the next
|
|
3721
3760
|
// prompt drains the wreckage.
|
|
3722
|
-
// A cancelled turn
|
|
3723
|
-
//
|
|
3724
|
-
//
|
|
3725
|
-
// report it — clients metering spend would otherwise lose
|
|
3726
|
-
// the interrupted turn's tokens entirely (issue #844). Zero
|
|
3727
|
-
// when the cancel pre-empted the result (wedge/force-cancel).
|
|
3761
|
+
// A cancelled turn reaches this with no result of its own,
|
|
3762
|
+
// so its usage is zero (wedge/force-cancel), or, for a held
|
|
3763
|
+
// turn, the usage its result recorded (issue #844).
|
|
3728
3764
|
if (session.cancelled && session.activeTurn && !session.activeTurn.settled) {
|
|
3729
3765
|
// A held turn's result passed long ago; this idle is the
|
|
3730
3766
|
// trailer of the followup cycle the cancel interrupted,
|
|
@@ -3996,7 +4032,10 @@ export class ClaudeAcpAgent {
|
|
|
3996
4032
|
// turn: a turn only ever waits on its own subagents, and a
|
|
3997
4033
|
// spawn during a held-open drain window (an agent chain)
|
|
3998
4034
|
// extends that turn's hold.
|
|
3999
|
-
registerLiveTask(message.task_id, message.tool_use_id, !!message.subagent_type
|
|
4035
|
+
registerLiveTask(message.task_id, message.tool_use_id, !!message.subagent_type, {
|
|
4036
|
+
backgrounded: message.is_backgrounded,
|
|
4037
|
+
parentTaskId: message.parent_task_id,
|
|
4038
|
+
});
|
|
4000
4039
|
await subagents.taskStarted({
|
|
4001
4040
|
taskId: message.task_id,
|
|
4002
4041
|
toolUseId: message.tool_use_id,
|
|
@@ -4043,6 +4082,14 @@ export class ClaudeAcpAgent {
|
|
|
4043
4082
|
break;
|
|
4044
4083
|
}
|
|
4045
4084
|
await asyncTasks.taskUpdated(message.task_id, message.patch);
|
|
4085
|
+
// A task moved to the background no longer blocks the tool
|
|
4086
|
+
// call that spawned it, nor its requests the foreground work.
|
|
4087
|
+
if (message.patch.is_backgrounded !== undefined) {
|
|
4088
|
+
const task = session.liveBackgroundTasks.get(message.task_id);
|
|
4089
|
+
if (task)
|
|
4090
|
+
task.backgrounded = message.patch.is_backgrounded;
|
|
4091
|
+
this.syncAwaitingUser(params.sessionId, session);
|
|
4092
|
+
}
|
|
4046
4093
|
// terminal-status task_updated patch and a (deduplicated)
|
|
4047
4094
|
// task_notification when a task settles, but only the patch is
|
|
4048
4095
|
// guaranteed per transition — prune on it too so the registry
|
|
@@ -4264,6 +4311,7 @@ export class ClaudeAcpAgent {
|
|
|
4264
4311
|
}
|
|
4265
4312
|
break;
|
|
4266
4313
|
case "result": {
|
|
4314
|
+
session.modelRequestSinceResult = false;
|
|
4267
4315
|
// The result ends the model turn. A background task that still
|
|
4268
4316
|
// waits for its tool call id gets its spawn now, without the id.
|
|
4269
4317
|
await asyncTasks.releaseHeld();
|
|
@@ -4298,7 +4346,7 @@ export class ClaudeAcpAgent {
|
|
|
4298
4346
|
// the map in that case).
|
|
4299
4347
|
if (!isAutonomousResult) {
|
|
4300
4348
|
recordResultForOrphanCommands();
|
|
4301
|
-
await ensureActiveTurn(message.user_message_uuid);
|
|
4349
|
+
await ensureActiveTurn(message.user_message_uuid, message.user_message_uuids);
|
|
4302
4350
|
// A result that names a steer consumed it (see
|
|
4303
4351
|
// Turn.steeredEchoes), so the steered work is done: retire
|
|
4304
4352
|
// its echo — the CLI may never have replayed it — and, with
|
|
@@ -4359,13 +4407,10 @@ export class ClaudeAcpAgent {
|
|
|
4359
4407
|
// orphan skip) and the SDK follows it with a trailing
|
|
4360
4408
|
// `session_state_changed: idle` — record the debt so the idle
|
|
4361
4409
|
// handler absorbs that idle rather than reading it as a turn the
|
|
4362
|
-
// SDK abandoned (issue #825).
|
|
4363
|
-
// turn
|
|
4364
|
-
// guard
|
|
4365
|
-
//
|
|
4366
|
-
// the debt there instead) — counting here too would double it.
|
|
4367
|
-
// Results skipped while cancelled with NO active turn — orphaned
|
|
4368
|
-
// queued turns the SDK still ran, or a force-cancelled turn's
|
|
4410
|
+
// SDK abandoned (issue #825). That includes the result of a
|
|
4411
|
+
// cancelled turn, which settles it at the `session.cancelled`
|
|
4412
|
+
// guard below. Results skipped while cancelled with NO active
|
|
4413
|
+
// turn — orphaned queued turns the SDK still ran, or a force-cancelled turn's
|
|
4369
4414
|
// late result after the backstop settled it — get no such settle,
|
|
4370
4415
|
// so their trailers must be counted here or they'd later be read
|
|
4371
4416
|
// as the next healthy turn being abandoned and false-fail it.
|
|
@@ -4378,20 +4423,17 @@ export class ClaudeAcpAgent {
|
|
|
4378
4423
|
// but a held turn settling AT a followup result unblocks the
|
|
4379
4424
|
// client at exactly that point, making the race the common
|
|
4380
4425
|
// case.
|
|
4381
|
-
//
|
|
4382
|
-
// turn's OWN result — a followup result arriving inside the
|
|
4383
|
-
// cancel window still gets its own trailer and must be counted,
|
|
4384
|
-
// or that idle would later false-fail the next prompt.
|
|
4385
|
-
// A second exclusion: a steered turn's own results (see
|
|
4426
|
+
// One exclusion: a steered turn's own results (see
|
|
4386
4427
|
// Turn.steeredEchoes). One idle covers the whole interrupted +
|
|
4387
4428
|
// steered sequence and that idle settles the turn, so counting
|
|
4388
4429
|
// either result would leave a debt that swallows it. Autonomous
|
|
4389
4430
|
// results inside a steered turn keep their own trailers, and so
|
|
4390
4431
|
// does a result that named the steer: it took the turn out of the
|
|
4391
|
-
// steer lane above and settles at the result, not the idle.
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4432
|
+
// steer lane above and settles at the result, not the idle. So
|
|
4433
|
+
// does a cancelled steered turn's result, which settles it at the
|
|
4434
|
+
// `session.cancelled` guard below.
|
|
4435
|
+
const owesTrailingIdle = isAutonomousResult || !isSteering(session.activeTurn) || session.cancelled;
|
|
4436
|
+
if (owesTrailingIdle) {
|
|
4395
4437
|
session.owedTrailingIdles++;
|
|
4396
4438
|
}
|
|
4397
4439
|
// Accumulate usage into the user turn's tally. Skip autonomous
|
|
@@ -4495,7 +4537,7 @@ export class ClaudeAcpAgent {
|
|
|
4495
4537
|
pendingExitPlanContextReset?.toolUseId ===
|
|
4496
4538
|
pendingExitPlanModeInterruption?.toolUseId;
|
|
4497
4539
|
if (!continuesPlan && !(isAutonomousResult && message.num_turns === 0)) {
|
|
4498
|
-
this.endAutonomousCycle(params.sessionId, autonomousCycleEnd(message, resultModelUsage, session.cancelled || exitPlanInterruption));
|
|
4540
|
+
this.endAutonomousCycle(params.sessionId, autonomousCycleEnd(message, resultModelUsage, session.cancelled || exitPlanInterruption || isAbortedResult(message)));
|
|
4499
4541
|
}
|
|
4500
4542
|
if (session.cancelled) {
|
|
4501
4543
|
session.pendingExitPlanModeInterruption = undefined;
|
|
@@ -4504,6 +4546,21 @@ export class ClaudeAcpAgent {
|
|
|
4504
4546
|
await clearFailuresFromEarlierTurns();
|
|
4505
4547
|
stopReason = "cancelled";
|
|
4506
4548
|
}
|
|
4549
|
+
// The cancelled turn ends at the result of the work the
|
|
4550
|
+
// interrupt stopped: its own result, or for a turn held open
|
|
4551
|
+
// for its subagents (see Turn.deferredSettle), its follow-up's
|
|
4552
|
+
// aborted one. A follow-up result that is not aborted, such as
|
|
4553
|
+
// a placeholder or one that ended before the interrupt landed,
|
|
4554
|
+
// belongs to other work. Claude Code ends the stopped work
|
|
4555
|
+
// first, then goes on with its queue, so the idle can come
|
|
4556
|
+
// much later, after a follow-up. That idle, the next echo's
|
|
4557
|
+
// hand-off, and the force-cancel backstop settle a turn whose
|
|
4558
|
+
// result never comes.
|
|
4559
|
+
const active = session.activeTurn;
|
|
4560
|
+
const stoppedWork = !isAutonomousResult || (isHeldOpen(active) && isAbortedResult(message));
|
|
4561
|
+
if (active && !active.settled && stoppedWork) {
|
|
4562
|
+
await settleActive(cancelledOutcome(session, active));
|
|
4563
|
+
}
|
|
4507
4564
|
break;
|
|
4508
4565
|
}
|
|
4509
4566
|
// A held turn (see Turn.deferredSettle) settles at its
|
|
@@ -4811,9 +4868,10 @@ export class ClaudeAcpAgent {
|
|
|
4811
4868
|
// subagent never holds the prompt hostage.
|
|
4812
4869
|
//
|
|
4813
4870
|
// is_error/auth already settled via failActive (activeTurn is null
|
|
4814
|
-
// then, so both branches no-op);
|
|
4815
|
-
//
|
|
4816
|
-
//
|
|
4871
|
+
// then, so both branches no-op); a cancelled turn settles at
|
|
4872
|
+
// the `session.cancelled` guard above, or on the idle/abort
|
|
4873
|
+
// path when its result never comes. settleActive is idempotent,
|
|
4874
|
+
// so a duplicate idle is a no-op.
|
|
4817
4875
|
//
|
|
4818
4876
|
// A result also closes this compaction lifecycle — before the
|
|
4819
4877
|
// settle, so a `cancelled` terminal for an entity the runtime
|
|
@@ -5012,7 +5070,7 @@ export class ClaudeAcpAgent {
|
|
|
5012
5070
|
if (session.activeTurn !== queued) {
|
|
5013
5071
|
if (session.activeTurn) {
|
|
5014
5072
|
// Hand off the previous turn. If a cancel is pending for it
|
|
5015
|
-
// (its
|
|
5073
|
+
// (neither its result nor its idle has arrived), settle it
|
|
5016
5074
|
// "cancelled" per the ACP contract rather than "end_turn" —
|
|
5017
5075
|
// otherwise a cancel followed quickly by the next prompt
|
|
5018
5076
|
// would report the cancelled turn as a normal completion.
|
|
@@ -5490,6 +5548,16 @@ export class ClaudeAcpAgent {
|
|
|
5490
5548
|
return;
|
|
5491
5549
|
}
|
|
5492
5550
|
session.cancelled = true;
|
|
5551
|
+
// Before anything awaits, so a model request that the consumer reads in
|
|
5552
|
+
// the meantime is already judged against these prompts.
|
|
5553
|
+
session.cancelledPrompts ??= new Set();
|
|
5554
|
+
for (const turn of session.turnQueue ?? []) {
|
|
5555
|
+
if (turn.settled)
|
|
5556
|
+
continue;
|
|
5557
|
+
session.cancelledPrompts.add(turn.promptUuid);
|
|
5558
|
+
for (const uuid of turn.steeredUuids ?? [])
|
|
5559
|
+
session.cancelledPrompts.add(uuid);
|
|
5560
|
+
}
|
|
5493
5561
|
for (const turn of session.turnQueue ?? [])
|
|
5494
5562
|
turn.localCommandAbort?.abort();
|
|
5495
5563
|
session.pendingExitPlanModeInterruption = undefined;
|
|
@@ -5540,9 +5608,10 @@ export class ClaudeAcpAgent {
|
|
|
5540
5608
|
// never decrements the count) to miss.
|
|
5541
5609
|
const lifecycleLane = session.msgLifecycleV1 === true;
|
|
5542
5610
|
// Settle queued turns that haven't started yet (no echo seen) right away —
|
|
5543
|
-
// they have no in-flight SDK work to interrupt. The
|
|
5544
|
-
//
|
|
5545
|
-
// backstop below). Mirrors the old pendingMessages
|
|
5611
|
+
// they have no in-flight SDK work to interrupt. The consumer settles the
|
|
5612
|
+
// active turn at its interrupted result, or at the idle when that never
|
|
5613
|
+
// comes (or via the backstop below). Mirrors the old pendingMessages
|
|
5614
|
+
// cancellation.
|
|
5546
5615
|
const orphanedTurns = [];
|
|
5547
5616
|
if (session.turnQueue) {
|
|
5548
5617
|
for (const turn of session.turnQueue) {
|
|
@@ -5628,14 +5697,19 @@ export class ClaudeAcpAgent {
|
|
|
5628
5697
|
// whose session sits idle gets no trailing idle (the interrupt emits
|
|
5629
5698
|
// nothing; with no state events consumed yet, the same is assumed).
|
|
5630
5699
|
// A held turn whose followup cycle is live (running, or blocked on a
|
|
5631
|
-
// permission request) is left to that
|
|
5632
|
-
//
|
|
5633
|
-
//
|
|
5634
|
-
//
|
|
5635
|
-
//
|
|
5700
|
+
// permission request) is left to that cycle's interrupted result, like any
|
|
5701
|
+
// live turn, or to the idle when no result comes. The captured outcome
|
|
5702
|
+
// preserves usage and metadata (issue #844), while reporter state makes a
|
|
5703
|
+
// late checkpoint response harmless.
|
|
5704
|
+
// Since CLI 2.1.270, Claude Code reports `running` for as long as
|
|
5705
|
+
// background agents live, so the session state cannot tell a live
|
|
5706
|
+
// followup from a hold. With request markers, a followup is live when one
|
|
5707
|
+
// of its model requests started after the turn's result.
|
|
5636
5708
|
{
|
|
5637
5709
|
const active = session.activeTurn;
|
|
5638
|
-
const followupLive = session.
|
|
5710
|
+
const followupLive = session.requestMarkerListsV1
|
|
5711
|
+
? session.modelRequestSinceResult === true
|
|
5712
|
+
: session.lastSessionState === "running" || session.lastSessionState === "requires_action";
|
|
5639
5713
|
if (active &&
|
|
5640
5714
|
(active.settling || (isHeldOpen(active) && !followupLive)) &&
|
|
5641
5715
|
(active.deferredSettle ?? active.settlingOutcome)) {
|
|
@@ -5675,7 +5749,7 @@ export class ClaudeAcpAgent {
|
|
|
5675
5749
|
}
|
|
5676
5750
|
}
|
|
5677
5751
|
// A steered active turn (see Turn.steeredEchoes) settles "cancelled" in the
|
|
5678
|
-
// consumer at
|
|
5752
|
+
// consumer at its interrupted result, or at the idle, like any live turn. But the
|
|
5679
5753
|
// steer lane pays for its last result's trailer by settling on it, which
|
|
5680
5754
|
// this cancel pre-empts, so count that trailer here or it arrives un-owed
|
|
5681
5755
|
// against the next prompt and false-fails it (issue #825). Over-counting
|
|
@@ -5706,6 +5780,10 @@ export class ClaudeAcpAgent {
|
|
|
5706
5780
|
}
|
|
5707
5781
|
// Before the interrupt: once it stops the running turn, Claude Code starts
|
|
5708
5782
|
// the next queued message right away.
|
|
5783
|
+
// A prompt or steer that arrived while this cancel awaited is abandoned
|
|
5784
|
+
// too, after the record above was taken.
|
|
5785
|
+
for (const uuid of abandoned)
|
|
5786
|
+
(session.cancelledPrompts ??= new Set()).add(uuid);
|
|
5709
5787
|
this.dropQueuedMessages(params.sessionId, session.query, abandoned);
|
|
5710
5788
|
const interrupt = session.query.interrupt();
|
|
5711
5789
|
if (!options.awaitInterrupt) {
|
|
@@ -6335,37 +6413,38 @@ export class ClaudeAcpAgent {
|
|
|
6335
6413
|
const response = await this.client.writeTextFile(params);
|
|
6336
6414
|
return response;
|
|
6337
6415
|
}
|
|
6338
|
-
/** Mark a client request
|
|
6339
|
-
*
|
|
6340
|
-
*
|
|
6341
|
-
*
|
|
6342
|
-
*
|
|
6343
|
-
|
|
6344
|
-
async withPendingUserInput(sessionId, request) {
|
|
6416
|
+
/** Mark a client request of the subagent `agentID` (absent for the main
|
|
6417
|
+
* conversation) as awaiting user input for exactly the lifetime of its
|
|
6418
|
+
* promise (see `Session.openUserInputs`). Steering consults the open
|
|
6419
|
+
* requests synchronously, so a message arriving while any permission or
|
|
6420
|
+
* elicitation card is open uses non-interrupting SDK delivery. */
|
|
6421
|
+
async withPendingUserInput(sessionId, request, agentID) {
|
|
6345
6422
|
const session = this.sessions[sessionId];
|
|
6346
6423
|
if (!session)
|
|
6347
6424
|
return request();
|
|
6348
|
-
|
|
6425
|
+
const input = agentID !== undefined ? { agentID } : {};
|
|
6426
|
+
(session.openUserInputs ??= new Set()).add(input);
|
|
6349
6427
|
this.syncAwaitingUser(sessionId, session);
|
|
6350
6428
|
try {
|
|
6351
6429
|
return await request();
|
|
6352
6430
|
}
|
|
6353
6431
|
finally {
|
|
6354
|
-
session.
|
|
6432
|
+
session.openUserInputs.delete(input);
|
|
6355
6433
|
this.syncAwaitingUser(sessionId, session);
|
|
6356
6434
|
}
|
|
6357
6435
|
}
|
|
6358
6436
|
/** Report whether the session's foreground work awaits the user: exactly
|
|
6359
|
-
* while a permission request or question
|
|
6360
|
-
* does not say which prompt it is for,
|
|
6361
|
-
*
|
|
6362
|
-
*
|
|
6363
|
-
* when a turn activates
|
|
6437
|
+
* while a permission request or question that blocks it is open (see
|
|
6438
|
+
* {@link blocksForeground}). A request does not say which prompt it is for,
|
|
6439
|
+
* and Claude Code can ask for a queued prompt before the consumer activates
|
|
6440
|
+
* it, so a request is not tied to the work that was running when it
|
|
6441
|
+
* opened. Called when a request opens or closes, when a turn activates, and
|
|
6442
|
+
* when a task registers or moves to the background. */
|
|
6364
6443
|
syncAwaitingUser(sessionId, session) {
|
|
6365
6444
|
const work = this.foregroundWork.get(sessionId);
|
|
6366
6445
|
if (!work)
|
|
6367
6446
|
return;
|
|
6368
|
-
const waiting = (session.
|
|
6447
|
+
const waiting = [...(session.openUserInputs ?? [])].some((input) => blocksForeground(session, input.agentID));
|
|
6369
6448
|
if (waiting === work.awaitingUser)
|
|
6370
6449
|
return;
|
|
6371
6450
|
work.awaitingUser = waiting;
|
|
@@ -6410,8 +6489,8 @@ export class ClaudeAcpAgent {
|
|
|
6410
6489
|
* work (see {@link ForegroundEvents}) when `message` is its first output:
|
|
6411
6490
|
* model output of the main conversation (not a subagent's) while no work
|
|
6412
6491
|
* runs. That includes a turn that v1 holds for its background subagents,
|
|
6413
|
-
* whose work ended at its result, so its follow-up is a cycle. Output
|
|
6414
|
-
* a cancel
|
|
6492
|
+
* whose work ended at its result, so its follow-up is a cycle. Output of
|
|
6493
|
+
* the work a cancel stopped starts nothing (see Session.cancelled). */
|
|
6415
6494
|
startAutonomousCycle(sessionId, session, message) {
|
|
6416
6495
|
if (!this.foregroundEvents || this.foregroundWork.has(sessionId) || session.cancelled)
|
|
6417
6496
|
return;
|
|
@@ -6439,7 +6518,7 @@ export class ClaudeAcpAgent {
|
|
|
6439
6518
|
* `$/cancel_request`, and our local abort race settles even if the client
|
|
6440
6519
|
* ignores it. A `cancelled` outcome, request rejection, and local abort all
|
|
6441
6520
|
* surface the same "Tool use aborted" the callers already expect. */
|
|
6442
|
-
async requestPermissionFromClient(params, toolName, signal, parentToolUseId, ownerSessionId, toolInput, previewContent) {
|
|
6521
|
+
async requestPermissionFromClient(params, toolName, signal, parentToolUseId, ownerSessionId, agentID, toolInput, previewContent) {
|
|
6443
6522
|
if (signal.aborted)
|
|
6444
6523
|
throw new Error("Tool use aborted");
|
|
6445
6524
|
// The SDK may invoke `canUseTool` (and therefore this permission request)
|
|
@@ -6457,7 +6536,7 @@ export class ClaudeAcpAgent {
|
|
|
6457
6536
|
// The request goes to a subagent's child session for a tool call of that
|
|
6458
6537
|
// subagent, but it blocks the turn of the owner session.
|
|
6459
6538
|
try {
|
|
6460
|
-
return await this.withPendingUserInput(ownerSessionId, () => raceWithAbort(this.client.requestPermission(params, signal), signal));
|
|
6539
|
+
return await this.withPendingUserInput(ownerSessionId, () => raceWithAbort(this.client.requestPermission(params, signal), signal), agentID);
|
|
6461
6540
|
}
|
|
6462
6541
|
catch (error) {
|
|
6463
6542
|
if (signal.aborted) {
|
|
@@ -6630,7 +6709,7 @@ export class ClaudeAcpAgent {
|
|
|
6630
6709
|
// Like permission requests, the elicitation references this toolUseID, so
|
|
6631
6710
|
// make sure the tool_call has surfaced to the client before we send it.
|
|
6632
6711
|
await this.ensureToolCallEmitted(sessionId, toolName, toolUseID, toolInput, parentToolUseId, signal, permissionSessionId);
|
|
6633
|
-
return this.handleAskUserQuestion(sessionId, permissionSessionId, toolInput, toolUseID, signal);
|
|
6712
|
+
return this.handleAskUserQuestion(sessionId, permissionSessionId, toolInput, toolUseID, signal, agentID);
|
|
6634
6713
|
}
|
|
6635
6714
|
// Do not auto-allow here based on the session's advertised mode. Claude
|
|
6636
6715
|
// Code applies bypassPermissions before invoking canUseTool; a request
|
|
@@ -6699,7 +6778,7 @@ export class ClaudeAcpAgent {
|
|
|
6699
6778
|
...presentation,
|
|
6700
6779
|
options: permissionOptions,
|
|
6701
6780
|
sessionId: permissionSessionId,
|
|
6702
|
-
}, toolName, signal, parentToolUseId, sessionId, toolInput, previewContent);
|
|
6781
|
+
}, toolName, signal, parentToolUseId, sessionId, agentID, toolInput, previewContent);
|
|
6703
6782
|
if (signal.aborted)
|
|
6704
6783
|
throw new Error("Tool use aborted");
|
|
6705
6784
|
const decodedPermission = decodeClaudePermissionResponse(response, toolName, toolInput, toolUseID, permissionOptions, durableChangeSet);
|
|
@@ -6787,7 +6866,7 @@ export class ClaudeAcpAgent {
|
|
|
6787
6866
|
* The elicitation goes to `requestSessionId`, a subagent's child session for
|
|
6788
6867
|
* a question it asks, and blocks the turn of `sessionId`.
|
|
6789
6868
|
*/
|
|
6790
|
-
async handleAskUserQuestion(sessionId, requestSessionId, toolInput, toolUseID, signal) {
|
|
6869
|
+
async handleAskUserQuestion(sessionId, requestSessionId, toolInput, toolUseID, signal, agentID) {
|
|
6791
6870
|
const questions = extractAskUserQuestions(toolInput);
|
|
6792
6871
|
if (!questions) {
|
|
6793
6872
|
return { behavior: "deny", message: "AskUserQuestion called with no valid questions." };
|
|
@@ -6795,7 +6874,7 @@ export class ClaudeAcpAgent {
|
|
|
6795
6874
|
const createRequest = askUserQuestionsToCreateRequest(questions, requestSessionId, toolUseID, this.toolCallCapabilities.air.client);
|
|
6796
6875
|
let response;
|
|
6797
6876
|
try {
|
|
6798
|
-
response = await this.withPendingUserInput(sessionId, () => this.client.createElicitation(createRequest, signal));
|
|
6877
|
+
response = await this.withPendingUserInput(sessionId, () => this.client.createElicitation(createRequest, signal), agentID);
|
|
6799
6878
|
}
|
|
6800
6879
|
catch (error) {
|
|
6801
6880
|
// A cancellation we requested (signal aborted) settles as an aborted tool
|
|
@@ -8040,6 +8119,30 @@ function cancelledOutcome(session, turn) {
|
|
|
8040
8119
|
...(recorded._meta ? { _meta: recorded._meta } : {}),
|
|
8041
8120
|
};
|
|
8042
8121
|
}
|
|
8122
|
+
/** Whether the model request that `status` (a `status: requesting` frame)
|
|
8123
|
+
* starts may belong to the work a cancel stopped. It may while:
|
|
8124
|
+
* - a turn is unsettled: the stopped turn, whose result is still to come, or
|
|
8125
|
+
* a queued prompt, which the cancel abandons (one that arrived while the
|
|
8126
|
+
* cancel awaited is recorded only when the cancel sweeps the queue) or
|
|
8127
|
+
* whose echo ends the cancel right after its request anyway;
|
|
8128
|
+
* - the orphan accounting still expects the result of an abandoned prompt
|
|
8129
|
+
* that Claude Code may still run, which it can fold into its own
|
|
8130
|
+
* follow-up after that follow-up's first request;
|
|
8131
|
+
* - the request serves one of {@link Session.cancelledPrompts}, as an
|
|
8132
|
+
* abandoned prompt's request does even when the interrupt receipt left it
|
|
8133
|
+
* out of the orphan accounting. */
|
|
8134
|
+
function servesCancelledWork(session, status) {
|
|
8135
|
+
const cancelled = session.cancelledPrompts;
|
|
8136
|
+
if (!cancelled)
|
|
8137
|
+
return false;
|
|
8138
|
+
if ((session.turnQueue ?? []).some((turn) => !turn.settled))
|
|
8139
|
+
return true;
|
|
8140
|
+
if ((session.pendingOrphanResults ?? 0) > 0 || (session.orphanCommands?.size ?? 0) > 0) {
|
|
8141
|
+
return true;
|
|
8142
|
+
}
|
|
8143
|
+
const served = status.user_message_uuids;
|
|
8144
|
+
return (Array.isArray(served) && served.some((uuid) => typeof uuid === "string" && cancelled.has(uuid)));
|
|
8145
|
+
}
|
|
8043
8146
|
/** `_meta.quota` for a prompt response: what the turn spent, shaped like
|
|
8044
8147
|
* codex-acp's (snake_case container keys, camelCase counters) so a client
|
|
8045
8148
|
* reads one shape from either agent.
|
|
@@ -8067,6 +8170,32 @@ function quotaMeta(usage, modelUsage) {
|
|
|
8067
8170
|
},
|
|
8068
8171
|
};
|
|
8069
8172
|
}
|
|
8173
|
+
/** Whether a request that awaits the user for the subagent `agentID` (absent
|
|
8174
|
+
* for the main conversation) blocks the session's foreground work. The main
|
|
8175
|
+
* conversation's requests do. So do those of a subagent that runs in the
|
|
8176
|
+
* foreground of the main conversation, since the tool call that spawned it
|
|
8177
|
+
* waits on it, and so on up a chain of such subagents. A request of a
|
|
8178
|
+
* subagent in the background, or nested inside one, does not: the main
|
|
8179
|
+
* conversation goes on without it. A subagent without a record counts, as
|
|
8180
|
+
* its request can come before its `task_started`, which checks again. */
|
|
8181
|
+
function blocksForeground(session, agentID) {
|
|
8182
|
+
const seen = new Set();
|
|
8183
|
+
for (let id = agentID; id !== undefined && !seen.has(id);) {
|
|
8184
|
+
seen.add(id);
|
|
8185
|
+
const task = session.liveBackgroundTasks.get(id);
|
|
8186
|
+
if (!task)
|
|
8187
|
+
return true;
|
|
8188
|
+
if (task.backgrounded)
|
|
8189
|
+
return false;
|
|
8190
|
+
id = task.parentTaskId;
|
|
8191
|
+
}
|
|
8192
|
+
return true;
|
|
8193
|
+
}
|
|
8194
|
+
/** Whether Claude Code ended the work of `result` because an interrupt
|
|
8195
|
+
* stopped it, while the model streamed or while a tool ran. */
|
|
8196
|
+
function isAbortedResult(result) {
|
|
8197
|
+
return (result.terminal_reason === "aborted_streaming" || result.terminal_reason === "aborted_tools");
|
|
8198
|
+
}
|
|
8070
8199
|
/** How a model cycle that Claude Code started on its own ended, read from its
|
|
8071
8200
|
* result as a turn's is: a refusal, the token limit, and the turn and budget
|
|
8072
8201
|
* limits are their stop reasons, an error result fails the cycle, and a
|
package/package.json
CHANGED