Fluxer and Vesktop voice sources, animated avatars, device and OSD reconnects #6

Merged
charles merged 3 commits from device-reconnect into main 2026-11-12 06:01:14 +00:00
Owner
  • daemon: keep retrying the device after a failed reopen.
  • osd: re-pin the on-screen pills when the target monitor disappears and comes back (OLED deep sleep / DPMS off).
  • voice:
    • read Fluxer's local status API (token from Fluxer's settings.json; stable, canary and flatpak builds). Read-only, so no per-user volume/mute for Fluxer.
    • add the MiraboxVoice Vesktop plugin, which serves the voice channel over $XDG_RUNTIME_DIR/vesktop-voice-ipc. No OAuth needed.
    • try both sources before the official client and switch to whichever one has you in a voice channel.
    • play animated (GIF/WebP) avatars on the tiles of people who are speaking, in panel mode.

Voice, Fluxer and Discord-protocol unit tests pass (20). miraboxd, the OSD and the mixer build; the SDK's img_processer target still fails against the installed OpenCV (cv::getRotationMatrix2D), which this PR doesn't touch.

🤖 Generated with Claude Code

- **daemon:** keep retrying the device after a failed reopen. - **osd:** re-pin the on-screen pills when the target monitor disappears and comes back (OLED deep sleep / DPMS off). - **voice:** - read Fluxer's local status API (token from Fluxer's `settings.json`; stable, canary and flatpak builds). Read-only, so no per-user volume/mute for Fluxer. - add the MiraboxVoice Vesktop plugin, which serves the voice channel over `$XDG_RUNTIME_DIR/vesktop-voice-ipc`. No OAuth needed. - try both sources before the official client and switch to whichever one has you in a voice channel. - play animated (GIF/WebP) avatars on the tiles of people who are speaking, in panel mode. Voice, Fluxer and Discord-protocol unit tests pass (20). `miraboxd`, the OSD and the mixer build; the SDK's `img_processer` target still fails against the installed OpenCV (`cv::getRotationMatrix2D`), which this PR doesn't touch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A frame push (the visualizer pushes constantly) that hit a vanished
device called reopen(), which failed while the Mirabox was still gone
and left deviceLost_ false. With no handle the heartbeat no-ops and the
read loop isn't running, so the reconnect watchdog never retried and
the daemon ran deviceless until restarted.

- reopen() flags the device lost when open() fails, so the watchdog
  keeps retrying.
- New OpenDevice::stillPresent(): the hidraw node we opened still
  exists, has the same inode/rdev, and is still VID 0x5548. The
  watchdog polls it to catch handles that went stale without erroring
  (and the no-handle case).
- open() verifies the node it just opened is really the Mirabox:
  hidraw minors are recycled immediately, so while the device flaps on
  a hub an enumerated path can name another device by open time.
- Log reconnects from reopen() itself, so push-triggered ones show too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An OLED's deep sleep / DPMS-off unplugs the output; the layer surfaces stayed
bound to the dead output and never showed again. Re-create them on the
matching (or primary) screen on screenAdded/screenRemoved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fluxer: read its local status API (token-protected WebSocket on 127.0.0.1,
  token read from Fluxer's settings.json, stable/canary/flatpak) and map the
  full-state pushes onto the voice roster. Read-only, so no per-user
  volume/mute for Fluxer.
- Vesktop: MiraboxVoice plugin exposing the voice channel over
  $XDG_RUNTIME_DIR/vesktop-voice-ipc with Discord RPC framing, no OAuth.
- The daemon tries both no-OAuth sources before the official client and
  rotates to whichever has you in a voice channel.
- Avatars: fetch animated GIF/WebP avatars (and Fluxer's own avatar URLs),
  play them on speaking members' tiles in panel mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/mirabox-application!6
No description provided.