Repository navigation
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, login
Description
Summary
A Codex goal that Codex moves to blocked (or usageLimited) is invisible to BB, and BB has no way to resume it:
- The provider-codex goal status schema only accepts
active | paused | budgetLimited | complete. Codex 0.158 also emitsblocked(a non-retryable turn error or exhausted retries stop the goal viastop_active_goal_for_turn(TurnError); the model can also set it throughupdate_goal) andusageLimited. Suchthread/goal/updatednotifications fail validation and land in the thread log asprovider/unhandled. The goal extension state keeps the lastactivepayload, andactivity.activeGoalCountstays1. - A
blockedgoal can only becomeactiveagain throughthread/goal/set {status: "active"}(the TUI's/goal resume).update_goalaccepts onlycomplete | blocked | paused, and a newtellturn does not reattach a non-active goal. BB exposesthreads.clearGoal, but no goal set or resume in the CLI, SDK or REST API. The only workaround is clear followed by asking the agent tocreate_goalagain, which resetstokensUsedandtimeUsedSeconds.
Versions and environment
- bb-app 0.47.1 (npm, Linux host daemon), codex-cli 0.158.0, provider
codex - Related: Codex goal remains active after a turn ends but no next turn starts #6226 (active goal with no follow-up turn), Codex Goal clear returns ok instead of the required cleared result #6425 (clear result schema)
Steps to reproduce
- Spawn a Codex thread and instruct: "create_goal with objective X, then immediately call update_goal with status blocked".
- Wait until the thread is idle.
- Run
bb thread log <id> --all --jsonandbb thread list --json.
Expected
thread/extensionState/updated(provider-codex/goal) reportsstatus: "blocked", andactiveGoalCountdrops to0.- A supported way to resume the goal, for example
bb thread goal resume <id>or SDKthreads.setGoal({threadId, status: "active"})mapped tothread/goal/set.
Actual
- The
blockedupdate appears only asprovider/unhandled(rawType: thread/goal/updated,rawEvent.params.goal.status: "blocked"). The last extension-state payload still saysactive, andactiveGoalCountis1. - There is no resume path. Unattended goal runs that hit a transient provider error (for example a 503 after retries) stop permanently unless an operator clears the goal and has the model recreate it.
Proposed change
- Add
blockedandusageLimitedto the provider-codex goal status schema, and stop counting them as active. - Expose
thread/goal/set(status, and optionally objective and token budget) through the provider capability, the REST API, the SDK and thebb threadCLI.
Metadata
Metadata
Assignees
Labels
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, login
Activity
bb-slop-cop commentedon Oct 29, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-codex,confirmed-repro. All were missing; no existing classification was replaced.3bacfac9ed).blockedandusageLimited. The notifications becomeprovider/unhandled, retaining the previous active snapshot. Supported control contracts also lack goal resume.Pause a Codex Goal when bb stops its turn, and add /goal commands (ge…