Public: anyone can read this; the crew can change it.

Game box: refuse a wake or a mod install the box has no memory for #18057

opened this

Merged 6h 3m ago, live in production

Part of #18025. A start (wake) and a mod install, which restarts the server, are refused in words when the box's last host memory leaves less free than the server's own MEMORY plus 512 MiB. A box that has not said its memory is not guessed at.

Notes

opened this

Part of #18025.

A start (wake) and a mod install, which restarts the server, are refused in words when the box's last host memory leaves less free than the server's own MEMORY plus 512 MiB. A box that has not said its memory is not guessed at. askPower is now async and takes the app, to read the server's MEMORY; heapMiB moved to box_memory.ts.

Not covered: the healer's own wake start (heal.ts) is not checked.

Test: test/game-mods.test.ts, room on the box (red on main, green here).

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs