Skip to content

feat(codex): show a rocket icon for the Ultrafast service tier - #6198

Merged
ymichael merged 3 commits into
get-bb:mainfrom
smsunarto:scott/ultrafast-tier-icon
Oct 24, 2026
Merged

ymichael merged 3 commits into
get-bb:mainfrom
smsunarto:scott/ultrafast-tier-icon

Conversation

@smsunarto

@smsunarto smsunarto commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

The model picker hardcoded the Zap glyph for every selected service tier, so Codex's Fast and Ultrafast looked identical in the composer.

What changed

  • PluginProviderOptionDescriptor gains an optional experimental_icon: a host glyph name, or a declared plugin icon "<pluginId>/<name>" from bb.branding.experimental_icons. The SDK validates it (host-policy.ts) and rejects paths, which nothing resolves for tiers; the server projects it to ProviderInfo.serviceTiers[].icon, and resolveServiceTierOptions preserves it.
  • ModelReasoningPicker's trigger and ModelReasoningMenu's single-tier toggle row use the tier's icon, falling back to Zap. Both stay filled, matching the solid bolt.
  • Codex marks Ultrafast with a double bolt, matching the Codex app, which uses two lightning bolts for Ultrafast. The glyph is Codex's own, so it ships in the Codex plugin (plugins/provider-codex/icons/ultrafast.svg, declared in its package.json) and server.ts declares experimental_icon: "provider-codex/ultrafast", the same way the ACP provider ships its agent icons. The shared icon set is unchanged.
  • Plugin SDK bumped for the new field. Docs: new docs/api_to_audit.md entry, plus updates to docs/provider-plugin-api.md and the authoring providers.md reference.

No server/daemon wire change.

How you verified

  • New ModelReasoningPicker.test.tsx cases: the trigger shows Zap when Fast is selected and the registered provider-codex/ultrafast plugin icon (not Zap) when Ultrafast is selected.
  • New provider-declaration-v3.test.ts table: host glyphs and declared icons are accepted, plugin-relative and bare paths rejected.
  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/server --filter=@bb/domain --filter=@get-bb/plugin-sdk --filter=@bb/shared-ui
  • pnpm exec turbo run test --filter=@get-bb/plugin-sdk --filter=@bb/domain --filter=bb-plugin-provider-codex --filter=@bb/shared-ui
  • Server provider-registration and authoring-docs tests.
  • Rendered the picker in Ladle with the plugin's SVG registered as the app does: Fast shows the filled bolt, Ultrafast the double bolt, in the composer trigger and the single-tier toggle row.
  • On a pnpm start:worktree server, /api/v1/system/providers reports "icon": "provider-codex/ultrafast" for Ultrafast and the plugin list serves icons/ultrafast.svg. The test account has no Ultrafast-eligible model, so the double bolt was not seen in the live composer.

Fixes #6199

AGENT GENERATED

@github-actions github-actions Bot added the needs-issue PR does not close an open issue label Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @smsunarto. It was closed automatically because it does not meet the requirements below yet. This is an automated check, not a review of the change.

Linked issue. Every pull request must close an open issue in this repository. The issue keeps the problem tracked even if this pull request closes or we take a different approach. Open an issue for the change, or find an existing one, and add Fixes #<number> to the pull request description. Feature requests and UI changes need a maintainer's sign-off on the issue first. This pull request reopens on its own once you save the description.

See CONTRIBUTING.md for details.

