Skip to content

Decouple composer data queries with bootstrap compatibility - #335

Merged
ymichael merged 5 commits into
mainfrom
bb/investigate-queued-message-drawer-delay-thr_d3cc8qegti
Jun 24, 2026
Merged

ymichael merged 5 commits into
mainfrom
bb/investigate-queued-message-drawer-delay-thr_d3cc8qegti

Conversation

@brsbl

@brsbl brsbl commented Jun 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the thread detail composer from the old aggregate bootstrap readiness path. Default execution options, queued messages, prompt history, and pending interactions now load through their dedicated query/cache owners.
  • Keep GET /api/v1/threads/:id/composer-bootstrap in the public contract as a deprecated compatibility endpoint for older clients; the app no longer depends on it.
  • Let the pending-interactions query own interaction state, while blocking submit/queue only when that query has no cached data and is still initially loading.
  • Keep non-archived environmentless composers initializing provider/model execution options instead of disabling those controls solely because environmentId is null.
  • Invalidate thread default execution options on realtime environment-changed so environment moves refresh stale inherited defaults.

Why

Composer bootstrap had become a readiness gate for data with separate cache ownership and invalidation rules. Splitting those paths lets cached composer data appear immediately on thread switch, while the deprecated compatibility route preserves the public API shape for clients that still call it.

Validation

  • Rebased onto origin/main (845573289) and force-pushed with lease.
  • pnpm exec turbo run test --filter=@bb/app -- ThreadDetailPromptArea.test.tsx threadDetailPromptSubmission.test.ts realtime-cache-effects.test.ts cache-owner-registry.test.ts (55 tests)
  • pnpm exec turbo run test --filter=@bb/server -- public-thread-data.test.ts (62 tests)
  • pnpm exec turbo run test --filter=@bb/server-contract -- contract.test.ts (27 tests)
  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/server --filter=@bb/server-contract
  • pnpm exec turbo run lint --filter=@bb/app --filter=@bb/server --filter=@bb/server-contract (passes with existing warnings)
  • pnpm exec turbo run build --filter=@bb/app --filter=@bb/server --filter=@bb/server-contract (passes with existing app chunk/plugin timing warnings)
  • Standalone dev smoke via scripts/bb-dev-app current: app root 200, system version 200, spawned Codex smoke thread thr_re6iun8s83 to idle, verified /composer-bootstrap, /queued-messages, /interactions, /prompt-history, and /default-execution-options respond for the smoke thread.
  • dev-browser --headless loaded http://localhost:11347/threads/thr_re6iun8s83 and confirmed the thread page/composer controls render without page errors.
  • GitHub CI is running on the rebased head.

@brsbl
brsbl marked this pull request as ready for review June 24, 2026 02:30
@brsbl brsbl changed the title [codex] Fix queued message cache readiness [codex] Fix thread-switch composer cache readiness Jun 24, 2026
@brsbl brsbl changed the title [codex] Fix thread-switch composer cache readiness [codex] Fix thread-switch prompt cache readiness Jun 24, 2026
@brsbl brsbl changed the title [codex] Fix thread-switch prompt cache readiness [codex] Remove composer bootstrap for prompt cache ownership Jun 24, 2026
@brsbl brsbl changed the title [codex] Remove composer bootstrap for prompt cache ownership [codex] Remove composer bootstrap and use dedicated prompt queries Jun 24, 2026
@brsbl brsbl changed the title [codex] Remove composer bootstrap and use dedicated prompt queries Remove composer bootstrap and use dedicated prompt queries Jun 24, 2026
@brsbl brsbl changed the title Remove composer bootstrap and use dedicated prompt queries Decouple composer data queries with bootstrap compatibility Jun 24, 2026
@ymichael
ymichael force-pushed the bb/investigate-queued-message-drawer-delay-thr_d3cc8qegti branch from 90929ee to 029abb4 Compare June 24, 2026 16:31
@ymichael
ymichael merged commit 32197c2 into main Jun 24, 2026
6 checks passed
@ymichael
ymichael deleted the bb/investigate-queued-message-drawer-delay-thr_d3cc8qegti branch June 24, 2026 17:12
SawyerHood added a commit that referenced this pull request Aug 3, 2026
## Summary

Audited all 99 checked-in Markdown files against the code, then removed
the plans whose work shipped and corrected the docs that no longer
matched the tree.

**Deleted — 13 plans and design docs for shipped work**

| File | Why |
| --- | --- |
| `plans/tools-hub-plugin-detail-handoff.md` | PR #888 merged
2026-08-02; the doc still said "do not merge" |
| `plans/bb-connect-v1.md` | `bb connect` shipped |
| `plans/bb-connect-architecture.html` | Architecture plan for shipped
connect |
| `plans/hosted-bb-architecture.html` | The connect plan said to delete
it once the work landed |
| `plans/multi-machine-v1.html` | `bb machine` and the pair dialogs
shipped |
| `plans/secret-request-plugin-and-pending-interaction-api.md` |
`plugins/secrets` shipped |
| `plans/plugin-system-design.md` | The plugin system shipped |
| `plans/notes-plugin-api-spec.html` | The Docs plugin API shipped |
| `plans/askuserquestion-option-preview.md` | The server now offers the
`preview` option field |
| `plans/loops-skills-redesign-build.md` | Its own status said all
stages built; `host.write_skill` shipped |
| `docs/t3sidebar-plugin-plan.md` | `plugins/t3sidebar` shipped |
| `artifacts/simple-notes-implementation-plan.md` | The Docs plugin
shipped |
| `artifacts/simple-notes-ui-mocks.html` | Mocks for the same shipped
plugin |

