Skip to content

[codex] Fix team run preflight aborts#24277

Closed
terisuke wants to merge 26 commits intoanomalyco:devfrom
Cor-Incorporated:codex/fix-team-run-preflight-abort
Closed

[codex] Fix team run preflight aborts#24277
terisuke wants to merge 26 commits intoanomalyco:devfrom
Cor-Incorporated:codex/fix-team-run-preflight-abort

Conversation

@terisuke
Copy link
Copy Markdown

Summary

  • persist team/background run metadata before sweep or parent permission preflight waits
  • bound stale-run sweep and parent permission lookups so stuck orchestration state cannot prevent a new run from launching
  • add a regression test where stale sweep message polling hangs but a fresh team run still returns a run_id

Root Cause

The team tool awaited stale-run reconciliation and parent permission lookup before creating and saving the new run. If either preflight call hung or the session was interrupted, OpenCode could only mark the active tool as "Tool execution aborted" and no run_id or worker artifacts were available.

Validation

  • bun test test/plugin/team.test.ts (from packages/opencode)
  • bun typecheck (from packages/opencode)
  • git diff --check
  • opencode --version
  • node packages/guardrails/bin/opencode-guardrails --version
  • push hook: bun turbo typecheck

terisuke added 26 commits April 19, 2026 17:35
…l-pr

fix: sync upstream guardrail runtime and tests
…l-runtime-fixes

fix: sign macOS builds and harden team runtime
…owups

fix: harden runtime path and team diagnostics
…e-hardening

[codex] Fix team worker absolute path isolation
…60421

Sync upstream dev and fix ESM bin wrapper
…patch-fix

[codex] fix team isolated worktree setup
…deadlock

fix(team): prevent default limit and worker recursion deadlocks
* fix team worker model routing

* update guardrail model defaults

* fix team worker permission propagation
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title [codex] Fix team run preflight aborts doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@terisuke
Copy link
Copy Markdown
Author

Closing: this PR was opened against upstream by mistake. The intended target is the fork repository.

@terisuke terisuke closed this Apr 25, 2026
@terisuke terisuke deleted the codex/fix-team-run-preflight-abort branch April 25, 2026 09:32
Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 25, 2026
…0 #26499

- anomalyco/opencode#24283 docs ecosystem add (merge-as-is)
- anomalyco/opencode#24277 11k-line fork-as-PR scope mismatch (request-changes)
- litellm#26500 extra_body wrap for JSON-registered providers (merge-after-nits)
- litellm#26499 auth fix bundled with pricing catalog (needs-discussion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant