Skip to content

Commit bd1190b

Browse files
fix: name the writer's session on the memory_operation row too
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_011AhtJPr3nmT1Po92ZQk4VE
1 parent bff3931 commit bd1190b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/opencode/src/memory/store.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ export namespace MemoryStore {
312312
Telemetry.track({
313313
type: "memory_operation",
314314
timestamp: Date.now(),
315-
session_id: Telemetry.getContext().sessionId,
315+
// altimate_change — the writing session when the caller passed it, else the context's
316+
session_id: opts.sessionID ?? Telemetry.getContext().sessionId,
316317
operation: "write",
317318
scope: block.scope,
318319
block_id: block.id,

0 commit comments

Comments
 (0)