Skip to content

Commit a80cfe4

Browse files
test: reset the telemetry context after the tool-call suite
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_011AhtJPr3nmT1Po92ZQk4VE
1 parent 7ad35e1 commit a80cfe4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/opencode/test/altimate/workspace/tool-call-telemetry.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ describe("workspace integration tool calls", () => {
1717
spy.mockRestore()
1818
Telemetry.endSession("s1")
1919
Telemetry.endSession("s0")
20+
// The singleton context is process-wide: left at s1/42 it would stamp a later suite's
21+
// session-less rows.
22+
Telemetry.setContext({ sessionId: "", projectId: "" })
2023
})
2124

2225
const call = (clientName: string, outcome: "success" | "error", error?: unknown) =>

0 commit comments

Comments
 (0)