Skip to content

Commit cf996bf

Browse files
fix: a pending task's context carries the turn's workspace; the warehouse failure row names the tool's session
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_011AhtJPr3nmT1Po92ZQk4VE
1 parent 3ce788b commit cf996bf

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/opencode/src/altimate/tools/warehouse-add.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ IMPORTANT: For private key file paths, always use "private_key_path" (not "priva
120120
Telemetry.track({
121121
type: "core_failure",
122122
timestamp: Date.now(),
123-
session_id: Telemetry.getContext().sessionId || "unknown-session",
123+
session_id: ctx.sessionID,
124124
workspace_id: ctx.workspaceId,
125125
tool_name: "warehouse_add",
126126
tool_category: "warehouse",

‎packages/opencode/src/session/prompt.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,10 @@ export namespace SessionPrompt {
10391039
sessionID: sessionID,
10401040
abort,
10411041
callID: part.callID,
1042+
// altimate_change start — the turn's workspace and token, for the task's own rows
1043+
workspaceId: boundWorkspace?.datamateId,
1044+
turn: telemetryTurn,
1045+
// altimate_change end
10421046
extra: { bypassAgentCheck: true },
10431047
// altimate_change start — fork MessageV2.WithParts ≡ core SessionV1.WithParts at the Tool.Context boundary
10441048
messages: msgs as unknown as Tool.Context["messages"],

0 commit comments

Comments
 (0)