Summary
Four files in src/discord/monitor/ have zero external importers on HEAD (2026-04-19). They survived the #2337 cascade as orphaned code — their sole entry points were deleted, but the files themselves were left behind. Delete after zombie-import confirmation.
Files
| File |
LoC |
External importers (grep) |
src/discord/monitor/model-picker.ts |
940 |
0 |
src/discord/monitor/model-picker.test.ts |
631 |
0 (self-imports only) |
src/discord/monitor/model-picker.test-utils.ts |
5 |
0 |
src/discord/monitor/native-command.ts |
1826 |
0 |
Context: src/discord/monitor/ remains live (presence-cache.js, thread-bindings.js, etc. are actively imported). Only these 4 files are orphaned. Last touched by #2398 (sync: upstream to v2026.3.13-1) — upstream-only updates to dead code in this fork.
Protocol
- Re-confirm zero external importers:
git grep -nE "from ['\"].*discord/monitor/model-picker|from ['\"].*discord/monitor/native-command" src/ extensions/
- Should return zero (excluding the picker test-file pair self-imports)
- Delete all 4 files.
- Confirm
pnpm check + pnpm test + node scripts/check-no-zombie-imports.mjs all green.
- Update
scripts/data/zombie-import-allowlist.json if any stale entries reference these paths.
AC
Relation to #2337
Addresses the orphaned-picker artifacts left behind by the #2337 cascade. Part of #2337.
Note on Discord interactive pickers
This deletes ONLY the files in src/discord/monitor/. If Discord UI picker functionality is needed in the future, it would be rebuilt in extensions/discord/ following the extension-based channel architecture.
Summary
Four files in
src/discord/monitor/have zero external importers on HEAD (2026-04-19). They survived the #2337 cascade as orphaned code — their sole entry points were deleted, but the files themselves were left behind. Delete after zombie-import confirmation.Files
src/discord/monitor/model-picker.tssrc/discord/monitor/model-picker.test.tssrc/discord/monitor/model-picker.test-utils.tssrc/discord/monitor/native-command.tsContext:
src/discord/monitor/remains live (presence-cache.js,thread-bindings.js, etc. are actively imported). Only these 4 files are orphaned. Last touched by #2398 (sync: upstream to v2026.3.13-1) — upstream-only updates to dead code in this fork.Protocol
git grep -nE "from ['\"].*discord/monitor/model-picker|from ['\"].*discord/monitor/native-command" src/ extensions/pnpm check+pnpm test+node scripts/check-no-zombie-imports.mjsall green.scripts/data/zombie-import-allowlist.jsonif any stale entries reference these paths.AC
scripts/data/zombie-import-allowlist.jsoncleaned of stale entries (if any)pnpm checkpassespnpm testpassesnode scripts/check-no-zombie-imports.mjspassesRelation to #2337
Addresses the orphaned-picker artifacts left behind by the #2337 cascade. Part of #2337.
Note on Discord interactive pickers
This deletes ONLY the files in
src/discord/monitor/. If Discord UI picker functionality is needed in the future, it would be rebuilt inextensions/discord/following the extension-based channel architecture.