Repository navigation
Remove dead code, stale comments and low-value tests from the desktop app - #1119
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
PR Summary by QodoAudit and simplify desktop app code and tests
AI Description
Diagram
High-Level Assessment
Files changed (159)
|
Code Review by Qodo
1.
|
Qodo Fix Summary — Round 1Reviewed and addressed Qodo review issues: ✅ Fixed Issues
⏭️ Deferred Issues
|
… app The wire-contract tests serialized through a LaunchHubJson that production never called; the hub now configures its payload through it, so the tests pin the options that actually ship.
4c0f2e4 to
965c505
Compare
AI-3144 — no GitHub issue yet
What & why
Removes dead and unreachable code from the desktop app. Rewrites comments that are wrong about the current code or break the repo's comment rules. Prunes app tests that pin only constants, one-line forwards, or behaviour a named sibling test already covers. No UI or wire changes: the hub payload options, brushes and animation are value-identical.
Where to look
ServerConnectionService.Buildnow callsLaunchHubJson.Configure, so the wire-contract tests use the same options production does. Before, they checked a copy production never called.RemoteSessionViewModelTests.A_same_id_local_row_for_another_session_is_not_an_origin_changenow marks the agent as a proven twin. It covers a case it previously skipped.MarkdownImagecaches its ancestors when attached, instead of walking the tree on every layout pass.Verification
dotnet build test/Capacitor.App.Tests.Unit: 0 warnings, 0 errors (warnings are errors).dotnet run --project test/Capacitor.App.Tests.Unit: 2746/2746 passed. The baseline onmainwas 2804/2804; the difference is the deleted tests.