[claude] fix: Workshop connection HUD with timeout and retry (#5) #10

Merged
claude merged 1 commits from claude/issue-5 into main 2026-03-22 22:55:41 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
d4bbe157c2 fix: Workshop connection status HUD with timeout and retry
Fixes #5

The Workshop page was stuck on INITIALIZING forever because:
- main.js was never loaded (script tag was commented out)
- No WebSocket connection logic existed
- No status indicator or error handling

Changes:
- Add connection status HUD to world/index.html showing
  connection state (CONNECTING/ONLINE/OFFLINE) and agent count
- Implement WebSocket connection to tower-hermes with 5s timeout
- Auto-retry up to 3 times with 3s delay between attempts
- Show "OFFLINE — backend unreachable" with manual retry button
  when all auto-retries are exhausted
- Enable main.js module script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 18:54:59 -04:00