Repository navigation
fix(server): Stop closes native subagent question cards #31347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
bf266b7
c1a76ce
be64152
02f2a79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7971,6 +7971,9 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* ( | |
| activeTurnContexts.find( | ||
| (candidate) => candidate.providerTurnId === turnInput.providerTurnId, | ||
| ) ?? | ||
| activeTurnContexts | ||
| .map((context) => approvalOwnerCodexTurn(context).owner) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mark the recovered completed root as stopped. If the fallback recovers a completed root through an active child, Stop never marks that root in A registered sibling whose Mark the recovered lineage root as stopped before processing descendants. This lets the existing ancestor guard reject delayed starts.
|
||
| .find((candidate) => candidate.providerTurnId === turnInput.providerTurnId) ?? | ||
| (turnInput.requestRuntimeRestart === true | ||
| ? settledTurnContexts.find( | ||
| (candidate) => candidate.providerThread.id === turnInput.providerThread.id, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait for the child interruption event before the completed-parent assertions.
In the completed-parent case, the root terminal is already recorded before the interrupt. The
awaitTerminal(1)call afterinterruptTurnreturns immediately. The child interruption updates are queued but not yet recorded inharness.events. The assertions that follow can read stalerunningrecords and fail intermittently. Wait on the recorded child interruption event itself.Suggested fix
Committable suggestion
Source: Path instructions