Raju Dandigam describes a deliberately lost server response in his DEV article Recover a WebMCP Update After Its Response Disappears. In the Trip Workbench demo, a scripted browser test changed a synthetic trip's destination from JFK to BOS. The database saved the change, while the editor still displayed JFK because the test harness hid the successful response.
Recover the command by its ID
The update includes the draft revision that the caller expects to edit and an ID for the command itself. The revision lets the server detect that a caller started with stale data. The command ID gives the client a way to look up the outcome of the particular write after dispatch.
The harness also hid the stored receipt temporarily. During that interval, Trip Workbench reported an unknown outcome and retained the command ID. Once the receipt became available, an authorized lookup confirmed that the original update had advanced the saved draft from revision two to revision three. The browser sent a single PATCH, and the test found one matching receipt.
Keep edits made during the wait
While the receipt was hidden, the test edited the trip's purpose locally. Recovery had to show the newly saved destination and preserve that newer edit with an unsaved indicator. The editor kept the saved and local snapshots from dispatch time, which let it tell that the change to the purpose came later. The database still contained the previously saved purpose.
The test checked the tool result, the visible form, and the database. Each answered a different question about the same event. The tool showed what the client learned from the receipt, the form showed whether the newer edit survived, and the database showed what had actually committed. The request count checked whether recovery issued another write.
A later Trip Workbench commit bounded receipt lookups and added a separate recheck path for an uncertain submission. For an editor with similar behavior, what should the user see if the receipt lookup itself times out while there are unsaved edits?