Skip to content

chore: remove the unused mcp store and dead cli and claude driver helpers - #215

Merged
morajabi merged 3 commits into
mainfrom
claude/dead-code-cleanup
Dec 1, 2026
Merged

morajabi merged 3 commits into
mainfrom
claude/dead-code-cleanup

Conversation

@morajabi

Copy link
Copy Markdown
Contributor

These are confirmed-dead code items from the October audits (cleanup tables) and the code scan. Each one was checked for callers across the repo first: tests, scripts, Dockerfiles, workflows and package exports.

Commit Removed
mcp: packages/mcp/src/server/store/: the SQLite and memory stores, their types and test (1053 lines). Nothing outside the folder imports them.
cli: fetch_message_by_id (main.rs) and load_inline_protocol_temporary (auth.rs). inline-cli is a binary, and neither has a caller, tests included.
crates: envelope_session in agent-driver-claude, which was kept alive by #[allow(dead_code)]. Also gives the bare #[ignore] history lab test the reason string the other lab tests use (set INLINE_HISTORY_LAB).

Verified

  • packages/mcp: build, typecheck, lint, and test (19 files, 484 tests) pass. Line coverage moves from 74.9% to 74.2%. The local thresholds already failed before this change; CI runs coverage report-only.
  • Rust:
    • cargo clippy -p inline-cli -p inline-agent-driver-claude --all-targets -- -D warnings: clean.
    • cargo test -p inline-agent-driver-claude: 101 pass. cargo test -p inline-cli --bin inline -- auth::: 13 pass.
    • cargo fmt --check passes for both crates. The workspace-wide fmt failure in bot_settings.rs is the one ci: get main green (rustfmt, billing test clock, tip release compile) #182 fixes.

🤖 Generated with Claude Code

The in-memory and bun:sqlite OAuth stores under src/server/store had no importer; the server owns OAuth storage.
fetch_message_by_id and load_inline_protocol_temporary had no callers and were kept alive with allow(dead_code).
…lab test

envelope_session had no callers. history_lab now says why it is ignored and which env var drives it.
@morajabi
morajabi force-pushed the claude/dead-code-cleanup branch from 1eca59c to 61787bd Compare December 1, 2026 10:20
@morajabi
morajabi merged commit adecb2d into main Dec 1, 2026
53 checks passed
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