@agentclientprotocol/claude-agent-acp 0.111.1-preview.1 → 0.112.0

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.
@@ -0,0 +1,454 @@
1
+ /**
2
+ * `_session/rewind` (AIR -> agent): removes a user message and everything after
3
+ * it from the context of the same Claude session, the one the client holds. A
4
+ * fork would answer the same intent with a second session, so the edited
5
+ * message would no longer run in the conversation that the user is looking at.
6
+ *
7
+ * The position is a session cursor (see `session-cursors.ts`): the one before
8
+ * the user message to drop. The adapter resumes the stored conversation of the
9
+ * session at the entry before that message (`resumeSessionAt`). Claude Code
10
+ * deletes nothing: the dropped entries stay in the transcript as an orphan
11
+ * branch, and `rewind.json` records the cut until the next prompt writes a
12
+ * branch that descends from it.
13
+ *
14
+ * Every read of the stored history of a session cuts it at the point
15
+ * (`cutAtRewindPoint`: replays, forks, v2's prompt keys), and every resume of
16
+ * it stops there (`prepareRewoundResume`). The point is removed by the first
17
+ * resume after the CLI stored a prompt on the rewound branch; until then the
18
+ * file stays and cuts nothing, since the stored history no longer holds the
19
+ * dropped prompt. v1 and v2 share this: both resume through
20
+ * `prepareRewoundResume` and read through `cutAtRewindPoint`.
21
+ */
22
+ import { RequestError } from "@agentclientprotocol/sdk/unstable";
23
+ import { getSessionMessages, } from "@anthropic-ai/claude-agent-sdk";
24
+ import { randomBytes } from "node:crypto";
25
+ import { appendFile, mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
26
+ import path from "node:path";
27
+ import { isCompactSummaryMessage } from "./context-compaction.js";
28
+ import { isReplayHiddenMetaMessage } from "./message-filters.js";
29
+ import { findTranscript, loadFullSessionHistory, readHistoryAcrossCompactions, } from "./resumed-session.js";
30
+ import { cursorMessageId, forkPointOf } from "./session-cursors.js";
31
+ export const SESSION_REWIND_METHOD = "_session/rewind";
32
+ export function parseSessionRewindRequest(params) {
33
+ if (!params || typeof params !== "object") {
34
+ throw RequestError.invalidParams(undefined, "rewind params must be an object");
35
+ }
36
+ const { sessionId, cursorId } = params;
37
+ if (typeof sessionId !== "string" || sessionId.length === 0) {
38
+ throw RequestError.invalidParams(undefined, "rewind params require a non-empty sessionId");
39
+ }
40
+ if (typeof cursorId !== "string" || cursorId.length === 0) {
41
+ throw RequestError.invalidParams(undefined, "rewind params require a non-empty cursorId");
42
+ }
43
+ return { sessionId, cursorId };
44
+ }
45
+ /**
46
+ * Drops the user message of `request.cursorId` and everything after it.
47
+ *
48
+ * `{ rewound: true }` means that the cut is live and recorded in `rewind.json`;
49
+ * `{ rewound: false, reason }` means that the conversation and the rewind point
50
+ * are unchanged. The transcript can still gain the `last-prompt` line that any
51
+ * resume writes: `prepareRewoundResume` runs before the refusals that follow
52
+ * it, and with a stale point that is not pending it also deletes `rewind.json`,
53
+ * as any resume does. A cursor that the session's history does not hold is a
54
+ * bad request (-32602): the rewind never acts at another position.
55
+ *
56
+ * The point is written before the query is replaced, and restored to what it
57
+ * was when the cut does not happen. A crash between the write and the cut
58
+ * leaves a point that the next resume applies. When the restore fails too, the
59
+ * request fails with an internal error instead of `rewound: false`, since the
60
+ * next resume applies a cut that was reported as not made.
61
+ */
62
+ export async function rewindSession(request, host) {
63
+ const { sessionId, cursorId } = request;
64
+ const refuse = (reason) => {
65
+ host.logger.log(`Rewind of session ${sessionId} refused: ${reason}`);
66
+ return { rewound: false, reason };
67
+ };
68
+ // AIR stops the turn before it rewinds. Work still running here would be
69
+ // killed with the query.
70
+ const busy = () => host.claudeIsWorking()
71
+ ? refuse("busy")
72
+ : host.hasBackgroundWork()
73
+ ? refuse("backgroundWork")
74
+ : undefined;
75
+ const refusal = busy();
76
+ if (refusal)
77
+ return refusal;
78
+ // The transcript of the session holds the conversation from before the
79
+ // clear, which the cursor would be resolved against.
80
+ if (host.clearedContext)
81
+ return refuse("clearedContext");
82
+ const history = await host.loadHistory();
83
+ const resumeSessionAt = forkPointOf(cursorId, history.visible);
84
+ const droppedPromptUuid = cursorMessageId(cursorId);
85
+ if (!resumeSessionAt || !droppedPromptUuid) {
86
+ throw RequestError.invalidParams({ cursorId }, `Cursor ${cursorId} is not a rewind position of session ${sessionId}`);
87
+ }
88
+ // Claude Code resumes a compacted conversation from its newest compaction on
89
+ // and finds no entry before it ("No message found with message.uuid of ...").
90
+ if (!history.current.some((message) => message.uuid === resumeSessionAt)) {
91
+ return refuse("beforeCompaction");
92
+ }
93
+ // Before the query closes: marks the branch a second rewind resumes on.
94
+ const earlierCut = await prepareRewoundResume(sessionId, host.logger);
95
+ // Read after the preparation, which removes a point that is no longer pending.
96
+ const previousPoint = await readRewindPoint(sessionId, host.logger);
97
+ const dropped = history.visible.findIndex((message) => message.uuid === droppedPromptUuid);
98
+ // `resumeDropsTurn` makes Claude Code refuse a cut that discards anything
99
+ // the named turn does not account for, so it can guard only the last turn:
100
+ // the turns after an earlier one are always in the discarded range.
101
+ const dropsOneTurn = !history.visible.slice(dropped + 1).some(startsTurn);
102
+ try {
103
+ await writeRewindPoint(sessionId, { resumeSessionAt, droppedPromptUuid });
104
+ }
105
+ catch (error) {
106
+ host.logger.error(`Failed to record the rewind point of session ${sessionId}:`, error);
107
+ return refuse("persistFailed");
108
+ }
109
+ // Puts `rewind.json` back, for a cut that does not happen. A failure leaves
110
+ // the new point in place, which the next resume of the session applies.
111
+ const restorePoint = async () => {
112
+ try {
113
+ if (previousPoint)
114
+ await writeRewindPoint(sessionId, previousPoint);
115
+ else
116
+ await clearRewindPoint(sessionId);
117
+ return true;
118
+ }
119
+ catch (error) {
120
+ host.logger.error(`Failed to restore the rewind point of session ${sessionId}; the next resume applies the cut:`, error);
121
+ return false;
122
+ }
123
+ };
124
+ const pointNotRemoved = () => RequestError.internalError(undefined, `The rewind of session ${sessionId} did not happen, but its rewind point could not be removed. The next load of the session applies the cut.`);
125
+ // Claude Code can start a cycle on its own while the transcript is read,
126
+ // prepared or the point is written. Nothing is awaited between this check
127
+ // and `replaceQuery`, whose first statement closes the query synchronously.
128
+ const lateRefusal = busy();
129
+ if (lateRefusal) {
130
+ if (!(await restorePoint()))
131
+ throw pointNotRemoved();
132
+ return lateRefusal;
133
+ }
134
+ try {
135
+ await host.replaceQuery({
136
+ resumeSessionAt,
137
+ ...(dropsOneTurn ? { resumeDropsTurn: droppedPromptUuid } : {}),
138
+ });
139
+ }
140
+ catch (error) {
141
+ // Claude Code refuses a cut deterministically, so retrying fails again.
142
+ // Recover once into the conversation as it was: the query of the session is
143
+ // already closed, and a session the client cannot prompt is worse than one
144
+ // that was not rewound.
145
+ host.logger.log(`Rewind of session ${sessionId} ${isRewindRefusal(error) ? "was refused by Claude Code" : `failed: ${error}`}; resuming the conversation as it was`);
146
+ // Before the recovery resume, which reads `rewind.json` and would stop at
147
+ // the new point. If the file cannot be restored, only the earlier cut is used.
148
+ const restored = await restorePoint();
149
+ try {
150
+ const recoveredCut = restored
151
+ ? ((await prepareRewoundResume(sessionId, host.logger)) ?? earlierCut)
152
+ : earlierCut;
153
+ await host.replaceQuery(recoveredCut ? { resumeSessionAt: recoveredCut } : undefined);
154
+ }
155
+ catch (recoveryError) {
156
+ throw await host.abandon(recoveryError);
157
+ }
158
+ // After the recovery, so the session can be prompted.
159
+ if (!restored)
160
+ throw pointNotRemoved();
161
+ return { rewound: false, reason: "providerRefused" };
162
+ }
163
+ host.rewound(cursorId);
164
+ return { rewound: true };
165
+ }
166
+ /** Whether Claude Code refused the cut (see `resumeDropsTurn` of the SDK options). */
167
+ export function isRewindRefusal(error) {
168
+ const message = error instanceof Error ? error.message : String(error);
169
+ return message.includes("Resume rejected by --resume-drops-turn:");
170
+ }
171
+ /** Whether a message opens a turn: a prompt of the user, not a tool result or injected context. */
172
+ function startsTurn(message) {
173
+ if (message.type !== "user" ||
174
+ message.parent_tool_use_id !== null ||
175
+ isReplayHiddenMetaMessage(message) ||
176
+ isCompactSummaryMessage(message)) {
177
+ return false;
178
+ }
179
+ const content = message.message?.content;
180
+ return !(Array.isArray(content) &&
181
+ content.length > 0 &&
182
+ content.every((block) => block?.type === "tool_result"));
183
+ }
184
+ /**
185
+ * The history of `sessionId` that a cursor of it is resolved against: the
186
+ * conversation the session continues, cut at its rewind point.
187
+ */
188
+ export async function loadRewindableHistory(sessionId, logger) {
189
+ const current = await cutAtRewindPoint(sessionId, await getSessionMessages(sessionId), logger);
190
+ return { current, visible: await readHistoryAcrossCompactions(sessionId, current, logger) };
191
+ }
192
+ /**
193
+ * `stored`, the `getSessionMessages` chain of `sessionId`, without the branch
194
+ * that a pending rewind dropped. Cut before reading across compactions: the
195
+ * newest leaf is the last retained message.
196
+ */
197
+ export async function cutAtRewindPoint(sessionId, stored, logger) {
198
+ return activeSessionMessages(stored, await readRewindPoint(sessionId, logger));
199
+ }
200
+ /**
201
+ * The entry that a fork of the whole of `sessionId` ends at while a rewind is
202
+ * pending, or undefined when there is none: the newest leaf then still lies in
203
+ * the dropped branch.
204
+ */
205
+ export async function pendingRewindEnd(sessionId, logger) {
206
+ const point = await readRewindPoint(sessionId, logger);
207
+ if (!point)
208
+ return undefined;
209
+ const stored = await getSessionMessages(sessionId);
210
+ return stored.some((message) => message.uuid === point.droppedPromptUuid)
211
+ ? point.resumeSessionAt
212
+ : undefined;
213
+ }
214
+ /**
215
+ * `entries`, the records of the whole transcript of `sessionId` with its
216
+ * inactive branches, without the dropped prompt of a rewind and the records
217
+ * that descend from it. A record comes after its parent in the transcript.
218
+ */
219
+ export async function withoutRewoundBranch(sessionId, entries, logger) {
220
+ const point = await readRewindPoint(sessionId, logger);
221
+ if (!point)
222
+ return entries;
223
+ const dropped = new Set([point.droppedPromptUuid]);
224
+ return entries.filter((entry) => {
225
+ if (typeof entry.uuid !== "string")
226
+ return true;
227
+ const parent = entry.parentUuid || entry.logicalParentUuid;
228
+ const inDropped = entry.uuid === point.droppedPromptUuid || (typeof parent === "string" && dropped.has(parent));
229
+ if (inDropped)
230
+ dropped.add(entry.uuid);
231
+ return !inDropped;
232
+ });
233
+ }
234
+ /**
235
+ * The messages of the conversation that a session continues, given its stored
236
+ * `history` and its `rewindPoint`. A rewind leaves the dropped branch in the
237
+ * transcript, and until the next prompt writes a branch from the point,
238
+ * `history` still ends in the dropped branch: it is cut before the dropped
239
+ * prompt. Once a branch descends from the point, `history` no longer holds the
240
+ * dropped prompt and is returned as it is.
241
+ */
242
+ export function activeSessionMessages(history, rewindPoint) {
243
+ const at = rewindPoint
244
+ ? history.findIndex((message) => message.uuid === rewindPoint.droppedPromptUuid)
245
+ : -1;
246
+ return at === -1 ? [...history] : history.slice(0, at);
247
+ }
248
+ /** `<projectDir>/<sessionId>/rewind.json`, beside the session's `subagents/`. */
249
+ async function rewindPointFile(sessionId) {
250
+ const transcript = await findTranscript(sessionId);
251
+ return transcript && path.join(path.dirname(transcript), sessionId, "rewind.json");
252
+ }
253
+ /** Records the last rewind of a session. */
254
+ export async function writeRewindPoint(sessionId, point) {
255
+ const target = await rewindPointFile(sessionId);
256
+ if (!target)
257
+ throw new Error(`Session ${sessionId} has no transcript`);
258
+ await mkdir(path.dirname(target), { recursive: true, mode: 0o700 });
259
+ const temporary = `${target}.tmp.${randomBytes(8).toString("hex")}`;
260
+ try {
261
+ await writeFile(temporary, JSON.stringify(point), { mode: 0o600, flag: "wx" });
262
+ await rename(temporary, target);
263
+ }
264
+ catch (error) {
265
+ await rm(temporary, { force: true });
266
+ throw error;
267
+ }
268
+ }
269
+ /**
270
+ * The last rewind of a session, or undefined for one that has none (no
271
+ * `rewind.json`, ENOENT). A record that cannot be read (EACCES, EISDIR) or
272
+ * parsed fails with an internal error: reading it as "no rewind" would show or
273
+ * resume the dropped turns. The file stays, so the client can retry.
274
+ */
275
+ export async function readRewindPoint(sessionId, logger) {
276
+ try {
277
+ const file = await rewindPointFile(sessionId);
278
+ if (!file)
279
+ return undefined;
280
+ let point;
281
+ try {
282
+ point = JSON.parse(await readFile(file, "utf8"));
283
+ }
284
+ catch (error) {
285
+ if (error.code === "ENOENT")
286
+ return undefined;
287
+ throw error;
288
+ }
289
+ const { resumeSessionAt, droppedPromptUuid } = point ?? {};
290
+ if (typeof resumeSessionAt !== "string" || typeof droppedPromptUuid !== "string") {
291
+ throw new Error("rewind.json holds no resumeSessionAt and droppedPromptUuid");
292
+ }
293
+ return { resumeSessionAt, droppedPromptUuid };
294
+ }
295
+ catch (error) {
296
+ logger?.error(`Failed to read the rewind point of session ${sessionId}:`, error);
297
+ throw RequestError.internalError(undefined, `Session ${sessionId} was rewound, but its rewind point cannot be read (${error instanceof Error ? error.message : String(error)}). Try again.`);
298
+ }
299
+ }
300
+ /** Removes the record of the last rewind. */
301
+ export async function clearRewindPoint(sessionId) {
302
+ const file = await rewindPointFile(sessionId);
303
+ if (file)
304
+ await rm(file, { force: true });
305
+ }
306
+ /**
307
+ * Prepares the transcript of `sessionId` for a resume, and returns the entry
308
+ * that a pending rewind point makes the resume stop at, if any.
309
+ *
310
+ * Claude Code resumes the branch of the leaf that the last `last-prompt` line
311
+ * of the transcript names, and looks up `resumeSessionAt` on that branch only.
312
+ * A process that resumed at a rewind point keeps writing that line with the
313
+ * leaf it loaded until it exits, and a query restart starts the next process
314
+ * before the closed one has exited, so the line can name the branch that the
315
+ * rewind dropped. A second rewind then fails with "No message found with
316
+ * message.uuid of ...", and a plain resume brings the dropped turns back. So
317
+ * the line is written for the leaf of the session's conversation: explicit at
318
+ * a pending rewind point, whose dropped branch descends from it, and plain at
319
+ * the newest entry otherwise. Once the point is no longer pending, the plain
320
+ * line is all the next process needs, and `rewind.json` is removed.
321
+ */
322
+ export async function prepareRewoundResume(sessionId, logger) {
323
+ const point = await readRewindPoint(sessionId, logger);
324
+ if (!point)
325
+ return undefined;
326
+ try {
327
+ const history = await loadFullSessionHistory(sessionId);
328
+ const byUuid = entriesByUuid(history);
329
+ const newest = newestMainChainUuid(history);
330
+ if (!newest)
331
+ return undefined;
332
+ const active = chainUuids(newest, byUuid);
333
+ const pending = isPending(point, history, active);
334
+ const leaf = pending ? point.resumeSessionAt : newest;
335
+ await markResumedLeaf(sessionId, history, byUuid, leaf, pending);
336
+ if (!pending)
337
+ await clearRewindPoint(sessionId);
338
+ return pending ? point.resumeSessionAt : undefined;
339
+ }
340
+ catch (error) {
341
+ // A plain resume would bring the dropped turns back, so the resume fails
342
+ // instead and the client can retry.
343
+ logger?.error(`Failed to prepare the resume of rewound session ${sessionId}:`, error);
344
+ throw RequestError.internalError(undefined, `Session ${sessionId} was rewound, but the cut could not be prepared (${error instanceof Error ? error.message : String(error)}). Try again.`);
345
+ }
346
+ }
347
+ /**
348
+ * Whether the rewind is still to be applied: the dropped prompt is on the newest
349
+ * conversation chain, or that chain does not pass through the point's resume
350
+ * entry and holds nothing written after it (a branch from before the cut).
351
+ * A chain through the resume entry without the dropped prompt is the edited
352
+ * conversation, which a later entry of any other kind must not undo.
353
+ */
354
+ function isPending(point, history, active) {
355
+ const pointIndex = history.findIndex((entry) => entry.uuid === point.resumeSessionAt);
356
+ if (pointIndex < 0)
357
+ return false;
358
+ if (active.has(point.droppedPromptUuid))
359
+ return true;
360
+ if (active.has(point.resumeSessionAt))
361
+ return false;
362
+ return !history.some((entry, index) => index > pointIndex && active.has(entry.uuid));
363
+ }
364
+ async function markResumedLeaf(sessionId, history, byUuid, leaf, explicit) {
365
+ const transcript = await findTranscript(sessionId);
366
+ if (!transcript)
367
+ return;
368
+ const lines = (await readFile(transcript, "utf8")).split("\n");
369
+ for (let index = lines.length - 1; index >= 0; index--) {
370
+ const line = lines[index];
371
+ if (!line.includes('"last-prompt"'))
372
+ continue;
373
+ try {
374
+ const record = JSON.parse(line);
375
+ if (record.type !== "last-prompt")
376
+ continue;
377
+ if (record.leafUuid === leaf && (record.explicit === true) === explicit)
378
+ return;
379
+ break;
380
+ }
381
+ catch {
382
+ continue;
383
+ }
384
+ }
385
+ const branch = chainUuids(leaf, byUuid);
386
+ const lastPrompt = history
387
+ .filter((entry) => branch.has(entry.uuid) && entry.type === "user")
388
+ .map(promptText)
389
+ .findLast((text) => text !== undefined);
390
+ const record = {
391
+ type: "last-prompt",
392
+ ...(lastPrompt !== undefined ? { lastPrompt } : {}),
393
+ leafUuid: leaf,
394
+ ...(explicit ? { explicit: true } : {}),
395
+ sessionId,
396
+ };
397
+ const separator = lines.at(-1) === "" ? "" : "\n";
398
+ await appendFile(transcript, `${separator}${JSON.stringify(record)}\n`);
399
+ }
400
+ /** The text of a user entry that carries a prompt, undefined for any other. */
401
+ function promptText(entry) {
402
+ if (entry.isMeta === true || isCompactSummaryMessage(entry))
403
+ return undefined;
404
+ const content = entry.message?.content;
405
+ if (typeof content === "string")
406
+ return content;
407
+ if (!Array.isArray(content))
408
+ return undefined;
409
+ if (content.some((block) => block?.type === "tool_result")) {
410
+ return undefined;
411
+ }
412
+ const text = content
413
+ .map((block) => block)
414
+ .flatMap((block) => block?.type === "text" && typeof block.text === "string" ? [block.text] : [])
415
+ .join("");
416
+ return text.length > 0 ? text : undefined;
417
+ }
418
+ /** An entry of the main conversation: not a subagent's, and not the transcript of a tool. */
419
+ function isMainChainEntry(entry) {
420
+ return (entry.isSidechain !== true && entry.parent_tool_use_id == null && entry.parent_agent_id == null);
421
+ }
422
+ /** The entry types that the SDK reads as the conversation's chain; other records
423
+ * (titles, tags, summaries) are metadata even when they carry a `uuid`. */
424
+ const CHAIN_ENTRY_TYPES = new Set([
425
+ "user",
426
+ "assistant",
427
+ "system",
428
+ "attachment",
429
+ ]);
430
+ /** The uuid of the newest entry of the main conversation: the leaf that
431
+ * `getSessionMessages` reads. Like it, skips `progress` entries. */
432
+ function newestMainChainUuid(entries) {
433
+ return entries.findLast((entry) => typeof entry.uuid === "string" &&
434
+ CHAIN_ENTRY_TYPES.has(entry.type) &&
435
+ isMainChainEntry(entry))?.uuid;
436
+ }
437
+ /** The uuids of `leaf` and of every entry it descends from. A compaction
438
+ * boundary has no `parentUuid`; its `logicalParentUuid` carries the chain on. */
439
+ function chainUuids(leaf, byUuid) {
440
+ const chain = new Set();
441
+ let cursor = leaf;
442
+ while (cursor && !chain.has(cursor)) {
443
+ const entry = byUuid.get(cursor);
444
+ if (!entry)
445
+ break;
446
+ chain.add(cursor);
447
+ const parent = entry.parentUuid || entry.logicalParentUuid;
448
+ cursor = typeof parent === "string" ? parent : undefined;
449
+ }
450
+ return chain;
451
+ }
452
+ function entriesByUuid(entries) {
453
+ return new Map(entries.flatMap((entry) => (typeof entry.uuid === "string" ? [[entry.uuid, entry]] : [])));
454
+ }
@@ -16,6 +16,7 @@ import { type AsyncTaskStopRequest, type AsyncTaskStopResponse } from "./async-t
16
16
  import { type SteerRequest, type SteerResponse } from "./steering.js";
17
17
  import { type AuthStatus, type AuthStatusKind } from "../auth-status.js";
18
18
  import { McpOverAcp, type UnservedMcpServer } from "../mcp-servers.js";
19
+ import { type SessionRewindRequest, type SessionRewindResponse } from "../session-rewind.js";
19
20
  import { SettingsManager } from "../settings.js";
20
21
  import { type SessionFailureState } from "../session-failure-extension.js";
21
22
  import { type ClaudeSubscriptionGuardState } from "../hide-claude-auth.js";
@@ -84,6 +85,9 @@ type Turn = {
84
85
  * so the consumer can't promote them via the replay; it falls back to
85
86
  * promoting the queue head when the result arrives. */
86
87
  isLocalOnlyCommand: boolean;
88
+ /** Whether the prompt gets a session cursor when Claude Code takes it in
89
+ * (see {@link promptGetsCursor}). */
90
+ getsCursor: boolean;
87
91
  /** Whitespace-normalized text this turn delivered as live `notice` updates
88
92
  * (SDK `informational` frames on the notice lane). A hook-blocked turn's
89
93
  * result repeats the block reason verbatim with zero output tokens; the
@@ -854,6 +858,9 @@ export type Session = {
854
858
  * `initialize` now describes a credential that no longer works, so the next
855
859
  * turn recreates the query before it runs. */
856
860
  needsSignOutRespawn?: boolean;
861
+ /** The Claude Code session the query runs, when it is not the ACP session
862
+ * id: a cleared context continues in a new Claude session under the old id. */
863
+ claudeSessionId?: string;
857
864
  /** The in-flight recreation, so turns that arrive together share one. */
858
865
  signOutRespawn?: Promise<void>;
859
866
  } & sessionIndex.SessionIndexFields;
@@ -880,6 +887,10 @@ export declare class ClaudeAcpAgent {
880
887
  private providerUpdate;
881
888
  /** Per session: queue that runs mode/config changes and query restarts one at a time. */
882
889
  private readonly configurationChanges;
890
+ /** The `_session/rewind` of each session that one is running for. It never rejects. */
891
+ private readonly sessionRewinds;
892
+ /** The session a finished rewind left in place of the one it closed, so a prompt that still holds the old one can follow it. */
893
+ private readonly rewoundSessions;
883
894
  private readonly exitPlan;
884
895
  /** The connection's `authStatus` state and pushes, connection-scoped like
885
896
  * `authenticate`/`logout`. */
@@ -905,6 +916,8 @@ export declare class ClaudeAcpAgent {
905
916
  * (see {@link endSession}) or the connection ends (see `AnnouncedChildren`).
906
917
  */
907
918
  private readonly announcedChildren;
919
+ /** What anchors a live cursor: the last entity that the client holds per session. */
920
+ private readonly lastEntities;
908
921
  /**
909
922
  * AIR's draft: the model that the last load of each session replayed to each
910
923
  * child session, as the model id and the entry that went out. See
@@ -988,6 +1001,14 @@ export declare class ClaudeAcpAgent {
988
1001
  * with its forks held back from the session list (see
989
1002
  * {@link sessionIndex.SessionIndexConnection.forking}). */
990
1003
  forking<T>(sourceId: string, fork: () => Promise<T>): Promise<T>;
1004
+ /**
1005
+ * `_session/rewind` (see `session-rewind.ts`). Queued with the session's
1006
+ * configuration changes, so a mode or model change sent meanwhile lands on
1007
+ * the resumed query. A prompt sent meanwhile waits for it in `startTurn`:
1008
+ * the rewind closes the query the prompt would otherwise run on.
1009
+ */
1010
+ rewindSession(params: SessionRewindRequest): Promise<SessionRewindResponse>;
1011
+ private rewindLiveSession;
991
1012
  resumeSession(params: ResumeSessionRequest): Promise<ResumeSessionResponse>;
992
1013
  loadSession(params: LoadSessionRequest): Promise<LoadSessionResponse>;
993
1014
  /**
@@ -1079,6 +1100,24 @@ export declare class ClaudeAcpAgent {
1079
1100
  * before this resolves.
1080
1101
  */
1081
1102
  startTurn(params: PromptRequest, events: TurnEvents, origin?: TurnOrigin): Promise<void>;
1103
+ /** Checked before `followRewind` so that a prompt which has nothing to follow does not yield. */
1104
+ private rewindToFollow;
1105
+ /** Waits for a running rewind of the session and returns the session the rewinds left in place of `session`; a session that ended otherwise is returned as it is. */
1106
+ private followRewind;
1107
+ /** Whether the client is AIR and declared `sessionRewind`: only it knows `_session/rewind`. */
1108
+ private supportsSessionRewind;
1109
+ /**
1110
+ * Sends a `cursor_update` to a client that declared `session.cursors`, and to
1111
+ * no other: its `SessionUpdate` union is closed. A failed send is logged only,
1112
+ * as the cursor is announced again by the next replay.
1113
+ *
1114
+ * `before` is the entity that this client holds right before the cursor.
1115
+ *
1116
+ * It carries `rewind` only where `_session/rewind` can act: not for a cursor
1117
+ * that is `beforeCompaction` (`rewindable` false), and not in a session whose
1118
+ * context was cleared (`clearedContext`).
1119
+ */
1120
+ private announceCursor;
1082
1121
  /** Runs the command, and sends its reply (see `runRemoteControlCommand`). */
1083
1122
  private runRemoteControlCommand;
1084
1123
  /** `--hide-claude-auth` applies only to the CLI's own login. A provider
@@ -1 +1 @@
1
- {"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../../src/v1/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,mBAAmB,EAEnB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAGlB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAElB,oBAAoB,EACpB,qBAAqB,EAErB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAEb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EAEpB,kBAAkB,EAClB,mBAAmB,EAEnB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAEhB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAs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