Repository navigation
Keep Cloud focus lookup indexed - #16348
teamleaderleo wants to merge 2 commits into
Conversation
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (3)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesWorkspace lookup
CLI poll interval tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No material behavior issue is established in the workspace lookup or poll-interval test changes; the PR appears ready to merge. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
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. Comment |
Dogfood tours of
|
CI failure attributionCI failed on
Matched log linesNot re-run automatically: Written by |
…ompiles Co-authored-by: Austin Wang <austinwang115@gmail.com>
|
Follow-up The pure interval-policy assertions now live in |
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
Problem
Cloud pointer and input focus convergence repeatedly resolves the owning workspace on the terminal event path. The resolver then scans the manager's full workspace array, adding avoidable latency as a window accumulates workspaces and making the visible focus ring more likely to lag behind the pane receiving input.
Fix
Use
TabManager.workspacesByIdfor the final ownership lookup. The index is maintained whenever the workspace collection changes, so Cloud focus convergence remains constant time while retaining the existing ownership and retired-workspace checks.Follow-up to #16271.
Validation
git diff --checkpython3 scripts/verify-local.py --swift-changed(16/16 selected checks passed; native checks skipped on the MacBook Air)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Uses the maintained
workspacesByIdindex for cloud pointer and input focus ownership lookup instead of scanning the full workspace array, keeping focus convergence constant time as a window accumulates workspaces. Also moves thevmReadyPollIntervaloverride test into the CLI target, where the CLI type lives, socmuxTestscompiles.Written for commit 0990d11. Summary will update on new commits.
Summary by CodeRabbit
Performance
Tests