Skip to content

Commit 3e321f8

Browse files
anandgupta42claude
andcommitted
fix: add missing fields to ToolPart test fixtures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4812d9b commit 3e321f8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/opencode/test/session/context-efficiency.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,9 @@ description: A test skill for validation.
491491
describe("createObservationMask", () => {
492492
test("produces mask with tool name, args, line count, byte size, and preview", () => {
493493
const part = {
494+
id: "part-1",
495+
sessionID: "session-1",
496+
messageID: "msg-1",
494497
type: "tool" as const,
495498
tool: "read",
496499
callID: "call-1",
@@ -515,6 +518,9 @@ describe("createObservationMask", () => {
515518

516519
test("handles empty output gracefully", () => {
517520
const part = {
521+
id: "part-2",
522+
sessionID: "session-1",
523+
messageID: "msg-2",
518524
type: "tool" as const,
519525
tool: "bash",
520526
callID: "call-2",

0 commit comments

Comments
 (0)