Dashboard › opencode › Distillation
42eaec46-42be-4395-a7a0-1b8fdfd24d2f["lore_tm_v1_VK5lSRs7ISrKEmp3ISgw1nzKkxoq6MEghOFXaWTnlVU"]
/home/byk/Code/opencode-lore-v2/packages/opencode/test/server.test.ts contains 6 Vitest tests for the V2 server plugin.plugin.id === "lore", plugin.setup is a function, the legacy ../src/index exports exactly ["LorePlugin", "default"], and legacy.default === legacy.LorePlugin.acquireServerRuntime is called with project root "/workspace/project" rather than nested location "/workspace/project/nested".lore-distill with description "Lore memory distillation worker"; 2. lore-curator with description "Lore knowledge curator worker"; 3. lore-query-expand with description "Lore query expansion worker"; all have mode: "subagent" and hidden: true."model.request" and "http.request" hooks are registered."model.request" test event has session ses_1, agent build, provider openai, existing header authorization: "Bearer provider", and initial base URL https://api.openai.com/v1; the hook looks up { sessionID: "ses_1" }, passes sessionID: "ses_1", parentID: "ses_parent", agent: "build", and providerID: "openai" to buildServerHeaders, preserves the authorization header, adds x-lore-session-id: "ses_1", and changes the base URL to http://127.0.0.1:3207/v1."http.request" test starts with a POST Request to https://api.openai.com/v1/chat/completions with body "{}"; it verifies rewriteRequest(original, "http://127.0.0.1:3207", {}) is called and the event request becomes http://127.0.0.1:3207/v1/chat/completions.release exactly once."registration failed" and disposal error "dispose failed"; setup preserves and rejects with the original "registration failed" error while attempting to dispose the single prior registration once and releasing the runtime once.session.get with "unavailable" and verifies routing continues: buildServerHeaders receives no parentID, while the event still receives x-lore-session-id: "ses_1"./workspace/a/nested rooted at /workspace/a with Git remote github.com/example/a, and /workspace/b/nested rooted at /workspace/b with Git remote github.com/example/b; both use gateway http://127.0.0.1:3207 but have independent runtime release functions./workspace/a scope calls only its own release function; the still-open /workspace/b scope continues handling a "model.request" for session ses_b and passes a runtime with projectPath: "/workspace/b" to buildServerHeaders, after which closing it calls its own release once.release is called exactly once.