Skip to content

Commit 11147fa

Browse files
test(e2e): Pi queued tool drop now materializes as truncated skeleton
The skeleton-drop change keeps recent tool pairs as [truncated] skeletons instead of fully removing them; this Pi test still asserted the old full-drop sentinel. Pairing-intact remains the asserted invariant — now via the surviving skeleton. Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>
1 parent 1932f3a commit 11147fa

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/e2e-tests/tests/pi-cache-stability.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,13 @@ describe("pi cache stability", () => {
416416

417417
const body = JSON.stringify(h.mock.lastRequest()!.body);
418418
expect(body).toContain(callId);
419-
expect(body).toContain("__magic_context_dropped__");
420-
expect(body).toContain(`[dropped §${toolTag}§]`);
419+
// The tool call is within the newest-20 skeleton window, so the
420+
// drop materializes as a truncated skeleton: tool_use survives
421+
// with its input replaced and the paired result truncated —
422+
// pairing stays intact instead of the pair being fully removed.
423+
expect(body).toContain("__magic_context_replacement__");
424+
expect(body).toContain("[truncated]");
425+
expect(body).not.toContain("__magic_context_dropped__");
421426

422427
const occurrences = body.split(callId).length - 1;
423428
expect(occurrences).toBeGreaterThanOrEqual(2);

0 commit comments

Comments
 (0)