Skip to content

[leas code] Remove unreachable code - #13400

Merged
nwparker merged 1 commit into
mainfrom
nwparker/leas-code
Aug 10, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/leas-code

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • remove unused UI primitive variants, renderer exports, shared symbols, and backend-only declarations
  • delete a duplicate terminal test fixture
  • keep compatibility-only declarations and dynamically referenced entry points found during audit
  • reduce the tree by 286 net lines without changing runtime call paths

Verification

  • pnpm lint
  • pnpm run typecheck
  • 18 focused Vitest files: 180 tests passed
  • cross-version terminal wire suite pinned to v1.4.176: 4 tests passed
  • full Vitest run: 48,883 tests passed; the only suite setup failure was the local harness selecting an unrelated v799 tag whose tree has no src directory

@nwparker nwparker mentioned this pull request Aug 10, 2026
5 of 8 tasks
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f8b9fcb8-3d3c-42f2-9b54-3f82a92b07ac

📥 Commits

Reviewing files that changed from the base of the PR and between 1d3decd and 311e5d2.

📒 Files selected for processing (25)
  • src/main/runtime/orchestration/worker-terminal-ownership.ts
  • src/main/runtime/relay/relay-control-protocol.ts
  • src/main/runtime/rpc/methods/ui-state-schema-parity.ts
  • src/main/ssh/relay-protocol.ts
  • src/main/ssh/ssh-relay-session-test-fixtures.ts
  • src/renderer/src/components/browser-pane/remote-browser-stream-errors.ts
  • src/renderer/src/components/cmd-j/palette-filter-options.ts
  • src/renderer/src/components/dashboard-popout/agent-map-label-declutter.ts
  • src/renderer/src/components/sidebar/FilterToggleRow.tsx
  • src/renderer/src/components/terminal-pane/__fixtures__/xterm-bypass-event.ts
  • src/renderer/src/components/ui/button-group.tsx
  • src/renderer/src/components/ui/card.tsx
  • src/renderer/src/components/ui/context-menu.tsx
  • src/renderer/src/components/ui/dropdown-menu.tsx
  • src/renderer/src/components/ui/select.tsx
  • src/renderer/src/components/ui/sheet.tsx
  • src/renderer/src/lib/agent-feature-install-commands.ts
  • src/renderer/src/lib/ime-composition-keyboard-event.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/daemon-lifecycle-telemetry.ts
  • src/shared/hermes-run-ref-retention.ts
  • src/shared/left-sidebar-appearance.ts
  • src/shared/plugins/plugin-capabilities.ts
  • src/shared/plugins/plugin-panel-bridge.ts
  • src/shared/terminal-title-agent-type.ts
💤 Files with no reviewable changes (20)
  • src/main/runtime/orchestration/worker-terminal-ownership.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/daemon-lifecycle-telemetry.ts
  • src/renderer/src/components/ui/dropdown-menu.tsx
  • src/main/runtime/relay/relay-control-protocol.ts
  • src/main/ssh/ssh-relay-session-test-fixtures.ts
  • src/renderer/src/components/ui/select.tsx
  • src/renderer/src/components/sidebar/FilterToggleRow.tsx
  • src/shared/terminal-title-agent-type.ts
  • src/main/ssh/relay-protocol.ts
  • src/renderer/src/components/terminal-pane/fixtures/xterm-bypass-event.ts
  • src/renderer/src/components/cmd-j/palette-filter-options.ts
  • src/renderer/src/lib/agent-feature-install-commands.ts
  • src/renderer/src/components/browser-pane/remote-browser-stream-errors.ts
  • src/shared/plugins/plugin-capabilities.ts
  • src/shared/left-sidebar-appearance.ts
  • src/renderer/src/components/dashboard-popout/agent-map-label-declutter.ts
  • src/renderer/src/lib/ime-composition-keyboard-event.ts
  • src/shared/hermes-run-ref-retention.ts
  • src/main/runtime/rpc/methods/ui-state-schema-parity.ts

📝 Walkthrough

Walkthrough

Removed unused exported types, constants, helpers, fixtures, and UI components across runtime, SSH, renderer, and shared modules. Retained selected schemas, named exports, internal label-width logic, replacement retention limits, and remaining update commands. Removed related imports and export-list entries where required.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes a summary and verification results but omits the required Screenshots, AI Review Report, Security Audit, and Notes sections. Add all required template sections and document the AI review, security audit, platform checks, screenshots status, and any follow-up risks.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing unreachable code and unused declarations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit ced2719 into main Aug 10, 2026
45 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant