Skip to content

Commit a44123e

Browse files
only21milclaude
andcommitted
fix(provider-core): native subagent threads no longer inherit the parent's pin
makeSubagentChildThread copied pinnedAt and pinOrderKey from the parent, so every child of a pinned thread was created pinned. The settlement query and isAutoSettlementCandidate skip pinned threads, so those hidden children never settled. New children now start unpinned; the parent keeps its pin. Refs #19657 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f4c6bcb commit a44123e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/provider-core/src/server/subagentProjection.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export function makeSubagentChildThread(input: {
8282
settledAt: null,
8383
snoozedUntil: null,
8484
snoozedAt: null,
85+
pinnedAt: null,
86+
pinOrderKey: null,
8587
lastVisitedAt: null,
8688
deletedAt: null,
8789
};

0 commit comments

Comments
 (0)