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

Migrated from github.com/Trevato/SO-ARM100

workbenchthis machine

Watch anonymously, sign in to drive: one driver at a time, a visible queue, and a chat beside the arm #5

shipped merged opened this has it

Landed in pull #6 · run

opened this

Owner, 2026-10-20: "i want anon users to be able to view but users should have to sign in to take control. only one person allowed at a time. a queue will form. users should be able to see this. also include a chat."

Forge facts: the proxy passes a signed-in visitor as a signed x-forge-identity header (+ x-forge-signature; src/apps/proxy.ts:287) - verify the signature, never trust the header alone; /__forge/signin sends a visitor to sign in and back (:551). Anonymous visitors get no identity. Today the production app answers anonymous visitors 404 (private); anonymous viewing needs the app public - the steward will ask the owner to flip it once this lands.

Done:

  1. Anyone can watch: the 3D arm, its live pose and the camera, read-only. No controls are active for anonymous viewers; a "Sign in to take control" button goes to /__forge/signin.
  2. Signed in: "Take control" joins the queue. Exactly one driver at a time, decided on the server (not the browser). The driver gets a turn (e.g. 3 min, shown as a countdown) and can hand back early; idle 30 s ends the turn; a dropped connection ends it after 10 s.
  3. The queue is visible to everyone, live: who is driving (name), who is next, each place and the estimated wait; your own place highlighted. Leave the queue any time.
  4. Commands from anyone but the current driver are refused on the server.
  5. Chat beside the view: everyone can read; signed-in users can post (name shown); rate limit (e.g. 1 msg / 2 s), 500 chars, last 200 messages kept; the app owner can delete a message and mute a user; driver changes are posted as system lines.
  6. All live over one WebSocket - no polling.
  7. Owner overrides: the app owner can always take control (jumps the queue) and can end anyone's turn.
  8. Tests: two signed-in clients - only one drives, the other queues and takes over on hand-back/idle; anonymous commands refused; forged identity header refused; chat rate limit holds. Works with the simulated arm now and the real one once arm#3 lands.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs