Repository navigation
Keep Cloud focus lookup indexed - #17995
azooz2003-bit wants to merge 2 commits into
Conversation
…ompiles Co-authored-by: Austin Wang <austinwang115@gmail.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (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. Comment |
|
Note Pull Request opener @azooz2003-bit is not an author or co-author of any commit in this PR (commit identities: All contributors have signed the CLA ✍️ ✅ |
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
Migrated from #16348 after correcting the PR author identity. The original head commit 0990d11 is preserved.