Skip to content

Commit c290b0e

Browse files
committed
docs(server): say what Claude turn ids are kept for
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Vkxwfu3bhLfZE4x2Fx8hra
1 parent fafbc6f commit c290b0e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/server/src/provider/Layers/ClaudeAdapter.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,10 @@ interface ClaudeSessionContext {
421421
resumeSessionId: string | undefined;
422422
readonly pendingApprovals: Map<ApprovalRequestId, PendingApproval>;
423423
readonly pendingUserInputs: Map<ApprovalRequestId, PendingUserInput>;
424-
/** Completed turn ids, for rollback counting. SDK messages are not kept:
425-
* rollback reads Claude's own history, and a long-lived session would
426-
* otherwise hold every message it ever produced. */
424+
/** Completed turn ids, reported by readThread and trimmed on rollback.
425+
* SDK messages are not kept: rollback reads Claude's own history through
426+
* turnStartMessageIds, and a long-lived session would otherwise hold every
427+
* message it ever produced. */
427428
readonly turns: Array<{ readonly id: TurnId }>;
428429
readonly inFlightTools: Map<number, ToolInFlight>;
429430
readonly claudeTasks: Map<string, ClaudeTaskState>;

0 commit comments

Comments
 (0)