Repository navigation
fix(mothership): start no tool call with less than a minute of its deadline left - #9092
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The changes since the previous review introduce no new blocking issue. SummaryThis PR requires at least one minute remaining before a tool call starts.
No new actionable findings were identified in the changes since the previous review. Tests were inspected, not run.
|
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…claimed call as not run
|
@greptileai review |
|
@cubic-dev-ai review |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 13 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Summary
SIM_TOOL_MIN_START_BUDGET_MS= 60 s. It is the same constant takeover re-runs already used, now renamed for both.toolStartWindowClosed/lastToolStartAtindeadline.ts:claimWorkflowToolExecutionandclaimDesktopToolCallrefuse a call whose saved deadline leaves less than the budget, and a client call nothing claimed by its deadline is settled as not run rather than outcome unknown.Release order
deadlineMson handed frames (simstudioai/mothership#706) reaches prod.Type of Change
Testing
Each new test fails on staging and passes here:
executor.test.ts: a handler with 30 s of its deadline left is not startedpermission.test.ts: an approval granted with under a minute left is not honoredworkflow-client-fallback.test.ts: no server takeover with under a minute lefthandlers.test.ts: an unclaimed client call with under a minute left is settled as not run without being offered; one nothing claimed by its deadline is settled as not runabandoned-runs.integration.ts/desktop-tool-authorization.integration.ts: browser and desktop claims are refused with under a minute leftChecklist