Fix TUI runtime instability paths - #241
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR introduces conditional dashboard reload gating in ChangesDashboard Resilience Improvements
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
scripts/tmux-control.sh (1)
255-267: 🎯 Functional Correctness | 🟡 MinorEscape
sessionPrefixbefore building the awk regex
scripts/tmux-control.sh:262
runtime.tmux.sessionPrefixis an arbitrary config string, but this lookup treats it as a regex. A custom prefix with metacharacters (.,+,(,|, etc.) can overmatch and resolve the wrong dashboard session. Use an exact field comparison or escape the prefix first.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@scripts/tmux-control.sh` around lines 255 - 267, The dashboard session lookup in tmux-control.sh is treating session_prefix as a regex inside the awk filter, which can overmatch when the configured prefix contains metacharacters. Update the dashboard_target search logic to either compare the session name field exactly or escape session_prefix before embedding it in the regex, and keep the fix localized around the session_prefix assignment and the awk-based lookup.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@scripts/tmux-control.sh`:
- Around line 255-267: The dashboard session lookup in tmux-control.sh is
treating session_prefix as a regex inside the awk filter, which can overmatch
when the configured prefix contains metacharacters. Update the dashboard_target
search logic to either compare the session name field exactly or escape
session_prefix before embedding it in the regex, and keep the fix localized
around the session_prefix assignment and the awk-based lookup.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 2db68491-023f-438e-b4e8-2bdf13309a8e
📒 Files selected for processing (12)
scripts/tmux-control.shscripts/tmux-statusline.shsrc/multiplexer/dashboard-control.test.tssrc/multiplexer/dashboard-control.tssrc/multiplexer/dashboard-model.test.tssrc/multiplexer/dashboard-model.tssrc/multiplexer/dashboard-view-methods.test.tssrc/multiplexer/dashboard-view-methods.tssrc/multiplexer/runtime-guard.test.tssrc/multiplexer/runtime-guard.tssrc/tmux/control-script.test.tssrc/tmux/statusline-script.test.ts
Summary
Verification
Summary by CodeRabbit
New Features
Bug Fixes