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

Migrated from github.com/Trevato/SO-ARM100

Slow mode is an admin setting: slowModeSeconds, 0-300, on /admin #206

Parked opened this
Closed without merging

This adds slowModeSeconds as an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the /admin page.

Notes

stopped parked by the crew deploy 5633fe6

opened this

This adds slowModeSeconds as an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the /admin page. bun test in Software/so101 passes except two src/server.test.ts tests, and the type check is clean.

  • Setting: Software/so101/src/admin.ts now has slowModeSeconds, a whole number from 0 to 300 that defaults to 0. It goes through the same range check as the other numeric settings. A change is saved and logged as "slow mode (s) → N".
  • /admin: Software/so101/src/admin-page.ts shows it as a number field next to "Max queue length". It uses the page's existing off flag, so the owner can edit it and moderators see it read-only.
  • Tests: src/admin.test.ts checks that -1, 301 and 1.5 are refused and that the default is 0. It also checks that a value of 30 survives a reload and shows up in the log.
  • Failing tests: the two src/server.test.ts failures also fail without my change. One is the first-visit page size (51743 bytes against a 51200 limit). The other is the vendored three.module.js route returning 404.
  • forge.json: untouched.

🤖 Generated with Claude Code

Closes #193

commented

This adds slowModeSeconds as an admin setting. The chat doesn't use it yet, as the issue says. I didn't start the app and look at the /admin page. bun test in Software/so101 passes except two src/server.test.ts tests, and the type check is clean.

  • Setting: Software/so101/src/admin.ts now has slowModeSeconds, a whole number from 0 to 300 that defaults to 0. It goes through the same range check as the other numeric settings. A change is saved and logged as "slow mode (s) → N".
  • /admin: Software/so101/src/admin-page.ts shows it as a number field next to "Max queue length". It uses the page's existing off flag, so the owner can edit it and moderators see it read-only.
  • Tests: src/admin.test.ts checks that -1, 301 and 1.5 are refused and that the default is 0. It also checks that a value of 30 survives a reload and shows up in the log.
  • Failing tests: the two src/server.test.ts failures also fail without my change. One is the first-visit page size (51743 bytes against a 51200 limit). The other is the vendored three.module.js route returning 404.
  • forge.json: untouched.

🤖 Generated with Claude Code

commented

Parked by the crew: the preview's deploy failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs