Skip to content

fix(agent): make external runtimes explicitly opt-in - #6631

Merged
M4n5ter merged 2 commits into
rust-previewfrom
fix/isolate-external-model-discovery
Nov 4, 2026
Merged

M4n5ter merged 2 commits into
rust-previewfrom
fix/isolate-external-model-discovery

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #6628.

  • Make each external Agent explicitly opt-in. A detected installation is not consent: the default runtime selection is empty, including existing configurations with only the old global flag. Disabled runtimes are neither probed nor admitted for execution. Keep custom worker executable/arguments and update the conversation Agent and WorkHub coordinator atomically.
  • Isolate vendor installation/model discovery failures to their own catalog entries, so a failing Claude CLI cannot discard native or other external models. Preserve errors for diagnosis rather than converting Host protocol/cancellation/cleanup failures into successful empty catalogs.
  • Replace the settings diagnostic dump with per-Agent switches, short status and expandable details. Antigravity uses the documented native CLI installation plan and the same explicit-confirmation flow as other installable runtimes; no hard-coded GUI-only exception remains.
  • Remove redundant full deployment/package validation from UI connection preflight: metadata checks source existence, and the adopted runtime remains the authority for UI identity and actual bindings. Separate ordinary UI catalog reads from explicit Root refresh, keep refresh on registry reconnect/retry, and wait for changed UI bindings before recapturing public endpoints. Remove the temporary feat(settings): add external agent setup UI #6628 readiness diagnostics.

Antigravity CLI follow-up

Backport OAR #620 to the exact OAR 0.86.0 npm package through the existing patch-package --error-on-fail path. Discover official agy on PATH or in ~/.local/bin, launch agy acp for model discovery and sessions, retain legacy standalone-server launch paths, and use Google's documented CLI installer plan. No OAR/Deno pin or shared ACP-kernel upgrade is included. JavaScript, declarations and maps are kept consistent; LICENSE and patch provenance/removal instructions are recorded.

The UI now delegates Antigravity plan/install to the existing capability-based controls. Viewing/cancelling a plan never installs; installation still requires explicit confirmation. Native agy login remains outside Maka, with no credential copying or login shim. The CI routing regression includes the dependency patch and new bundle fixture.

Verification

  • Worker, dependency-patch/product-bundle and CI input-routing tests: 39/39. The new Antigravity regressions fail on the unpatched package; all exact-version patches apply successfully to a clean OAR runtime directory.
  • Related native/API OAR behavior tests: 24/24, including cancellation, cleanup, attachments and history handoff.
  • API opt-in/metadata and client UI-binding boundary tests: 3/3, including nonexistent source, missing/non-UI consumer, and original mutation receipt recovery.
  • Real Host + NSH AppView input workflows: 3/3 with the original parallelism and timeouts. Exercises default-off/no probes, independent switches and consent cancellation, Claude model discovery failure with native/Codex still selectable, vendor effort, folded diagnostics, Antigravity plan/cancel/explicit install and refresh, explicit installation and original-receipt recovery without reinstalling.
PASS [31.714s] external_agents_ui_recovers_the_original_install_receipt_without_reinstalling
PASS [42.758s] external_agents_ui_installation_requires_a_plan_and_explicit_confirmation
PASS [76.407s] external_agents_ui_consent_updates_both_sources_and_preserves_native_selection
Summary: 3 passed

SDK declarations, the full contracts suite (including the independent UI TypeScript project), changed-file Biome formatting, cargo fmt --all -- --check, git diff --check and the whole-checkout ASF-header audit pass locally.

Real installed CLI validation: using local agy 1.5.0 and its native stored account, the patched Maka OAR 0.86.0 product bundle returns Gemini 4 Argon / Gemini 3.8 Flash and the default model's effort menu. An explicit gemini-4-argon / low execution returns ACK; a new worker resumes the exact native session id and returns the previously remembered codeword. Both workers exit 0 after output acknowledgement and cleanup. This is the production bundle under Node with a scripted IPC acknowledgement harness, not a new full Host+controlled-denort end-to-end claim. The upstream adapter also passed real two-turn / dispose / resume validation.

No desktop capture/automation or real vendor installer/login was used. No controlled-runtime rebuild, dependency/pin upgrade, or additional platform license review is included. macOS results do not establish Linux/Windows CI success.

Migration

External Agents that were implicitly available under the old all-or-nothing switch now remain off until the user selects each one. Existing worker launch settings and native vendor accounts are retained. This does not broaden ordinary plugin, Code Mode or Computer Use permissions.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Maka implemented the change and tests; GPT-6-Astra high provided independent design/debugging advice. Material AI-authored commits carry Generated-by: Maka.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

Isolate vendor discovery failures, simplify external Agent settings, and remove redundant UI source loads while preserving binding and receipt ownership.

Generated-by: Maka
Apply the OAR adapter fix to the exact 0.86.0 dependency and remove the GUI-only settings exception. Verify the patched product bundle and native CLI resume path.

Generated-by: Maka
@M4n5ter
M4n5ter merged commit c00ee99 into rust-preview Nov 4, 2026
@M4n5ter
M4n5ter deleted the fix/isolate-external-model-discovery branch November 4, 2026 14:58
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