Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
chat.test.ts proves a timed mute survives a reload and still ends on time - test only #415
Sign in to join this conversation.
Replaces #256. Timed mutes are on main in 81fbc14:
Chat.mute(id, name, until)inSoftware/so101/src/chat.ts, with an end time or null for good. #256 asked for a newmuteUntilinstead, and builders kept leaving it because there was nothing to add. The one criterion still unproven is the reload of a timed mute: the existing test reloads only the permanent one.Done:
Software/so101/src/chat.test.ts, with an injected clock: a 10-minute mute is set, the Chat is rebuilt from the same file at 5 minutes and still refuses that person's line, and at 10:01 it accepts the line and the person is no longer inmuted.chat.tsso it passes, and say so in the pull. Otherwise only the test file changes.bun x tsc --noEmitandbun --cwd Software/so101 testpass.