You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow Rules to match raw successful path-associated LSP results while binding every result exclusively to the file that was queried.
Acceptance criteria
Every supported LSP operation returning path-associated text contributes its raw successful result for the queried path, including no-results responses.
Paths and URIs mentioned within an LSP result remain content and never create unrelated File observations.
Combined path and content conditions are satisfied only by the queried file observation.
Failed LSP operations contribute no File observation.
Acceptance coverage exercises every host-supported LSP operation category through the server hook surface.
Every supported operation (goToDefinition, findReferences, hover, documentSymbol, workspaceSymbol, goToImplementation, prepareCallHierarchy, incomingCalls, outgoingCalls) contributes its raw successful result for the queried path, including no-results responses: parameterized hook-level coverage in src/file-observation-lsp.integration.test.ts
Paths/URIs inside a result stay content and never create unrelated observations; combined path+content conditions are satisfied only by the queried file: src/file-observation-lsp.integration.test.ts (queried-path correlation test)
Failed LSP operations contribute nothing (OpenCode invokes tool.execute.after only after a successful execute, verified against v1.18.23 packages/opencode/src/session/tools.ts)
Acceptance coverage exercises every host-supported operation category through the real server hook surface with a mocked OpenCode client.
Activity
frap129 commentedon Aug 30, 2026
Implemented in 1d4504d.
src/file-observation-lsp.integration.test.tssrc/file-observation-lsp.integration.test.ts(queried-path correlation test)packages/opencode/src/session/tools.ts)