8000 fix(tools): give codemode scripts no default deadline, as in Pi by geminixiang · Pull Request #184 · geminixiang/mikan · GitHub
[go: up one dir, main page]

Skip to content

fix(tools): give codemode scripts no default deadline, as in Pi - #184

Merged
geminixiang merged 1 commit into
mainfrom
fix/codemode-no-default-deadline
Oct 13, 2026
Merged

geminixiang merged 1 commit into
mainfrom
fix/codemode-no-default-deadline

Conversation

@geminixiang
@geminixiang geminixiang commented Oct 13, 2026 •
Copy link
Copy Markdown
Owner

Why

mikan gave every codemode script a 60-second deadline unless the script set timeout_ms. pi-codemode leaves the deadline to its caller, and Pi's own codemode (coding agent and pi-durable 1.2) uses no deadline by default. In production a script that called jev_browser to fill a form was cut off at 59.9 s ("Execution timed out after 60000 ms").

What

  • Without timeout_ms, the sandbox gets Number.POSITIVE_INFINITY, as Pi passes. A script's own timeout_ms still applies.

Consequence: a stuck script in an ordinary conversation runs until the conversation is stopped (Stop aborts the sandbox through the run's abort signal). Event runs keep their run budget. Ordinary runs have no duration budget by default.

Verification

  • Test: the sandbox gets Infinity without timeout_ms and 1234 with timeout_ms: 1234; fails without the change (received 60000).
  • Gate: 2172 tests pass
  • CI
  • Slack E2E: 26 of 26

@geminixiang
geminixiang merged commit 25fbbeb into main Oct 13, 2026
6 checks passed
@geminixiang
geminixiang deleted the fix/codemode-no-default-deadline branch October 13, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0