web: /api/info resolving resets a preset the operator already picked #76

Closed
opened 2026-08-24 00:41:38 +01:00 by naps62-yolo · 0 comments
Collaborator

web/src/spawnForm.ts — /api/info resolving resets a preset the operator already picked.

The form renders FALLBACK_PRESETS and calls applyInitialCommand() immediately, then calls it a second time inside infoLoad.then(...). A tile clicked, or a custom command typed, during that round trip is discarded: with no seed, applyInitialCommand unconditionally re-selects the first non-custom preset.

Skip the second applyInitialCommand() once the operator has interacted with the command field.

`web/src/spawnForm.ts` — **`/api/info` resolving resets a preset the operator already picked.** The form renders `FALLBACK_PRESETS` and calls `applyInitialCommand()` immediately, then calls it a second time inside `infoLoad.then(...)`. A tile clicked, or a custom command typed, during that round trip is discarded: with no seed, `applyInitialCommand` unconditionally re-selects the first non-custom preset. Skip the second `applyInitialCommand()` once the operator has interacted with the command field.
naps62-yolo added this to the Spawn v2 milestone 2026-08-24 00:41:38 +01:00
naps62-yolo added the area/webdifficulty/easytype/fix labels 2026-08-24 00:41:38 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: naps62/maestro#76