Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/effect-codex-app-server/src/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,18 @@ function normalizeLegacyInboundFrame(value: unknown): unknown {
}
normalized.params = params;
}
if (
normalized.method === "item/tool/requestUserInput" &&
typeof normalized.params === "object" &&
normalized.params !== null
) {
const params = { ...(normalized.params as Record<string, unknown>) };
// Codex treats a legacy request without `isBlocking` as blocking.
if (params.isBlocking === undefined) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes how replayed inbound requests are delivered, but the PR adds no focused test for it. Could you add a replay test with a legacy item/tool/requestUserInput frame that omits isBlocking, asserting the client receives true, and one with an explicit false to verify it remains unchanged?

Posted via Macroscope — Effect Service Conventions

params.isBlocking = true;
}
normalized.params = params;
}
return normalized;
}

Expand Down
Loading