feat(opencode): load OMO models from runtime opencode models (#5522)

* feat(opencode): load OMO models from runtime opencode models

Surface OAuth/Zen free models in OMO/OMO Slim pickers by running the
installed OpenCode CLI, with a 20s timeout and a toast when discovery fails.

* style: fix rustfmt and prettier for OMO runtime models

* fix(opencode): pass OPENCODE_CONFIG_DIR for runtime model discovery

Honor the configured OpenCode config directory when running
`opencode models`, including WSL UNC path translation. Also drop the
unused run_detected_tool_command wrapper that failed clippy.

* fix(opencode): satisfy Windows Clippy

* fix(opencode): bound runtime model discovery

* fix(opencode): address runtime model review feedback

* fix(ci): parenthesize unsafe kill expression
This commit is contained in:
Allen Xu
2026-08-04 09:43:20 +08:00
committed by GitHub
parent 968794e30e
commit 92ca95ffcd
12 changed files with 843 additions and 109 deletions
+1
View File
@@ -783,6 +783,7 @@ dependencies = [
"indexmap 2.13.0",
"json-five",
"json5",
"libc",
"log",
"objc2 0.5.2",
"objc2-app-kit 0.2.2",