Skip to content

refactor(desktop): remove confirmed unused application code - #2643

Merged
vastsa merged 1 commit into
mainfrom
refactor/dead-code-audit-20261128
Nov 28, 2026
Merged

vastsa merged 1 commit into
mainfrom
refactor/dead-code-audit-20261128

Conversation

@vastsa

@vastsa vastsa commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Remove internal implementations that have no production callers, including a duplicate Worktree session menu, retired Dictation controls/styles, obsolete model-metadata fallback helpers, and 42 unused import bindings. Active user flows, public package exports, IPC/RPC contracts, persisted compatibility fields, and runtime entry points are preserved. The change removes 680 lines on balance across 40 files.

Review checked removed exports against all tracked source, test, JSX fixture, and documentation references, and verified that retained Live Voice classes remain loaded by their owning modules. No dependency, schema, permission, or public behavior changes are included.

Validation:

  • Workspace JS/docs build, Desktop typecheck (including both unused-declaration flags), lint, architecture guard against current origin/main, agent-policy sync, and diff checks pass.
  • Shared: 1,488 tests; runtime mode definitions/bundles: 45 tests; pi-host host operations: 4 tests pass.
  • Review rerun: 156 focused Desktop tests pass, covering model catalog resolution, mode editing, model/context selection, Worktree menus, scheduled tasks, Voice Settings, and live-work/controller behavior.
  • Isolated Electron Live Voice interaction: 51/51 checks pass on the committed candidate.
  • Full Desktop run: 5,459 passed, 22 failed, 4 skipped. After isolating temporary-directory and module-resolution issues, 19 failures clear. The remaining window-focus timeout, image-model marking assertion, and presence-card timeout all reproduce on unmodified base source with the same environment; full-suite green status is not claimed.

Candidate: dec1e5584e9b8531f6b79ec77205e930daa7308b
Base main: ad1554774ff48c2727b70a320ce7fa0579eefbd1
Executable tree: b02ae7e3b274475bcd306ffbeaa345560ae23295
Environment: macOS, reused host dependencies and installed Electron 43.6.0; existing Pi 1.5.2 repository patches applied only in task-local validation overlays. No paid provider or running user instance was used.

Remove obsolete UI and helper implementations with no production callers
so they cannot drift from the active paths. Preserve public package
exports, persisted compatibility fields, and runtime entry points.
@vastsa
vastsa merged commit f92b184 into main Nov 28, 2026
5 checks passed
@vastsa
vastsa deleted the refactor/dead-code-audit-20261128 branch November 28, 2026 10:22
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