Repository navigation
chore: delete dead code, unused deps and orphaned assets - #5647
Merged
Merged
Conversation
Remove code that nothing reaches, verified against origin/dev with knip (new knip.jsonc) plus manual reference checks, including hidden dirs. Typecheck passes for app, server, desktop, den-api, den-web, landing, gateway and telemetry; the app builds; app boot and desktop tests pass. App (apps/app): - React-port leftovers and orphaned modules: actions store/provider, global sync and SDK providers, unused settings, connections and session modules, test-only helpers and their scripts. - Dead exports: unused utils, Advanced sections, migration deferral helpers, compactSession, the deprecated signUpEmail stub. - The unregistered OpenAI image settings state and the never-read microsandboxCreateSandbox flag. - The menu-overlay renderer (native context menus replaced it in #4650), unused i18n keys and 192 unused grain-art images. - Deps: @ai-sdk/react, @radix-ui/colors, @radix-ui/react-use-controllable-state, remark-breaks, remark-gfm. Desktop (apps/desktop) and types: - 16 renderer-unreachable IPC handlers and their types and re-exports (some wrote files), plus 7 unused browser and microphone channels. - menu-overlay preload, unused dev icons, electron-devtools-installer. Server (apps/server): - Unused exports, @types/minimatch, @openwork/headless-threads and the opencode-chrome-devtools devDep with its module declaration (the bundled openwork-chrome-devtools plugin replaced it in #4423). Den: - Orphaned landing components, the den-api plugin-system barrel and desktop-policy-role-assignments re-export, a test-only cache hook, test helpers and evidence scripts left without tests, and unused deps (grammy, drizzle-orm in gateway, zod in telemetry). Repo: - apps/ui-demo, Tauri migration scripts, the broken dev-web-local and dev-den-local scripts, the den-controller stub and DEN_CONTROLLER_PORT, one-off scripts, HANDOFF.md, committed tsbuildinfo files and tracked evals/results output, the Remote MCP Apps docs. - Add knip.jsonc and make scripts/find-unused.sh a thin knip wrapper that uses pnpm. Signed-off-by: Benjamin Shafii <[email protected]>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
benjaminshafii
temporarily deployed
to
pr-internal-specs
October 5, 2026 07:05 — with
GitHub Actions
Inactive
Contributor
OpenWork evidence
Run details · Open the preview to inspect evidence and sandbox options. |
lib/artifacts.ts keeps ArtifactType, getArtifactType and useOpenArtifactPath; the rest had no production caller and its tests were already removed. Signed-off-by: Benjamin Shafii <[email protected]>
benjaminshafii
temporarily deployed
to
pr-internal-specs
October 5, 2026 07:58 — with
GitHub Actions
Inactive
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 5, 2026
) Signed-off-by: Benjamin Shafii <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this about?
Deletes code, dependencies and assets that nothing in the app, desktop, server or Den reaches. About 15k lines go, with no behaviour change.
What problem does it solve?
Dead modules, stale IPC commands and orphaned scripts are more to read, search and compile, for people and agents. Some dead desktop commands could still write files when called.
What was the situation before?
Leftovers from the React port, the Tauri migration, the menu overlay and removed tests still compiled and shipped. Unrelated PRs kept editing them.
How is this implemented?
chore/dead-code-sweepWIP, rebased on dev and re-checked against everything merged since.knip.jsonc) and a repo-wide search, including.githuband.opencode.microsandboxCreateSandboxflag, unused i18n keys and images.apps/ui-demo, migration and broken dev scripts, theden-controllerstub.What else changed?
scripts/find-unused.shis now a thinpnpm dlx knipwrapper.*.tsbuildinfoand drops committed build state andevals/resultsfiles.Release note
none
Evidence
No E2E; deletion only. Typecheck passes for app, server, desktop, den-api, den-web, landing, gateway and telemetry. The app builds, the app boot test passes (2 tests), and the desktop electron tests pass (62).