Skip to content

fix(tui): add HUD bridge polling fallback and unify state path (#1198, #1199)#1202

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775221347/pane-3
Apr 3, 2026
Merged

fix(tui): add HUD bridge polling fallback and unify state path (#1198, #1199)#1202
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775221347/pane-3

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

Closes #1198
Closes #1199

Test plan

  • hud-file-bridge.spec.ts — new test verifies polling fallback triggers on watcher error (7/7 pass)
  • run-tui.spec.ts — 4 new tests for resolveHudStateDir priority order (12/12 pass)
  • Full test suite: 5813 tests passed
  • Typecheck, lint, prettier all clean

…#1199)

When fs.watch emits an error, HudFileBridge now falls back to polling
via setInterval + fs.stat instead of silently ignoring the failure.

Add CLAUDE_PLUGIN_DATA to HUD state dir resolution order so the TUI
reads from the same directory the plugin writes to:
1. CODINGBUDDY_HUD_STATE_DIR (explicit override)
2. CLAUDE_PLUGIN_DATA (plugin convention)
3. ~/.codingbuddy (default)

Closes #1198
Closes #1199
@JeremyDev87 JeremyDev87 added the fix label Apr 3, 2026
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 3, 2026 1:13pm

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Conductor Review — APPROVE

CI: 25/25 ALL PASS

Review: APPROVE — 0 issues

Plan Verification:

  • #1198: HUD file bridge polling fallback on fs.watch error
  • #1198: Test for polling fallback behavior
  • #1199: run-tui.ts resolveHudStateDir() respects CLAUDE_PLUGIN_DATA
  • #1199: Priority order: CODINGBUDDY_HUD_STATE_DIR > CLAUDE_PLUGIN_DATA > ~/.codingbuddy
  • #1199: Tests for all 3 resolution paths + priority

@JeremyDev87 JeremyDev87 self-assigned this Apr 3, 2026
@JeremyDev87 JeremyDev87 merged commit 3508ee4 into master Apr 3, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775221347/pane-3 branch April 3, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: unify HUD state file path between plugin and TUI fix(tui): add polling fallback when fs.watch fails in hud-file-bridge

1 participant