feat(prs): navigate, merge and rebase GitHub stacks (#10875)
This commit is contained in:
1 parent
f0401c6290
commit
de37964db2
53 files changed
+3106
-466
No files matched your search
@@ -101,7 +101,10 @@ export const make = Effect.gen(function* () {
|
||||
const projects = new Map(snapshot.projects.map((project) => [project.id, project]));
|
||||
if (request.backfill) {
|
||||
for (const thread of snapshot.threads) {
|
||||
if (thread.settledOverride === "settled" && thread.branchPullRequest == null) {
|
||||
if (
|
||||
(thread.settledOverride === "settled" || thread.settledAt !== null) &&
|
||||
thread.branchPullRequest == null
|
||||
) {
|
||||
pendingBackfill.set(thread.id, BACKFILL_ATTEMPTS);
|
||||
}
|
||||
}
|
||||
@@ -114,7 +117,7 @@ export const make = Effect.gen(function* () {
|
||||
(thread) =>
|
||||
thread.archivedAt === null &&
|
||||
(request.threadId === null || thread.id === request.threadId) &&
|
||||
(thread.settledOverride !== "settled" ||
|
||||
((thread.settledOverride !== "settled" && thread.settledAt === null) ||
|
||||
request.threadId !== null ||
|
||||
pendingBackfill.has(thread.id)) &&
|
||||
(thread.branch !== null || thread.branchPullRequest != null),
|
||||
@@ -327,7 +330,9 @@ export const make = Effect.gen(function* () {
|
||||
event.payload.session.status !== "running" &&
|
||||
event.payload.session.status !== "starting"
|
||||
) {
|
||||
return worker.enqueue({ threadId: event.payload.threadId, refresh: true });
|
||||
// Checkpoint completion forces the post-turn read. Session lifecycle
|
||||
// events reuse it regardless of which event reaches this worker first.
|
||||
return worker.enqueue({ threadId: event.payload.threadId, refresh: false });
|
||||
}
|
||||
break;
|
||||
case "thread.turn-diff-completed":
|
||||
|
||||
Reference in new issue
Block a user