Skip to content

refactor: Remove legacy crates and dead code not used by Nori#230

Merged
theahura merged 5 commits intodevfrom
remove-legacy-crates
Jan 26, 2026
Merged

refactor: Remove legacy crates and dead code not used by Nori#230
theahura merged 5 commits intodevfrom
remove-legacy-crates

Conversation

@theahura
Copy link
Contributor

Summary

🤖 Generated with Nori

  • Remove 14 legacy crates not used by the Nori ACP backend: app-server, backend-client, chatgpt, cloud-tasks, codex-backend-openapi-models, exec, feedback, lmstudio, mcp-server, ollama, and their test clients
  • Remove all feature-gated dead code for: feedback, codex-features, upstream-updates, backend-client, oss-providers
  • Remove workspace lint workaround that allowed cfg references to non-existent features
  • Update docs.md files to reflect the smaller codebase

This removes ~40,000 lines of code while maintaining all functionality needed for the Nori ACP backend.

Test Plan

  • cargo build -p codex-tui compiles successfully
  • cargo test -p codex-tui - 660 tests pass
  • just fmt runs without errors
  • just fix -p codex-tui -p codex-common runs without clippy warnings

Share Nori with your team: https://www.npmjs.com/package/nori-ai

theahura and others added 5 commits January 20, 2026 16:03
Remove crates and feature-gated code that are never used in the Nori build:

Removed crates:
- app-server: HTTP server for standalone API mode
- backend-client: OpenAI backend HTTP client
- chatgpt: ChatGPT Canvas integration
- cloud-tasks: Task management UI
- codex-backend-openapi-models: Backend API types
- exec: CLI execution mode
- feedback: User feedback collection
- lmstudio: LM Studio integration
- mcp-server: MCP server mode
- ollama: Ollama integration

Removed dead feature-gated code:
- feedback: UI popups and consent dialogs
- codex-features: Provider hiding logic
- upstream-updates: Update checker
- backend-client: Rate limit fetching
- oss-providers: OSS provider utilities

Also removes the workspace lint workaround that allowed cfg references
to these non-existent features.

This cleanup reduces the codebase significantly while maintaining all
functionality needed for the Nori ACP backend.
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>
Resolve conflict in slash_command.rs by keeping our changes that
remove the dead feature-gated code for feedback and codex-features.
The exec crate was removed as part of the legacy code cleanup.
Resolve conflicts between dev (adding vertical_footer feature) and
remove-legacy-crates (removing feedback feature):
- Accept vertical_footer parameter additions from dev
- Remove feedback feature-gated code since this PR removes that feature

Files resolved:
- codex-rs/tui/src/app.rs
- codex-rs/tui/src/app_backtrack.rs
- codex-rs/tui/src/chatwidget.rs
- codex-rs/tui/src/chatwidget/tests.rs
- codex-rs/tui/src/lib.rs
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>
@theahura theahura merged commit 6d4d55d into dev Jan 26, 2026
3 checks passed
@theahura theahura deleted the remove-legacy-crates branch January 26, 2026 21:28
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