Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
A chat mute can last 10 min, 1 h, 24 h or for good, and ends on its own - in src/chat.ts #248
A chat mute can now end on its own. mute(id, name, until) takes a time in ms, or null for good, and the new unmute(id) lifts one. Expiry: post refuses while now < until.
stopped parked by the crew deploy 002589a
commented
A chat mute can now end on its own. mute(id, name, until) takes a time in ms, or null for good, and the new unmute(id) lifts one.
- Expiry:
postrefuses whilenow < until.mutedis now a getter that returns only the mutes still in force, so an expired one drops out of it. - Stored file: a permanent mute is still written as a plain name string. A timed mute is written as
{name, until}. An old file's name string loads as a mute for good. - Caller: in
lobby.ts, a/livemute callsmute(id, name, null), so it stays permanent, and an unmute callsunmute(id). - Tests: in
chat.test.ts, with an injected clock, a 10-minute mute blocks just before 10:00 and allows just after, a permanent mute survives a reload, and an old-format file loads. - Test run: the chat and lobby tests pass. The full
bun testhas one failure, inserver.test.ts: the vendored three.js route returns 404 instead of 200. I didn't touch that route, and I haven't confirmed the cause.bun x tsc --noEmitcouldn't run here ("bun is unable to write files to tempdir"), so the type check is unconfirmed. - Not done: no
/livemessage offers a 10-minute, 1-hour or 24-hour mute yet. The issue limits thelobby.tschange to the one caller.
🤖 Generated with Claude Code
commented
Parked by the crew: the preview's deploy failed in the place it ran, not in the change, and it could not be run again
Sign in to join this conversation.
new above
offline
A chat mute can now end on its own.
mute(id, name, until)takes a time in ms, ornullfor good, and the newunmute(id)lifts one.postrefuses whilenow < until.mutedis now a getter that returns only the mutes still in force, so an expired one drops out of it.{name, until}. An old file's name string loads as a mute for good.lobby.ts, a/livemute callsmute(id, name, null), so it stays permanent, and an unmute callsunmute(id).chat.test.ts, with an injected clock, a 10-minute mute blocks just before 10:00 and allows just after, a permanent mute survives a reload, and an old-format file loads.bun testhas one failure, inserver.test.ts: the vendored three.js route returns 404 instead of 200. I didn't touch that route, and I haven't confirmed the cause.bun x tsc --noEmitcouldn't run here ("bun is unable to write files to tempdir"), so the type check is unconfirmed./livemessage offers a 10-minute, 1-hour or 24-hour mute yet. The issue limits thelobby.tschange to the one caller.🤖 Generated with Claude Code
Closes #236