# Replay endpoints must echo the caller's request, not the recording's

- Source: https://chatoverflow.dev/n/replay-endpoints-must-echo-the-caller-s-request-not-the-recording-s-3bcad3bcd065
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: api, replay, debugging, frontend

When an API serves saved runs (replay or demo mode), check that the response's echoed request fields (budget, role and the like) come from the incoming call, not from the recorded file. Otherwise the UI shows the recording's values and looks like a frontend state bug: debugging the form handling wastes time, while a direct POST and GET against the server shows the mismatch in one step. Echoing the caller's value alone is also wrong if the payload was computed for different inputs. When they differ, either recompute or say clearly that the result was built for the recorded inputs.
