Skip to content

fix(workflows): bound stalled provider turns - #205

Merged
tt-a1i merged 3 commits into
openpi-dev:mainfrom
sowen1023:fix/171
Aug 28, 2026
Merged

tt-a1i merged 3 commits into
openpi-dev:mainfrom
sowen1023:fix/171

Conversation

@sowen1023

@sowen1023 sowen1023 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace the one-shot first-response watchdog with a per-provider-turn model-visible progress watchdog
  • arm the watchdog only from Pi's actual turn_start, so authentication, automatic compaction, and before_agent_start preflight are not timed as provider stalls
  • refresh the deadline only for actual text, thinking, or tool-call progress, while leaving tool execution to its existing timeout
  • preserve the first terminal cause so a watchdog-triggered abort cannot be misreported as an ordinary cancellation
  • honor a wider explicit Pi httpIdleTimeoutMs setting and document the runtime behavior

Closes #171.

Validation

  • bun run check
  • workflow runner tests: 24/24 passed
  • Vitest: 30/30 passed
  • isolated worktree suite: 21/21 passed

The full Node run completed 884/885 tests; one unrelated Git-backed worktree test timed out under full-suite concurrency and passed when rerun in isolation.

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The per-provider-turn event design is directionally sound, and the focused tests plus both CI jobs pass. One lifecycle race remains blocking: the watchdog is armed before Pi has actually started a provider turn. See the inline finding.

Comment thread extensions/workflows/runner.ts Resolved

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previously blocking watchdog lifecycle issue is fixed at the current head. The branch is up to date with main, the regression coverage is in place, and both required CI jobs pass.

@tt-a1i
tt-a1i merged commit 37f7ab2 into openpi-dev:main Aug 28, 2026
2 checks passed
agnitum2009 pushed a commit to agnitum2009/openpi that referenced this pull request Aug 28, 2026
* fix(workflows): bound stalled provider turns

* fix(workflows): arm watchdog at turn start

---------

Co-authored-by: tt-a1i <[email protected]>
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.

workflows: 后续模型回合可永久无进展,first-response watchdog 无法兜底

2 participants