Repository navigation
Classify routine Codex notifications before diagnostic fallback - #3478
Merged
Merged
Conversation
ymichael
added a commit
that referenced
this pull request
Sep 11, 2026
## Human comments ## What was wrong PR #3478 correctly changed valid generic Codex `warning` notifications from the diagnostic `provider/unhandled` fallback to `provider/warning`, but the committed `codex/auth-failure` current bridge lane and its pinned unhandled count still described the old behavior. The parity replay therefore compared the current bridge against a stale expected lane and failed. The parity test's Turbo hash also omitted the first-party provider implementations it launches by filesystem path, which let provider-only bridge changes reuse a stale cache result and delayed detection until an unrelated lockfile change forced execution in [the failing run](https://github.com/get-bb/bb/actions/runs/34639101342). ## What changed - Re-recorded only the `codex/auth-failure` current bridge lane so the fallback notice is a general `provider.warning`. - Re-pinned that cell's `provider/unhandled` count from one to zero, preserving the harness's strict regression guard for genuinely unknown events. - Added the four replayed provider source trees, package manifests, and TypeScript configs to `@bb/provider-parity#test` Turbo inputs so provider bridge changes invalidate the parity cache. There are no wire, CLI, SDK, or host-daemon protocol changes. ## How you verified - Red: the uncached focused replay failed with the recorded `provider/unhandled` / “Unhandled codex event” row versus the current `provider/warning` / warning row. - Green: `pnpm exec turbo run test --filter=@bb/provider-parity --force -- --testNamePattern="codex/auth-failure reproduces its recording" --maxWorkers=1` - Full parity: `pnpm exec turbo run test --filter=@bb/provider-parity --force` (56 passed) - Codex provider: `pnpm exec turbo run test --filter=bb-plugin-provider-codex --force` (274 passed, including unknown and malformed notification fallback coverage) - Typecheck/build graph: `pnpm exec turbo run typecheck build --filter=@bb/provider-parity --filter=@bb/provider-bridge-protocol --filter=bb-plugin-provider-codex --force --concurrency=4` - Bundle build: `pnpm exec turbo run prepare:bundled --filter=bb-plugin-provider-codex --force` - Re-recording the focused cell twice produced identical SHA-256 `ae992d7a36fdc29e7a797144639ed94b3c169e8c08c1b364ad2adc702d9fdac0`. - Turbo dry-run confirms the parity task now hashes the Codex translator and schema sources, with no `node_modules` inputs. - `git diff --check` and Prettier checks passed. > AGENT GENERATED: by GPT-5.6-Sol
ymichael
added a commit
that referenced
this pull request
Sep 11, 2026
## Human comments ## What was wrong Cloud-backed workspaces need coordinated machine allocation, enrollment, server access, and durable lifecycle ownership. Without it, interrupted setup, pause/follow-up cycles, and project deletion can strand resources or interrupt other threads sharing a machine. Manual enrollment also read its command before preparation finished, and access readiness treated a registered provider as working access. ## What changed Adds experimental machine-provider and server-access APIs with UI, SDK, CLI, and Plugin Guide support. Core owns durable machine identity, encrypted bootstrap, enrollment, allocation checkpoints, checkout ownership, and coordinated lifecycle transitions. Plugins own vendor allocation, snapshots, and idle timing. Standalone machines have independent lifetimes; environment compositions pair machine and workspace providers through `register()`. Includes Manual enrollment, Connect server access, and Modal sandboxes. Modal supports configurable images and size presets, filesystem snapshots, same-host resume, and diagnostics. Its vendor implementation now lives under `providers/modal/`, with a shared adapter for machine lifecycle registration. Idle policy, settings, diagnostics, and UI remain Modal-specific. Ephemeral machines account for live threads and launches across projects and environments, retiring after their final owner releases them. Durable `resuming` state holds queued follow-ups until restoration completes and drives settings, environment selection, and thread banners. Interrupted allocation, suspension, resume, and cleanup recover through persisted checkpoints. Checkout recovery retries when an earlier thread-start RPC settles, so a follow-up accepted after turn completion cannot remain stuck behind that RPC. Plugin bootstrap requires an executor and uses the selected access provider; Manual setup uses internal enrollment operations. Cancellation reaches enrollment and access acquisition. Cleanup uses the creation key before a checkpoint and the resource afterward. Both UI and CLI wait for manual command readiness. Access settings and composer banners consume validated availability and refresh on recheck and plugin enable/disable; errors and timeouts become unavailable without exposing private diagnostics. Provider-icon registrations require an agent, machine, or environment kind in the SDK. Environment providers and compositions require a description and icon. Existing untyped plugins can omit these fields at runtime; omitted icon kinds apply across kinds, while a specific kind takes precedence. Cross-plugin icon overrides remain allowed. Older compositions that omit an icon use FolderUnknownIcon, without inheriting the machine provider logo. Mobile includes the same icon and its native SF Symbol mapping. Default machine choices, CLI enumeration, updates, and CLI-skill installation exclude ephemeral sandboxes; `bb machine list --all` and explicit machine targeting retain access to them. Active sandbox threads keep their current machine identity even with only one persistent machine. Project summaries count configured and total machines within the same scope; checkout counts follow the Show all machines toggle, and hidden online sandboxes do not mask offline persistent checkouts. Plugin Guide, API map, audit entries, and CLI guides describe the implemented contracts. Removed obsolete wording/feature assertions and added compiled examples and boundary regressions. Artifact tests copy nested plugin source directories so the Modal refactor is covered while retaining SDK bundling and Dockerfile assertions. Migration `0117_machine_providers.sql` follows main's `0116`. Host daemon protocol is **203**, combining main's protocol changes with this branch's machine/bootstrap/shutdown changes. Plugin SDK version is **0.4.83**. Modal participates in the bundled-plugin preparation graph. ## How you verified Rebased onto `bc75f9dde7` and rebuilt the source app, server, daemon, bundled plugins, and matching CLI. Local checks passed **9,732 tests**, with five skips, across app, server, daemon, CLI, database, domain, Plugin SDK, API map, server/daemon contracts, scripts, Connect, Modal, and plugin-build. Relevant typechecks and lint passed. ```sh pnpm exec turbo run test typecheck lint --filter=@bb/server --filter=@bb/app --filter=@bb/host-daemon --filter=@bb/cli --filter=@bb/db --filter=@bb/domain --filter=@get-bb/plugin-sdk --filter=@bb/plugin-api-map --filter=@bb/server-contract --filter=@bb/host-daemon-contract --filter=@bb/scripts --filter=bb-plugin-environment-modal-sandbox --filter=bb-plugin-connect --concurrency=2 pnpm exec turbo run test typecheck lint --filter=@bb/plugin-build ``` The artifact regression reproduced locally before the fixture fix and passes afterward. The previous Linux package-smoke failure occurred during Ubuntu mirror installation; the rebase includes main's mirror fix. Fresh live QA uses this worktree's isolated source server and built CLI, real Modal compute/snapshots, Connect access, and Pi agent turns executing shell tools: - Two projects, eight environments, and ten threads across one and two sandboxes, including shared worktrees. Read back distinct workspace markers from each actual host/path. - Ten concurrent queued follow-ups with both hosts paused restore the correct hosts and preserve all markers. - Delete one project across both hosts while preserving the other project's threads, environments, and files. - Archive shared owners one at a time; destroy the final owner's host automatically while work continues on the other host. - Pause with two active threads, resume through the surviving shared owner, then archive the final owner while paused. Both matrix machines are destroyed in one attempt without manual removal/retry. - Stop a thread after its shell command actually starts, verify idle, and complete a follow-up on the same workspace. - Browser Modal icon, selection persistence across reload, settings Suspend, and thread-banner Resume. The resuming banner appears and clears on completion. - Manual CLI enrollment command appears exactly once; Ctrl-C exits following with code 130; explicit removal clears the access grant. - Install and reload an untyped legacy plugin: missing environment presentation fields are accepted, and omitted-kind plus all three specific-kind icon registrations load together. Remove the fixture afterward. The natural idle sweep suspended a third sandbox after 76 seconds with a temporary one-minute threshold. A follow-up restored its files and ran once; archive while paused automatically destroyed it in one attempt. The original ten-minute setting was restored. Independent Modal API checks confirm all three allocations have no compute and all seven captured snapshots were deleted. All six pre-existing machine phases and general/access/Modal settings match before and after. All applicable CI checks passed on `30bf86c10b`, including workspace build/typecheck/lint, every test shard, Linux/macOS package smoke, bundle budgets, and SDK/version guards. iOS and optional Node compatibility smoke are skipped by workflow conditions. The subsequent picker-description removal passes all 31 picker tests. Direct folder-browser loading is restored; omitted composition icons use FolderUnknownIcon. The affected app/server tests (18 tests), typechecks, lint, and bundle budget pass. The measured boot payload is 1,610.0 KB raw / 394.6 KB brotli, and the thread-route closure is 2,142.9 KB raw / 571.3 KB brotli. The latest CI fixes pass all 82 integration tests, all 334 mobile tests, 18 server provisioning tests, and relevant typechecks/lint. A controlled delayed start acknowledgment reproduces the checkout recovery failure before the fix and verifies successful follow-up output afterward. Integration tests ran locally with two workers after a fully parallel run encountered startup timeouts during concurrent builds. All applicable CI checks pass on `5c38bd6fb4`, including the integration and packages shards, workspace checks, all app/server tests, and Linux/macOS package smoke; GitHub reports the PR mergeable. Earlier passes covered stopped/interrupted setup, scheduled work and suspension recovery across server restart, access-provider errors/timeouts, and live access banner refresh. This pass does not claim desktop/mobile QA or installation of a separately managed Manual daemon. Removal of an independently managed unreachable machine can still require workspace cleanup; automatic abandonment is not implemented. Pre-merge CLI/server rerun on `5c38bd6fb4` passed with real Modal, Connect, Pi and Codex: two projects/eight environments/ten threads across one and two sandboxes; ten simultaneous offline follow-ups with exact single writes; stop/follow-up; cross-project deletion; shared-owner cleanup while the other host runs; active-turn suspension; and separate Codex and natural-idle resume checks. Manual command readiness and idempotent creation also passed. Auxiliary fixture collisions were corrected and rerun. All five allocations created during the run were automatically destroyed in one attempt, and independent Modal queries confirmed no compute and all eight captured snapshots deleted. Settings and all seven pre-existing machine phases match the baseline. Cleanup emitted non-blocking Keep Awake/offline and Codex archive/machine-removing warnings; final archive and cleanup succeeded. No code changes were needed for that QA pass. The display fixes in `2bd1ed9f36` add three regression tests for current sandbox identity, scoped project counts/offline status, and checkout counts across the Show all machines toggle. All three fail before the fixes and pass afterward. All 66 focused app tests pass; app typecheck passes and lint reports no errors. The real-provider QA above ran on `5c38bd6fb4`, before the subsequent machine-enumeration and display changes; That push exposed the upstream Codex parity fixture failure described below. ```sh pnpm exec turbo run test --filter=@bb/app -- environment-workspace-display.test ProjectsSettingsSection.test ProjectDetailSettingsView.test ThreadEnvironmentSummary.test PluginThreadChat.test PluginThreadChat.provider-context.test pnpm exec turbo run typecheck lint --filter=@bb/app ``` Rebased onto `18b71d810c` to include #3526's fix for Codex warning parity. The earlier CI packages failure came from #3478 changing warning classification while the recorded expected event still used the unhandled-event fallback. #3526 refreshes that single fixture and pins its unhandled count to zero; it also adds provider source files to the parity test's Turbo inputs. All 21 branch commits replayed without conflicts. On rebased head `92d25beb50`, all 56 provider-parity tests, 281 Codex provider tests, and 66 focused app tests pass, along with app/parity/Codex typechecks. All applicable checks pass on rebased head `92d25beb50` in [CI run 34643021790](https://github.com/get-bb/bb/actions/runs/34643021790), including packages, server, all app shards, integration, workspace build/typecheck/lint, and Linux/macOS package smoke. iOS and optional Node compatibility jobs are skipped by workflow conditions. > AGENT GENERATED --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Routine Codex hook notifications had unknown coverage, and generic warning notifications lacked a translation handler. Both therefore became unhandled diagnostics. Reproduction and root-cause report.
What changed
Suppress hook notifications with running/completed status, preserving unsuccessful or unrecognized hook diagnostics. Validate generic warnings and translate each to the existing general warning event. Unknown events and malformed warnings remain diagnostics. Existing stored events are unchanged; no public protocol or data schema changes.
How you verified
The regression test failed before the fix in two clean checkouts of
fa1f44ebe9e5676004b669e48c99b3c7606466b6: four failures, five passing preservation cases. After the fix,pnpm exec turbo run test typecheck --filter=bb-plugin-provider-codexpassed all 281 tests and typecheck. The trusted-base full Turbo build passed. Verification covers the translator and event assembler; no live provider or browser run.git diff --checkpassed. The change totals 132 text lines (131 additions, 1 deletion), across four files in one subsystem. No binaries, dependencies, generated files, migrations, or stored-data changes. Working tree, commit range, and report EAP scans are clean; equivalent pattern checks used because the skill scanner requires a newer Bash than this host provides.Fixes #3477