Repository navigation
Rewrite historical Rust comments as current rules - #225
Merged
Merged
Conversation
Comment-only change across the shared core, desktop, mobile and tools
crates. Comments that narrated how the code used to behave ("the old
code", "used to", "until now", version numbers, "Phase 3", reviewer
attributions) now state the constraint in present tense, keeping the
issue numbers that point at reports and regression tests.
Also corrects comments that no longer matched the code: the
commitment number on compute_apply_plan, the unit on memory_mb, the
mobile pull size cap (now enforced while streaming), the v1 adb
fallback location, the compiled-out remote-input live test, a
self-contradicting /proc/net/route example, a tempdir "fallback" that
panics, and three doc comments attached to the wrong function.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc3b62bf27
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
Comment-only cleanup of the Rust code in
v2/crates,v2/src-tauri,v2/mobile/src-tauriandv2/tools(v2/vendorexcluded). No code, signatures or test logic changed: every changed line in the diff is a comment or a blank line.Kinds of change:
tokio::join!", "used to", "until now", "the old code reported every key written", "which 2.3.0 displayed", "Phase 3", "the lead's on-device check".v2/crates/core/src/engine/snapshot.rs:169: cited commitment not digitally signed script file #2 for purity. Purity is commitment SecurityError #1; not digitally signed script file #2 is app lists as data.v2/crates/core/src/engine/types.rs:255:memory_mbwas described as "Bytes of RAM". It is MB.v2/mobile/src-tauri/src/file_commands.rs:243: saidAdbDriverhas no stat and the 2 GiB cap only applies after transfer.pull_limitedactually stats the file first and caps it while streaming.v2/mobile/src-tauri/src/file_commands.rs:17andwireless_adb.rsstruct doc: said transfers go only throughraw_transfer. Pulls go throughpull_limited.v2/src-tauri/src/adb/driver.rs:735,801: said the v1 repo "ships" adb at../adbrelative to the Cargo workspace. The code checks the launch directory and its parent, and v1 downloads adb to the repo root (gitignored).v2/src-tauri/src/adb/driver.rs:51: calledfrom_pathan alias for the old PATH-only discovery. It calls the fulldiscover.v2/crates/core/src/adb/remote_input.rs:733: gave acargo test ... --ignoredcommand for the live test. That test is compiled out withcfg(any())(it needs the desktopSubprocessAdb), so the command can't run it.v2/src-tauri/src/adb/scan.rs:260: the test comment gave two contradicting hex encodings. The wrong one is gone.v2/src-tauri/src/adb/install.rs:209: said a tempdir failure falls back to a known-good path. It panics. The comment is deleted.redact_typed_textand now sits onredact_args. Themerge_scan_targetsdoc was onwould_duplicate_transport. Thediscover_home_activitydoc was onhome_activity_candidates.v2/crates/core/src/lib.rs:4: said "future Android app". The mobile app exists and depends on this crate.🤖 Generated with Claude Code