Skip to content

Fix Codex model/list failures for max and ultra efforts - #580

Merged
SawyerHood merged 2 commits into
mainfrom
bb/host-rpc-failure-warning-thr_g8txencq8t
Jul 9, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
bb/host-rpc-failure-warning-thr_g8txencq8t

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

  • Soft-parse Codex model/list so unknown efforts/malformed entries no longer fail the entire picker.
  • Add first-class ultra reasoning level (label Ultra) distinct from Claude's ultracode.
  • Pass max and ultra through to Codex model_reasoning_effort; update Codex fallback ladder and UI labels.

Context

Codex CLI 0.144 started returning max and ultra on newer models. BB's parser only accepted low|medium|high|xhigh, which threw Invalid response from codex model/list and blocked all Codex model loading.

Test plan

  • Unit tests for soft parsing, ultra/max mapping (models.test.ts, adapter tests)
  • Domain reconcile test for ultra → max
  • Agent-providers catalog + server execution-options tests
  • Typecheck: domain, agent-runtime, agent-providers, app, server, cli
  • Manually: open Codex model picker and confirm models load with Ultra where supported

Codex 0.144 returns new reasoning levels (max, ultra) that the strict
parser rejected, which broke the entire model picker. Soft-parse the
response, treat ultra as a first-class level with Ultra UI copy, and
pass max/ultra through to model_reasoning_effort.
Codex now accepts max and ultra, so rejection fixtures that previously
used max now use ultracode (still unsupported on Codex).
@SawyerHood
SawyerHood merged commit 654cc74 into main Jul 9, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/host-rpc-failure-warning-thr_g8txencq8t branch July 9, 2026 18:16
SawyerHood pushed a commit that referenced this pull request Aug 19, 2026
## What was wrong

The Codex provider and bb domain already support `ultra`, but Tasks kept
stale preset allowlists that ended at `max` in three separate
boundaries. The API therefore filtered `ultra` out of provider metadata,
the RPC schema rejected it during preset create/update, and the preset
dialog could neither offer nor retain it. This is the root cause
described in #1922; it is separate from the host/provider support added
by #580.

## What changed

- Append `ultra` to the Tasks preset RPC schema, API metadata/fallback
allowlist, and preset-dialog allowlist.
- Extend the existing API, CLI CRUD, and UI hydration cases to cover
`ultra`; no new test files or `test`/`it` blocks were added.
- Bump the user-visible official Tasks plugin version from `0.1.1` to
`0.1.2` in both its manifest and runtime status constant, as required by
the official-plugin release process.

This does not change the host-daemon wire contract, provider
implementation, database schema, or model-selection policy, so no
`HOST_DAEMON_PROTOCOL_VERSION` bump is needed.

## How you verified

Before the production changes, the focused regression command failed in
all four selected cases: API metadata omitted `ultra`, fallback omitted
it, CLI/RPC validation rejected it, and UI hydration normalized it to
`medium`. After the change, those four cases passed.

Fresh verification on commit `6559c27ba640441f72f0b1fbcdd49ec20fb6e101`:

```bash
pnpm exec turbo run typecheck --filter=bb-plugin-tasks --force
pnpm exec turbo run test --filter=bb-plugin-tasks --force
pnpm exec turbo run build --filter=bb-plugin-tasks --force
```

- Typecheck: 1/1 task successful.
- Tests: 35 files and 339 tests passed.
- Build: 2/2 tasks successful; generated artifacts reported Tasks
`0.1.2` and remained ignored.
- `git diff --check upstream/main...HEAD`: passed.
- Isolated source-dev validation created and read back a `gpt-5.6-sol`
preset with `reasoningLevel: "ultra"`; the official builtin loaded from
this worktree.

Fixes #1922

> AGENT GENERATED: by GPT-5
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