Skip to content

Commit 7ad8ab9

Browse files
committed
fix(server): recheck Claude transcripts once their process exits
1 parent c646b77 commit 7ad8ab9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9237,8 +9237,8 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
92379237
if (
92389238
nativeThreadId !== undefined &&
92399239
nativeThreadId !== null &&
9240+
// A live process holds the conversation even before saving it.
92409241
(yield* Ref.get(queryContext))?.nativeThreadId !== nativeThreadId &&
9241-
!(yield* Ref.get(openedNativeThreads)).has(nativeThreadId) &&
92429242
// An unreadable transcript leaves the resume to the CLI, as before.
92439243
(yield* hasEmptyClaudeTranscript(nativeThreadId).pipe(
92449244
Effect.orElseSucceed(() => false),

0 commit comments

Comments
 (0)