Skip to content

Add oh-my-pi (omp) agent provider (minimal) - #515

Merged
SawyerHood merged 2 commits into
mainfrom
add-omp-provider-minimal
Jul 6, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
add-omp-provider-minimal

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Minimal rework of #500 — adds omp (oh-my-pi) support via the known-ACP-agent route, plus a reasoning-discovery fix that omp's large catalog exposed.

Credit to @Git-on-my-level for the original PR, the acp-omp approach, and the icon — carried over here as co-author.

Commit 1 — omp as a known ACP agent

  • acp-omp entry in KNOWN_ACP_AGENTS: auto-detected when omp is on PATH, launched as omp acp (mirrors acp-opencode).
  • Bridge model pinning: omp pins models via the standard ACP "model"-category config option and does not implement legacy session/set_model. The bridge now prefers session/set_config_option when the agent advertises a model config option, and falls back to session/set_model when it doesn't (opencode's session-models path, unchanged) or when the config-option call errors. This keeps Fix OpenCode ACP model discovery and selection #345's opencode behavior and the dynamic-acp integration fixture working — both regressed in Add oh-my-pi (omp) agent provider #500's replacement approach.
  • OmpIcon + provider icon wiring.
  • Doc surfaces per AGENTS.md: bb-guide template (+regen), bb-cli SKILL.md, docs/configuration.md.

Deliberately dropped from #500 (separable or stale): model-picker provider grouping (conflicts with the #450 nav-row rewrite; needs a redesign on top of buildModelNavRows), the two eviction-race fixes (real but incomplete — the pending-start set only covers the sendCommand window; better rebuilt on threadOperationCounts), and leftover edits (pi typeahead assertion deletion, whitespace-only hunks).

Commit 2 — time-budget ACP reasoning discovery

Per-model reasoning discovery bailed out entirely for catalogs over 50 models, so every model in omp's ~90-model catalog showed a locked "managed by the agent" reasoning effort even though omp advertises thought_level. Probes are one local set_config_option round trip each, so the work is now bounded by the existing 5s time budget instead of a count cliff, and timeouts/mid-probe errors keep the partial map (probed models get real levels, the rest keep the managed fallback — previously a timeout discarded all completed probes).

Verified

  • Typecheck + full test suites green for agent-runtime, server, app, templates; dynamic-acp-agent integration smoke test passes (it fails on Add oh-my-pi (omp) agent provider #500's bridge change).
  • New regression test: a 60-model catalog reports real per-model efforts (fails on the old count cliff).
  • Live against omp 16.3.10: acp-omp auto-detected; 88-model catalog listed; thread turn completed on a pinned non-default model (verified via session/set_config_option); --reasoning-level high confirmed applied in omp's own session file; after commit 2, 63/88 models report selectable low–xhigh reasoning.

Test plan

  • Install omp (omp on PATH), open bb → provider picker shows omp.
  • bb provider models acp-omp lists the catalog with per-model reasoning levels.
  • Spawn a thread with a non-default model and reasoning level; both apply.

🤖 Generated with Claude Code

SawyerHood and others added 2 commits July 6, 2026 09:23
Minimal omp support: register acp-omp in KNOWN_ACP_AGENTS (auto-detected
when omp is on PATH, launched as `omp acp`), add the provider icon, and
update the provider docs/guide/skill surfaces.

omp pins models via the standard ACP "model"-category config option and
does not implement the legacy session/set_model method, so the bridge now
prefers session/set_config_option when the agent advertises a model config
option and falls back to session/set_model otherwise (or when the config
option call errors). Session-models-state discovery and selection
(opencode) are unchanged.

Minimal rework of #500.

Co-authored-by: David Zhang <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
Per-model reasoning discovery bailed out entirely for catalogs over 50
models, so every model in a large catalog (omp lists ~90) showed a locked
"managed by the agent" reasoning effort in the picker even though the
agent advertises a thought_level config option. Probes are one local
set_config_option round trip each, so bound the work by the existing 5s
time budget instead: on timeout or a mid-probe error, keep the partial
map — probed models surface their real levels, unprobed models keep the
managed fallback.

Verified live against omp 16.3.10: 63/88 models now report selectable
low–xhigh reasoning.

Co-Authored-By: Claude Fable 5 <[email protected]>
@SawyerHood
SawyerHood merged commit 43ee792 into main Jul 6, 2026
6 checks passed
@SawyerHood
SawyerHood deleted the add-omp-provider-minimal branch July 6, 2026 17:14
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