BGS lets the only human of a game against bots take back their last saved
move (protocol 0.10.0). The board toolbar's undo slot shows an "Undo my
move" control while BGS reports it available and the current turn has no
unsaved moves (those keep the in-turn undo); it stays hidden for spectators,
in analysis, during replays and in lessons. Clicking it asks BGS to undo,
which then sends the earlier state: going back in history discards the
local selection, bid drafts and confirmations.
The dev app mimics BGS's undo against its AI players. Also fixes the import
order that failed the prettier check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Use shared BGS viewer and chat protocol
* Use shared chat panel with Container styling
* Update shared chat visibility and show date separators
* Keep typing after completing a chat mention
- Game.vue keeps turnMoves (the current turn's atomic moves) alongside the
last committed state; every action emits the FULL buffer as the move
payload, and the local preview replays the buffer with fake engine moves
- undo pops the buffer: re-emits the shortened turn if non-empty, or just
resets the preview to the committed state with no server call (nothing was
ever persisted for the turn)
- the buffer is cleared whenever a committed state (newTurn !== false)
arrives from the platform, or when a local move completes the turn
- undo button availability = non-empty buffer (the Undo engine move is gone)
- launch.ts feeds the state embedded in move responses (logSlice().state) to
the game — that's the only channel through which tentative states arrive —
and falls back to fetchState otherwise
- self-contained dev mode mimics the platform: replays the buffer from the
committed state and only persists committed results
- bump to 2.0.0 (pairs with container-engine 2.x)
The viewer no longer compiled (bitrot surfaced by vue 2.7 + typescript 4.9 +
pnpm 11 strict hoisting):
- delete shims-tsx.d.ts: vue 2.7 ships its own JSX typings, ours duplicated
the IntrinsicElements index signature
- type UIData.dragged structurally (Vue & { pieceType, pieceId }) instead of
using a .vue module import as a type, which TS 4.9 rejects
- add csstype (vue's types import it; no longer hoisted) and @types/node +
'node' in tsconfig types (self-contained.ts uses process.env)