fix(setup): honor active client configuration and skill roots (#1504)
* refactor(setup): resolve skill destinations per client * fix(setup): honor active client configuration and skill roots * fix(setup): validate effective client scopes and Gemini trust * fix(setup): treat empty OpenCode overrides as unset An empty OPENCODE_CONFIG_DIR now stays on the XDG directory, and doctor and setup inspect global OpenCode files when a custom directory is absent. Uninstall reports one status per client so a missing earlier layer does not hide a removed registration. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
@@ -38,9 +38,9 @@ describe("OMP configuration paths", () => {
|
||||
expect(ompPath({ PI_CODING_AGENT_DIR: "/custom/agent" })?.configPath).toBe(
|
||||
"/custom/agent/mcp.json",
|
||||
);
|
||||
// A relative override names a different file in every working directory.
|
||||
// Match OMP by resolving the override against the caller working directory.
|
||||
expect(ompPath({ PI_CODING_AGENT_DIR: "agent" })?.configPath).toBe(
|
||||
"/home/a/.omp/agent/mcp.json",
|
||||
resolve("agent", "mcp.json"),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user