Repository navigation
Add oh-my-pi (omp) agent provider (minimal) - #515
Merged
Merged
Conversation
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]>
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.
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-ompentry inKNOWN_ACP_AGENTS: auto-detected whenompis on PATH, launched asomp acp(mirrors acp-opencode)."model"-category config option and does not implement legacysession/set_model. The bridge now preferssession/set_config_optionwhen the agent advertises a model config option, and falls back tosession/set_modelwhen 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.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 thesendCommandwindow; better rebuilt onthreadOperationCounts), 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 localset_config_optionround 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
dynamic-acp-agentintegration smoke test passes (it fails on Add oh-my-pi (omp) agent provider #500's bridge change).acp-ompauto-detected; 88-model catalog listed; thread turn completed on a pinned non-default model (verified viasession/set_config_option);--reasoning-level highconfirmed applied in omp's own session file; after commit 2, 63/88 models report selectable low–xhigh reasoning.Test plan
ompon PATH), open bb → provider picker shows omp.bb provider models acp-omplists the catalog with per-model reasoning levels.🤖 Generated with Claude Code