[codex] remove unused src-tauri mirror rust modules#168
Merged
Conversation
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.
Summary
This PR removes a set of unused Rust mirror modules under
src-tauri/src/antigravity,src-tauri/src/kiro, andsrc-tauri/src/codex.These files were historical copies of implementations that now live in
crates/token_proxy_core. The activemod.rsfiles in those threesrc-taurimodule directories already re-export the core implementations directly, so the local mirror files were not part of the effective module graph.User-facing impact
There is no intended user-visible behavior change.
The effect of this cleanup is reducing dead code in the Tauri layer, lowering maintenance cost, and removing a misleading source of truth that could cause future edits to land in files that are never compiled or executed.
Root cause
src-tauri/src/antigravity/mod.rs,src-tauri/src/kiro/mod.rs, andsrc-tauri/src/codex/mod.rseach re-exporttoken_proxy_corewithpub use token_proxy_core::<module>::*;.That means the sibling Rust files in those directories were bypassed by the current module boundary. They remained in the repository as mirror copies, but they were not the code path used by the application.
Fix
The PR deletes the unwired mirror files and keeps the
mod.rsre-export entrypoints intact.The cleanup covers:
src-tauri/src/antigravity/*.rsexceptmod.rssrc-tauri/src/kiro/*.rsexceptmod.rssrc-tauri/src/codex/*.rsexceptmod.rsNo frontend files or JS dependencies are changed in this PR.
Validation
I verified the cleanup with:
cargo check --workspace --all-targetscargo test --workspace --all-targetsResults:
src-tauritests: 4 passedtoken_proxy_coretests: 216 passedpackage.json,pnpm-lock.yaml, orsrc/