Skip to content

fix(runtime): catch model info task failures#32842

Open
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix-runtime-modeltask-rejection
Open

fix(runtime): catch model info task failures#32842
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix-runtime-modeltask-rejection

Conversation

@dannyward630

@dannyward630 dannyward630 commented Jun 18, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #32653

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The startup model info task was used as a fire-and-forget promise but did not have a catch handler, unlike nearby startup tasks. This PR adds the missing catch so a rejected model info task cannot surface as an unhandled promise rejection.

How did you verify your code works?

  • npx --yes bun@1.3.14 --cwd packages/opencode test test/cli/run/runtime.test.ts

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

fix(runtime): unhandled promise rejection on modelTask startup

1 participant