fix(platform): preserve recoverable outcomes and terminal sessions

This commit is contained in:
2026-09-05 10:50:55 +08:00
parent 1e3a21b476
commit 8eae3258ca
16 changed files with 500 additions and 48 deletions
@@ -202,7 +202,7 @@ test('RuntimeSession room replacement keeps the old lease isolated until release
const staleDisposeResults: unknown[] = [];
const gameEntry: GameEntry = {
...entry(),
resolveSeatCount: (roomtype) => roomtype.length === 0 ? 4 : roomtype[0] as number,
resolveSeatCount: (roomtype) => roomtype[0] as number,
createModule: () => {
let host: GameHost | null = null;
return {
@@ -234,6 +234,7 @@ test('RuntimeSession room replacement keeps the old lease isolated until release
const runtime = new RuntimeSession({
store,
gameSession,
onServerDenial() { assert.fail('Unexpected server denial'); },
createGameHostLease: () => createGameHostAdapter({ gameEntry, store, commands, send }),
});
const login = fixture('player-login-room.json');