Loading a world clears cards left from the last one (t11)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -374,7 +374,7 @@ Saves in IndexedDB, world files (export / import) and the blueprint library.
|
||||
- functions: newWorldId, worldWrite, listWorlds, putWorldEntry, worldNewest, deleteWorld, renameWorld, migrateWorlds, saveWorld, newestSave, b64FromBytes, bytesFromB64, gz, exportWorld, importWorldFile, libLoad, libSave, bpEncode, bpValid, bpDecode
|
||||
- variables: DB, worldIdTime, worldIdCounter, worldWrites
|
||||
|
||||
### src/ui/session.js (122 lines)
|
||||
### src/ui/session.js (125 lines)
|
||||
Starting, loading and quitting a game; modal dialogs; the pause menu.
|
||||
- functions: showLoading, enterGame, startNewWorld, startFromSave, quitToTitle, refreshContinue, anyModal, openModal, closeModal, closeAllModals, topModal, dialog, openPause, renderWorlds
|
||||
|
||||
|
||||
@@ -4,6 +4,16 @@ What agents have done, newest first. Add an entry for every piece of work: the d
|
||||
note or request it was for, what changed, the files touched, the tests run, and anything left
|
||||
open or not verified. Keep each entry short; the git history has the details.
|
||||
|
||||
## 2026-10-24: t11 Welcome and first milestone shown again on an older world (Claude Code, Codex)
|
||||
|
||||
- Cause: nothing cleared the discovery cards (`#cards`) when a world was entered, so a new
|
||||
world's Welcome and milestone cards stayed up after loading an older world.
|
||||
- `src/ui/session.js`: `enterGame` clears the cards, floaters, particles and the status line;
|
||||
a new world still shows its Welcome card afterwards.
|
||||
- `test/play.py`: a new world shows Welcome; loading a world from the list shows no cards.
|
||||
- Tests: `run_all.py --browser` passes (153 `play.py` checks). `t_smooth`'s half-resolution
|
||||
check flaked (passed and failed on reruns, with and without this change; the machine was busy).
|
||||
|
||||
## 2026-10-24: the to-do list moved from NOTES.md to a kandown board (Claude Code)
|
||||
|
||||
Request: initialize kandown (https://kandown.dev, 0.52.0) for the project, move all the notes
|
||||
|
||||
Reference in New Issue
Block a user