Skip to content

Keep provider tabs stable and surface provider failures - #1741

Merged
ymichael merged 4 commits into
mainfrom
bb/show-other-providers-in-promptbox-thr_9mmm6qvdu5
Aug 18, 2026
Merged

ymichael merged 4 commits into
mainfrom
bb/show-other-providers-in-promptbox-thr_9mmm6qvdu5

Conversation

@ymichael

@ymichael ymichael commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • build the plugin SDK runtime before server dev starts, because first-party provider host builds intentionally bundle the published provider-bridge entry
  • retain provider declarations as unavailable when their host plugin fails, keep their tabs stable, show a provider-specific picker error, and prevent unavailable-provider submission
  • preserve the same-route authoritative provider roster during provider-specific model loading, so dynamic ACP tabs stay visible without showing stale models
  • avoid provider-tab snapback when the authoritative provider response arrives after a tab switch
  • reap only old plugin-host stage directories so concurrent integration builds cannot delete each other’s active output
  • regenerate the plugin SDK template declarations required by the Packages consistency check

Verification

  • pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/app --filter=@bb/plugin-build
  • pnpm exec turbo run test --filter=@bb/plugin-build --force
  • pnpm exec turbo run test --filter=@bb/server --force -- test/services/plugins/plugin-provider-registration.test.ts test/system/execution-options.test.ts test/threads/thread-default-policy.test.ts
  • pnpm exec turbo run test --filter=@bb/app --force -- src/components/pickers/ModelReasoningPicker.test.tsx src/hooks/useThreadCreationOptions.test.tsx
  • pnpm exec turbo run test --filter=@bb/app -- --run src/hooks/useThreadCreationOptions.test.tsx src/hooks/queries/system-queries.test.tsx
  • pnpm exec turbo run test --filter=@bb/integration-tests --force -- fake/recovery/session-continuity.test.ts fake/smoke/environment-actions.test.ts
  • pnpm exec turbo run lint --filter=@bb/app (passes with existing warnings)
  • node packages/templates/scripts/generate-templates.mjs --check
  • git diff --check

AGENT GENERATED: by GPT-5

@ymichael ymichael changed the title Build plugin SDK before server dev startup Keep failed providers visible and stabilize provider builds Aug 17, 2026
@ymichael ymichael changed the title Keep failed providers visible and stabilize provider builds Keep provider tabs stable and surface provider failures Aug 18, 2026
@ymichael
ymichael merged commit 84ccf71 into main Aug 18, 2026
10 checks passed
@ymichael
ymichael deleted the bb/show-other-providers-in-promptbox-thr_9mmm6qvdu5 branch August 18, 2026 00:31
ymichael added a commit that referenced this pull request Aug 18, 2026
## Summary

- give the Memory catalog budget test an explicit loaded-CI timeout for
its 30 sequential CLI/database writes
- replace a Linux-only `setsid` process-tree fixture with a portable
detached Node process

## Investigation

I sampled 500 PR CI runs from August 13–18. The dominant cluster was 15
concurrent plugin-host staging failures; that race has already been
fixed on main by #1741. The remaining rerun-only test failure was the
Memory catalog test exceeding Vitest's 5-second default under the fully
parallel packages shard.

Running that shard locally also exposed the process-tree fixture's
dependency on Linux `setsid` even though the suite runs on macOS. The
replacement preserves the independent-process-group behavior on both
POSIX platforms.

## Testing

- Memory suite passed 10 consecutive forced runs
- process-utils suite passed 20 consecutive forced runs
- `pnpm exec turbo run typecheck --filter=bb-plugin-memory`
- `pnpm exec turbo run typecheck --filter=@bb/process-utils`
- full 66-package packages shard passed: 57/57 tasks
- Prettier and `git diff --check`

> 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