@bivy/bivy 0.10.1-staging.271 → 0.10.1-staging.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.js +9 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4942,6 +4942,15 @@ async function runWorkItem(item, report, signal) {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
catch { }
|
|
4944
4944
|
}
|
|
4945
|
+
// Record the session id with the control plane BEFORE the (potentially long)
|
|
4946
|
+
// turn runs, not just after it completes. A machine restart mid-turn must leave
|
|
4947
|
+
// the Run pointing at THIS session so a stale-lease reclaim resumes it
|
|
4948
|
+
// (withResumeTarget derives an existing_session target from output.sessionId).
|
|
4949
|
+
// Reporting only after runSessionTurn — as this path used to — meant an
|
|
4950
|
+
// interrupted turn left output.sessionId unset, so the reclaim cold-started a
|
|
4951
|
+
// duplicate session while the original sat abandoned on disk (two sidebar
|
|
4952
|
+
// sessions for one Run). Mirrors the Linear path's create-then-report ordering.
|
|
4953
|
+
await report({ output: { sessionId: record.id, branch: record.worktree?.branch } });
|
|
4945
4954
|
const prompt = isMessage
|
|
4946
4955
|
? request
|
|
4947
4956
|
: (parsedRepo || record.worktree)
|
package/package.json
CHANGED