… words a move back whose reply is malformed
Two follow-ups to #3982, on the machine profile (a preview behind OVIS_PREVIEW=fleet):
- GET /api/session takes its cache-control from wordedHeaders(), the one source the profile's other worded answers
use: on the profile its 200 is no-store, as GET /api/machines already was; an ordinary server sends no
cache-control there, as before.
- A pane move whose move back gets a reply that is no answer (a malformed reply) is marked as a failed call, as a
refused one is. The profile answers it with the outcome sentence it gives a stranded pane, never stored. An
ordinary server answers as before.
Change
Refs #3982.
Two follow-ups to #3982, on the machine profile (a preview behind
OVIS_PREVIEW=fleet). Both were rated low inthat pull request's review and left out of it.
GET /api/sessionnow takes its headers fromwordedHeaders(), the one source the profile's other worded answersalready use. On the profile its 200 is
cache-control: no-store, asGET /api/machinesalready was for the samesnapshot (the snapshot's
restore_erroris in the profile's own sentence). An ordinary server sends nocache-control there, as before.
malformed reply). That failure is marked as a failed call, as a refused move is, and the profile answers it as it
answers a pane left in a tab of its own:
pane_not_moved, its outcome sentence,no-store. An ordinary serveranswers as before.
server/machine-profile.contract.test.tsgains the malformed-reply move (its answer on the profile is the same asfor a refused move back, no-store) and asserts
cache-controlon/api/sessionin the restore case, on theprofile and on an ordinary server.
Validation
server/dispatch.tsandserver/herdr/client.ts(bun test ./server/machine-profile.contract.test.ts -t "answers a pane move herdr did not make|tells a pane herdr could not restore"): 0 pass, 2 fail, each on the missingno-store.server/machine-profile.contract.test.tsandserver/herdr/client.test.ts, whole, on an isolated herdr testsession (
HERDR_TEST_MODE=integration): 119 pass, 0 fail, 1 skip (a Windows-only case).server/dispatch.test.ts: 14 pass, 0 fail.bun run typecheck: pass.bun run check fast: pass (unit: 17890 pass, 0 fail, 54 skip).