Skip to content

WIP: debug HUD overlay#242

Draft
delebedev wants to merge 8 commits intomainfrom
feat/debug-overlay
Draft

WIP: debug HUD overlay#242
delebedev wants to merge 8 commits intomainfrom
feat/debug-overlay

Conversation

@delebedev
Copy link
Owner

Summary

  • Standalone Electron overlay app that renders debug HUD on top of MTGA
  • Instance ID map panel (color-coded by zone) + server log panel (ring buffer, color by level)
  • SSE connection to debug API (:8090) with auto-reconnect
  • Native Swift window tracking — overlay follows MTGA left edge, hides when MTGA not visible
  • Cmd+Shift+D toggles click-through ↔ interactive mode (filter, scroll)
  • just overlay to launch

Status

WIP — needs manual testing of window tracking, cursor behavior, panel rendering during live game.

Test plan

  • Cold start (no MTGA): overlay hidden
  • MTGA visible: overlay appears on left edge
  • MTGA minimized: overlay hides
  • Server running: status bar shows phase/turn, logs stream
  • Match in progress: ID map populates
  • Cmd+Shift+D: interactive toggle works
  • Server restart: overlay reconnects

🤖 Generated with Claude Code

delebedev and others added 8 commits March 26, 2026 14:42
Minimal Electron app for the debug HUD overlay — transparent click-through
panel pinned to the right edge of screen, always-on-top.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds globalShortcut toggle (Cmd+Shift+D) to switch between click-through
and interactive mode. Interactive mode shows green border glow, disables
log auto-scroll, and enables ID map text filter input.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Swift CGWindowList helper (no accessibility permissions needed)
- Overlay tracks left edge of MTGA window, matches height
- Hidden when MTGA not on screen, appears when it is
- Fix cursor blink with setIgnoreMouseEvents forward: true

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link

Test Results

802 tests  ±0   174 ✅ ±0   2m 11s ⏱️ ±0s
113 suites ±0   628 💤 ±0 
113 files   ±0     0 ❌ ±0 

Results for commit 7d55af2. ± Comparison against base commit 5f7a1bd.

@github-actions
Copy link

CI Report — Gate

Tests: 174/174 passed (628 skipped)

Slow tests (>3s): 4
  • AiTurnNoAarTest.AI turn sends no ActionsAvailableReq to client (34.4s)
  • ActivatedAbilityPuzzleTest.Goblin Fireslinger tap-to-ping kills opponent (11.0s)
  • PvpBridgeEndToEndTest.two-player game: land, creature, turn rotation, per-seat visibility (7.3s)
  • DeclareBlockersDedupeTest.no duplicate blockers req (4.9s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant