Skip to content

Discover selected ACP reasoning after catalog timeout - #4391

Closed
ymichael wants to merge 7 commits into
mainfrom
bb/fix-issue-4367-acp-reasoning-catalog-thr_jm47rgd45h
Closed

ymichael wants to merge 7 commits into
mainfrom
bb/fix-issue-4367-acp-reasoning-catalog-thr_jm47rgd45h

Conversation

@ymichael

@ymichael ymichael commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Fixes #4367: a large ACP catalog can exhaust the five-second reasoning-discovery budget. BB then advertised a fabricated Medium value for unprobed models and could send it as a real thought_level.

What changed

  • Keep unadvertised reasoning unknown and omit the outgoing reasoning setting. Reuse the initial model's actual choices.
  • When a selected model has no advertised choices, fetch its actual ladder through an isolated, bounded ACP session. Cache results by model, deduplicate requests, and merge only that model to handle selection races.
  • Carry optional selectedModel through UI, SDK/CLI, server, daemon and bridge. Runtime reasoningLevel becomes optional. Host protocol 221→222 requires enrolled daemons to update.
  • Preserve explicit CLI/SDK reasoning choices even when discovery is incomplete; only inferred defaults remain unset. Resolve this against the active host/workspace catalog, including ephemeral hosts and selected-only models.
  • Carry unset reasoning through queueing, retries and fork requests. Migration 0134 makes queued reasoning nullable and preserves queue grouping. No new public plugin SDK export.
  • Stop stale selected-model query data from hiding reasoning discovered by a later catalog refresh.

This branch still retains the initial catalog-wide scan. The separate demand-only prototype that removes the scan is NOT included.

Shared picker/server handling currently applies to any provider advertising an empty reasoning list, not only ACP. Existing live ACP sessions still do not apply newly selected model/reasoning settings to their next turn; fresh-thread execution is verified.

How you verified

Rebased onto origin/main f117245 on 2026-09-29; rebase head dbf5707; follow-up head 0b10a39. Only rebase conflicts were the protocol version and its assertion, advanced to 222 because main is now 221. The remaining commits applied unchanged; #4149 per-model failure isolation remains preserved. #4154's individual probe rejection is distinct from #4367's cumulative timeout.

Follow-up local verification: full server and database suites passed, client-core 277, UI 36, server contract 78, host contract 71; build/typecheck/lint passed. New command-level regression fails on the previous implementation and passes after. Database regression replays the new migration while preserving queued grouping and explicit values. Full workspace typecheck passed (99 tasks). CI found one demo queued-message fixture needing null conversion; fixed in 0b10a39. Full CI passed for this final head: https://github.com/get-bb/bb/actions/runs/36646221620. An unchanged dependency-install performance test timed out at five seconds on the first attempt; its local run and the failed package-job rerun passed without test/code changes.

Real app/browser with simulated 836-model ACP fixture: explicit High on unprobed model 830 completed with selected-effort:high; model 829 remained unset while loading, then exposed Low/Medium/High. This is simulated agent evidence, not an external omp inference check.

Prior end-to-end verification used the real app/bridge with a simulated836-model ACP fixture: previously unprobed model acquired Low/Medium/High; a fresh High turn sent the actual valid level and completed. Authenticated unpatched omp18.0.5 did not reproduce the large-catalog timeout; on-demand external omp behavior is not claimed verified.

Current follow-up review server: https://ymichael--23807.getbb.app/projects/proj_4a88tvqhd9/threads/thr_eg7bytn4qd

Historical browser review servers: control d81d3d1 at https://ymichael--23790.getbb.app; branch 576b8b1 at https://ymichael--25427.getbb.app. These are NOT rebuilt for dbf5707; screenshots and browser measurements remain tied to the prior commits. The separate prototype is unpublished.

HANDOFF.md, screenshots and reproduction scripts remain in BB thread storage.

Fixes #4367

AGENT GENERATED

@ymichael ymichael changed the title Fix unknown ACP reasoning after catalog discovery timeout Discover selected ACP reasoning after catalog timeout Sep 26, 2026
@ymichael
ymichael force-pushed the bb/fix-issue-4367-acp-reasoning-catalog-thr_jm47rgd45h branch from f6d0850 to 576b8b1 Compare September 26, 2026 04:58
@ymichael
ymichael force-pushed the bb/fix-issue-4367-acp-reasoning-catalog-thr_jm47rgd45h branch from 576b8b1 to dbf5707 Compare September 29, 2026 23:14
@SawyerHood

Copy link
Copy Markdown
Collaborator

This is an automated message. We have closed this pull request because it has been open for more than two weeks.

@SawyerHood SawyerHood closed this Oct 10, 2026
ymichael added a commit that referenced this pull request Oct 28, 2026
Port the complete approach from PR #4391 to current main, preserving current environment contribution, session catalog, service tier, and queued-message behavior. Probe a selected unadvertised ladder on demand and preserve absent inferred reasoning through server, runtime, queue, retry, and fork paths. Keep explicit CLI/SDK levels. Includes migration, protocol 258, and Plugin SDK 0.6.99.
ymichael added a commit that referenced this pull request Oct 28, 2026
Port the complete approach from PR #4391 to current main, preserving current environment contribution, session catalog, service tier, and queued-message behavior. Probe a selected unadvertised ladder on demand and preserve absent inferred reasoning through server, runtime, queue, retry, and fork paths. Keep explicit CLI/SDK levels. Includes migration, protocol 258, and Plugin SDK 0.6.99.
ymichael added a commit that referenced this pull request Oct 28, 2026
Port the complete approach from PR #4391 to current main, preserving current environment contribution, session catalog, service tier, and queued-message behavior. Probe a selected unadvertised ladder on demand and preserve absent inferred reasoning through server, runtime, queue, retry, and fork paths. Keep explicit CLI/SDK levels. Includes migration, protocol 258, and Plugin SDK 0.6.99.
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.

ACP reasoning discovery covers ~80 models, so most omp models show a fake single "Medium" that is then sent to the agent

2 participants