Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds a targeted fix for async tool durability in the copilot orchestrator. It handles a specific gap where tool calls executed entirely by the Go side (no Sim-side durable database row and no local pending promise) were being silently skipped during the async resume loop, causing valid continuations to be abandoned. Key changes:
One area to verify: when the results are assembled for these Go-handled tools (lines 254–301), both Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[For each toolCallId in pendingToolCallIds] --> B{Claim in DB succeeds?}
B -- Yes --> C[Add to claimable + claimed lists]
C --> NEXT[Next toolCallId]
B -- No --> D[Fetch durableRow + localPendingPromise]
D --> E{no durableRow AND\nlocalPendingPromise exists?}
E -- Yes --> F[Add to claimable only\n local async tool]
F --> NEXT
E -- No --> G{durableRow exists AND\nstatus=running AND\nlocalPendingPromise?}
G -- Yes --> H[Add to localPendingPromises\nwait for completion]
H --> NEXT
G -- No --> I{NEW: no durableRow AND\nno localPendingPromise AND\ntoolState exists?}
I -- Yes --> J[Add to claimable only\n Go-handled tool]
J --> NEXT
I -- No --> K[Log warning: skip tool call]
K --> NEXT
NEXT --> L{All toolCallIds processed}
L --> M{claimable > 0?}
M -- Yes --> N[Build resume payload with results]
M -- No --> O{localPendingPromises > 0?}
O -- Yes --> P[Await all pending, retry loop]
O -- No --> Q[Abandon continuation]
Reviews (1): Last reviewed commit: "Durability" | Re-trigger Greptile |
PR SummaryMedium Risk Overview PPTX preview robustness: Hardens the PPTX preview API to return Runtime packaging: Extends the Docker runner image to include Written by Cursor Bugbot for commit 3001b50. Configure here. |
Summary
Fix tool durability
Type of Change
Testing
Manual
Checklist