From 81e8e79b99309abef2ee64ae4bb25c2ed0209283 Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Sun, 17 May 2026 00:12:09 +0800 Subject: [PATCH] fix(ci): point op-host-desktop's agent dep at the vendor/agent submodule The dependency referenced a sibling working copy (../../../agent-rs) that only exists on a local dev machine, so cargo metadata failed in CI. vendor/agent is the same agent-rs repo as a git submodule (CI checks out submodules recursively) and is pinned to the identical commit, so the build is unchanged. --- crates/op-host-desktop/Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/op-host-desktop/Cargo.toml b/crates/op-host-desktop/Cargo.toml index 1c79417e6..388ee9ff5 100644 --- a/crates/op-host-desktop/Cargo.toml +++ b/crates/op-host-desktop/Cargo.toml @@ -89,10 +89,10 @@ glam = { version = "0.29", default-features = false, features = ["std"] } # Windows → %APPDATA%/openpencil/settings.json dirs = "5" # Cross-product Rust agent runtime — provides `QueryEngine` + the -# generic `Provider` trait + streaming `Event`s. Lives outside the -# openpencil workspace at /Users/kayshen/Workspace/ZSeven-W/agent-rs, -# referenced by relative path so the BuiltIn ChatProvider in -# `src/chat_runtime.rs` can drive a real LLM turn. +# generic `Provider` trait + streaming `Event`s. Vendored as the +# `vendor/agent` git submodule (the agent-rs repo) and referenced by +# relative path so the BuiltIn ChatProvider in `src/chat_runtime.rs` +# can drive a real LLM turn. The submodule keeps CI self-contained. # # Compiled with NO default features today — the `anthropic` feature # would drag in reqwest's TLS stack (rustls / icu / idna) which needs @@ -100,7 +100,7 @@ dirs = "5" # the trait + the engine wiring + `from_provider`; concrete # Provider impls (Anthropic / OpenAI-compat / Ollama) flip on once the # workspace rust-toolchain bumps. -agent = { path = "../../../agent-rs/crates/agent", default-features = false } +agent = { path = "../../vendor/agent/crates/agent", default-features = false } # Forked from bartolli/anthropic-agent-sdk — lives under # `vendor/anthropic-agent-sdk/` so OP owns the source and can diverge # from upstream. Provides the Claude Code CLI subprocess transport +