Skip to content

fix(tui): add hybrid polling safety net to HUD bridge (#1204)#1208

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

fix(tui): add hybrid polling safety net to HUD bridge (#1204)#1208
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775223770/pane-1

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Run polling alongside fs.watch simultaneously (hybrid mode) so silent watcher failures never stall HUD/TUI sync
  • Reduce default pollIntervalMs from 1000ms to 200ms for faster event detection
  • startPollingFallback accepts silent param — hybrid mode runs silently, explicit error logs warning
  • Tests use pollIntervalMs: 50 for environment independence

Test plan

  • All 8 HUD bridge tests pass (including new hybrid mode test)
  • Full workspace: 234 test files, 5822 tests passed
  • Type-check passes
  • Prettier/lint clean on changed files

Closes #1204

Run polling alongside fs.watch simultaneously so that silent watcher
failures (containers, restricted FS) never stall HUD/TUI sync.

- Default pollIntervalMs 1000 → 200 for faster detection
- startPollingFallback accepts silent param for hybrid mode
- fs.watch error handler only cleans up watcher (polling already active)
- Tests use pollIntervalMs:50 for environment independence
- New test verifies both watcher and poll are active in hybrid mode
@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:53pm

@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.

✅ Review complete — all comments addressed

Code Review:

  • Hybrid polling: startPollingFallback(true) called in start() alongside fs.watch — correct design
  • silent parameter prevents stderr noise in normal hybrid mode
  • Default pollIntervalMs 1000→200 — appropriate for HUD sync latency
  • Tests: pollIntervalMs: 50 for environment independence, new hybrid mode test
  • scheduleProcess() debounce + processChange() prev comparison prevents duplicate events
  • No unused imports, no dead code
  • CI: 25/25 checks pass

LGTM

@JeremyDev87 JeremyDev87 merged commit 08737f8 into master Apr 3, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775223770/pane-1 branch April 3, 2026 13:59
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(tui): HUD bridge hybrid polling — silent fs.watch failure safety net

1 participant