Skip to content

feat: Add pu watch — live terminal dashboard#108

Open
2witstudios wants to merge 1 commit intomainfrom
pu/feature-4
Open

feat: Add pu watch — live terminal dashboard#108
2witstudios wants to merge 1 commit intomainfrom
pu/feature-4

Conversation

@2witstudios
Copy link
Owner

Summary

  • Adds pu watch command — a live-updating terminal dashboard that shows all agents across all worktrees in real-time
  • Animated braille spinners for streaming agents, color-coded status (streaming/waiting/done/broken/suspended), elapsed time, and prompt previews
  • Summary bar with agent counts, auto-refresh every 800ms (configurable via --interval), clean Ctrl+C exit using alternate screen buffer

What it looks like

 pu watch 14:32:07

 3 agents  2 streaming  1 waiting  0 done  0 broken

 fix-auth pu/fix-auth Active
   ⠹ ag-abc12345   claude       streaming  2m14s    fix the authentication bug…
   ● ag-def67890   codex        waiting    45s      review the PR changes…

 Root agents
   ⠼ ag-ghi11111   claude       streaming  12m3s    monitor CI pipeline…

Implementation

  • crates/pu-cli/src/commands/watch.rs — polls daemon status, renders ANSI dashboard with owo-colors
  • Uses ctrlc crate for graceful Ctrl+C handling + alternate screen buffer (\x1b[?1049h)
  • 9 unit tests covering elapsed time formatting and agent counting logic
  • Zero clippy warnings, all 79 existing tests continue to pass

Test plan

  • cargo clippy --package pu-cli — 0 warnings
  • cargo test --package pu-cli — 79/79 pass
  • Manual: pu watch with active agents shows live dashboard
  • Manual: pu watch --interval 2000 refreshes at 2s intervals
  • Manual: Ctrl+C exits cleanly, restores terminal

🤖 Generated with Claude Code

Adds a real-time dashboard that polls the daemon and renders a continuously
updating view of all agents across all worktrees. Features animated spinners
for streaming agents, color-coded status indicators, elapsed time tracking,
prompt previews, and summary counts. Uses alternate screen buffer for clean
terminal restoration on Ctrl+C.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

Warning

Rate limit exceeded

@2witstudios has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 4 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2f8f9e47-1846-45a6-82bd-7a143bad5dca

📥 Commits

Reviewing files that changed from the base of the PR and between 55aa882 and 64f070d.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • crates/pu-cli/Cargo.toml
  • crates/pu-cli/src/commands/mod.rs
  • crates/pu-cli/src/commands/watch.rs
  • crates/pu-cli/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pu/feature-4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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