Four source comments pointed at the deleted connect plan
(`packages/tunnel-contract`, `packages/connect-db` x2,
`apps/connect/scripts/spike-client.mts`). Those pointers are gone; the
comments still say what they said.

`plans/` now holds only open work.

**Updated — 6 files**

- `docs/plugin-sidebar-thread-list.md` — said "Nothing here is
implemented yet", but all five `experimental_*` members ship in
`@bb/plugin-sdk`. Status corrected; the dead link to the deleted plan
now points at `plugins/t3sidebar`.
- `plans/plugin-system-qa-catalog.md` — setup told you to enable
"Settings → Experiments → Plugins"; the experiment is now Extensions
(`toolsHub`). Added a rename table for `marketplace/plugins/github` →
`official-plugins/github` and the deleted `small-ux-pack` and `linear`
examples.
- `plans/bb-settings.md` — the `bb settings` group shipped with a
different shape, so the phases are now scoped to the remaining
browser-link work. `AppSettingsView.tsx` → `SettingsView.tsx`.
- `plans/bb-browser.md`,
`plans/in-app-browser-open-behavior-improvements.md` — dropped the link
to `plans/bb-terminal.md`, which never existed; both now state "not
started" with evidence.
- `plans/composer-extraction.md` — premise moved: side chat uses
`EmbeddedThreadChat` now, so two hand-rolled sites remain, not three,
and the 4th caller never landed.
- `qa/missed-invariants.md` — named `composer-cache-owner.test.ts` as
the guard; that test went away with the composer cache owner in
`32197c2e7` (#335).

## Tests

Docs only, plus four comment lines. No behavior change, so no test run.
Verified instead by scanning every Markdown link and every repo path
referenced in `docs/`, `plans/`, `qa/`, and `artifacts/`: no broken link
and no dangling plan reference remain.

## Risks

Low. The deleted plans stay recoverable in git history.

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

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## Summary

Audited all 99 checked-in Markdown files against the code, then removed
the plans whose work shipped and corrected the docs that no longer
matched the tree.

**Deleted — 13 plans and design docs for shipped work**

| File | Why |
| --- | --- |
| `plans/tools-hub-plugin-detail-handoff.md` | PR get-bb#888 merged
2026-08-02; the doc still said "do not merge" |
| `plans/bb-connect-v1.md` | `bb connect` shipped |
| `plans/bb-connect-architecture.html` | Architecture plan for shipped
connect |
| `plans/hosted-bb-architecture.html` | The connect plan said to delete
it once the work landed |
| `plans/multi-machine-v1.html` | `bb machine` and the pair dialogs
shipped |
| `plans/secret-request-plugin-and-pending-interaction-api.md` |
`plugins/secrets` shipped |
| `plans/plugin-system-design.md` | The plugin system shipped |
| `plans/notes-plugin-api-spec.html` | The Docs plugin API shipped |
| `plans/askuserquestion-option-preview.md` | The server now offers the
`preview` option field |
| `plans/loops-skills-redesign-build.md` | Its own status said all
stages built; `host.write_skill` shipped |
| `docs/t3sidebar-plugin-plan.md` | `plugins/t3sidebar` shipped |
| `artifacts/simple-notes-implementation-plan.md` | The Docs plugin
shipped |
| `artifacts/simple-notes-ui-mocks.html` | Mocks for the same shipped
plugin |

Four source comments pointed at the deleted connect plan
(`packages/tunnel-contract`, `packages/connect-db` x2,
`apps/connect/scripts/spike-client.mts`). Those pointers are gone; the
comments still say what they said.

`plans/` now holds only open work.

**Updated — 6 files**

- `docs/plugin-sidebar-thread-list.md` — said "Nothing here is
implemented yet", but all five `experimental_*` members ship in
`@bb/plugin-sdk`. Status corrected; the dead link to the deleted plan
now points at `plugins/t3sidebar`.
- `plans/plugin-system-qa-catalog.md` — setup told you to enable
"Settings → Experiments → Plugins"; the experiment is now Extensions
(`toolsHub`). Added a rename table for `marketplace/plugins/github` →
`official-plugins/github` and the deleted `small-ux-pack` and `linear`
examples.
- `plans/bb-settings.md` — the `bb settings` group shipped with a
different shape, so the phases are now scoped to the remaining
browser-link work. `AppSettingsView.tsx` → `SettingsView.tsx`.
- `plans/bb-browser.md`,
`plans/in-app-browser-open-behavior-improvements.md` — dropped the link
to `plans/bb-terminal.md`, which never existed; both now state "not
started" with evidence.
- `plans/composer-extraction.md` — premise moved: side chat uses
`EmbeddedThreadChat` now, so two hand-rolled sites remain, not three,
and the 4th caller never landed.
- `qa/missed-invariants.md` — named `composer-cache-owner.test.ts` as
the guard; that test went away with the composer cache owner in
`32197c2e7` (get-bb#335).

## Tests

Docs only, plus four comment lines. No behavior change, so no test run.
Verified instead by scanning every Markdown link and every repo path
referenced in `docs/`, `plans/`, `qa/`, and `artifacts/`: no broken link
and no dangling plan reference remain.

## Risks

Low. The deleted plans stay recoverable in git history.

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

Co-authored-by: Claude Opus 5 (1M context) <[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.

2 participants