@github-actions github-actions Bot closed this Oct 23, 2026
@ymichael ymichael reopened this Oct 23, 2026
@github-actions github-actions Bot removed the needs-issue PR does not close an open issue label Oct 23, 2026
ymichael added a commit that referenced this pull request Oct 24, 2026
… check (#6200)

## Human comments

## What was wrong

Maintainers had no way to exempt a pull request from the PR gate's
linked-issue requirement (#6189). Reopening one by hand sends a
`reopened` event, the gate runs again, finds no linked issue, and closes
it again. #6198 is an example.

Separately, GitHub reports `maintainer_can_modify: false` on every
closed pull request. #6198 had `MAINTAINER_CAN_MODIFY: true` in its
`opened` run (40040917882) and reports `false` now, and every closed
fork PR in the repo shows `false`. When the gate re-checked a closed
`needs-issue` PR after an edit, it read that stale value as "maintainer
edits off" and wouldn't reopen it. So "this pull request reopens on its
own once you save the description" probably never worked for PRs from
personal forks.

## What changed

`.github/workflows/pr-gate.yml`:
- **`skip-issue-check` label:** when the label is present, the
linked-issue check is skipped. The gate now also runs on `labeled`
events. Adding this label to a closed `needs-issue` PR goes through the
same re-check as editing its description: the gate reopens the PR if the
author is approved and maintainer edits were on. Other labels are
ignored. Only accounts with triage access or higher can add labels, so
contributors can't exempt themselves.
- **`needs-maintainer-edits` label:** when the gate closes a PR because
"Allow edits by maintainers" is off, it now adds this label. The
re-check after an edit or label reads this label instead of the stale
`maintainer_can_modify`. On `opened` and `reopened`, the gate still
reads `maintainer_can_modify` as before. PRs closed for edits-off before
this change don't have the label, so a re-check could reopen one of
them.

`CONTRIBUTING.md`: documents the maintainer exemption under "Linked
Issue".

I created the `skip-issue-check` label in the repo.

## How you verified

I pulled the `run` script out of the workflow, checked it with `bash
-n`, and ran it against a stubbed `gh` in eight scenarios. Each produced
the expected `gh pr` calls:
- opened with no issue → closed with `needs-issue`
- `skip-issue-check` added to a closed PR (with the stale
`maintainer_can_modify=false`) → reopened
- some other label added → no action
- description edited with `Fixes #N` on a closed PR (stale `false`) →
reopened
- `skip-issue-check` added, but the PR has `needs-maintainer-edits` →
stays closed
- reopened by hand with `skip-issue-check` → stays open
- `skip-issue-check` added, but the author is not approved → stays
closed
- opened with edits off → closed with `needs-maintainer-edits`

None of this has run on real GitHub events yet. `pull_request_target`
takes effect only after merge, and #6198 is the first real case.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
@sms-yui
sms-yui force-pushed the scott/ultrafast-tier-icon branch 2 times, most recently from f767764 to 5f19f74 Compare October 24, 2026 00:41
Service tier descriptors accept an optional experimental_icon host glyph.
Codex declares Rocket for Ultrafast; Fast keeps the default Zap.
@sms-yui
sms-yui force-pushed the scott/ultrafast-tier-icon branch from 5f19f74 to 9119043 Compare October 24, 2026 01:10
ymichael and others added 2 commits October 23, 2026 18:17
The Codex app marks Ultrafast with two lightning bolts, so use a double
bolt instead of a rocket. It is Codex's own concept, so the glyph lives in
the Codex plugin's icons/ and is declared through
bb.branding.experimental_icons, the way the ACP provider ships its agent
icons, rather than in the shared icon set.

Service tier icons accept a declared "<pluginId>/<name>" icon as well as
a host glyph name, and reject paths, which nothing resolves for tiers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A service tier's experimental_icon that names another plugin's icon or an
undeclared one now fails the load at bb.providers.register, the same check
the provider icon gets, instead of silently drawing the default bolt. The
server and the fake plugin host share one helper for both icons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit ed5f043 into get-bb:main Oct 24, 2026
47 checks passed
@ymichael ymichael mentioned this pull request Oct 24, 2026
ymichael added a commit that referenced this pull request Oct 24, 2026
## Human comments

## What was wrong

`main` has 14 commits since 0.47.0, including #6195, which fixes the
timeline staying detached at the bottom (a regression from #5951 that
shipped in 0.47.0). `bb-app` and `@bb/desktop` were still at 0.47.0, so
the publish and desktop workflows can't ship them.

## What changed

- `packages/bb-app/package.json`, `apps/desktop/package.json`: 0.47.0 →
0.47.1 (`node scripts/bump-version.mjs --patch`).
- No `CHANGELOG.md` or `RELEASE_META` entry: like earlier fix-only
patches, these changes go into the 0.48.0 notes.

The release commit sits directly on `b17bfc8fdd` (#6217). Everything
below was tested on `22d41249ee`, and the sidebar was tested again on
`b17bfc8fdd`. This release includes the daemon protocol bump from #6185
(251 → 252), so enrolled machines will update their daemon.

## How you verified

- `node .github/workflows/check-version-lockstep.mjs`: `bb-app=0.47.1
@bb/desktop=0.47.1`.
- Typecheck, tests and the `bb-app` tarball smoke run in CI on this PR,
instead of locally.
- `git diff --check`, and `oxfmt --check` on the changed files: clean.
- Manual QA of `22d41249ee` with `pnpm start:worktree` (production
bundle) and headless Chrome, on a fresh data dir:
- **Timeline (#6195):** a long unread reply stops at NEW, detached. A
short unread reply opens at the end with no jump arrow. Scrolling up 150
px and growing the viewport 900 → 1200 attaches. Scrolling up 400 px and
growing it stays detached. Sending after scrolling up 1,800 px jumps to
the end and follows the streamed Claude Code reply. The view is still at
the end after a reload.
- **Docs (#6146):** typing in a note while `bb docs pull`/`push`
appended a paragraph kept both edits on disk and in the editor. A stale
push after a UI edit was refused as a conflict. A new note was renamed
from its first line and kept its Markdown after a reload.
- **Skills (#6185):** `bb project commands` lists project skills from
the documented roots for Claude Code and Codex, with no duplicate names.
A Codex `/skill` turn ran the skill.
- **Storage & retention (#6190, #6205):** two outside worktrees were
listed. Bulk removal removed the clean one, kept its branch, and kept
the dirty one. The table fits a 390 px viewport.
- **Sidebar multi-select (#6191, #6217), on `b17bfc8fdd`:** with the
experiment on, Cmd+Shift-click selected a second thread without
navigating ("Actions for 2 threads"). Pressing it again on the same
thread deselected it. Shift-click selected a range of 4. Escape cleared
the selection. Cmd-click cleared the selection and opened a split. Bulk
Pin applied to the two selected threads (checked with `bb thread list`).
With the experiment off, Cmd-click opens a split.
- **omp (#6186):** the picker labels GPT-5.6 Terra rows `openai` and
`openai-codex`.

Not exercised: the Ultrafast icon (#6198), because no Codex model on the
test account offers Ultrafast. Also not exercised: the Android
touch-drag attach, the desktop app, the SDK realtime reconnect (#6183)
and retryable host RPCs (#6184). Those last two are covered by unit
tests only.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[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.

Model picker shows the same icon for Fast and Ultrafast

3 participants