fix(tui): add null guards for lsp and mcp state data#20444
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
3508458 to
3d53271
Compare
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Note on the initial typecheck failureThe first typecheck run failed with The |
d6555ac to
fb4cc9a
Compare
Final Local Verification & A/B Test ResultsI have conducted a series of controlled tests on Windows 11 with
Key Findings:
All CI checks are green. Ready for review/merge. |
|
Hi @kommander and @Hona, hope you're doing well! I noticed you've both been actively reviewing TUI-related changes recently. This PR adds a few null guards to \sync.data.lsp\ and \sync.data.mcp\ in the TUI status dialog and footer to prevent a crash during service initialization. It's a small, low-risk fix (+11/-11 lines) and all CI checks are green. I know the PR queue is quite busy right now, so no rush at all—just wanted to gently bump it in case it slipped through the cracks. Thanks for all your hard work on the project! |
Prevents crash when sidebar renders LSP/MCP panels before services are initialized. sync.data.lsp and sync.data.mcp can be undefined during initial load, causing TypeError on .map() and Object.entries(). Fixes crash: 'undefined is not an object (evaluating sync8.data.lsp.map)'
fb4cc9a to
e597025
Compare
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Closed as the fix has been implemented in v1.4.7 via other PRs (#22099, #22206). Thanks for the initial report!