Skip to content

Commit 1f20a8c

Browse files
fix(server): drop the unneeded idle-root settle gate from the subagent self-resume fix
The owned shell's task_notification already settles the root continuation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7bc4ed4 commit 1f20a8c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9695,14 +9695,7 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
96959695
yield* handleSdkMessage({ query: querySession.query, message: lastResult });
96969696
return;
96979697
}
9698-
// Only a notification makes Claude wake the root; a subagent
9699-
// resuming on its own does not, and must not hold the root busy.
9700-
const canWakeRoot = drained.some(
9701-
(entry) =>
9702-
(entry.type === "system" && entry.subtype === "task_notification") ||
9703-
isClaudeRootTurnFrame(entry),
9704-
);
9705-
if ((hasOpaqueTaskNotification || !canWakeRoot) && !context.nativeWakeStarted) {
9698+
if (hasOpaqueTaskNotification && !context.nativeWakeStarted) {
97069699
const completedAt = yield* DateTime.now;
97079700
yield* finalizeActiveTurn({ context, status: "completed", completedAt });
97089701
} else if (!context.nativeWakeStarted) {

0 commit comments

Comments
 (0)