Repository navigation
V16-ARCH-D5a: move diagnosis commands out of main.rs - #704
Merged
Merged
Conversation
Test-First: scripts/ci/architecture-drift.test.mjs::rejects diagnosis commands in main.rs Co-authored-by: Cursor <cursoragent@cursor.com>
This extracts get_log_path, get_panic_notice, get_reason_catalog, export_diagnosis, reveal_log_path, get_stuck_after_minutes, and set_stuck_after_minutes from main.rs into a new diagnosis_cmds.rs module to shrink main.rs. No-Test: covered by the previous commit's architectural rule Co-authored-by: Cursor <cursoragent@cursor.com>
- Expand architecture-drift test to check the exact new location and generate_handler! export for all 7 diagnosis commands. - Remove orphaned section headers in main.rs. Test-First: scripts/ci/architecture-drift.test.mjs::contract: all 7 diagnosis commands are properly moved to diagnosis_cmds.rs and exported in main.rs Co-authored-by: Cursor <cursoragent@cursor.com>
Cuarroc
marked this pull request as ready for review
October 8, 2026 20:06
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. |
30 of 46 tasks
Contributor
Merge Queue Status
This pull request spent 13 minutes 26 seconds in the queue, including 13 minutes 10 seconds running CI. Required conditions to merge
|
This was referenced Oct 8, 2026
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.
Das Paket V16-ARCH-D5a zieht die Diagnose-Befehle aus der Hauptdatei in ein eigenes Modul um. Für dich ändert sich am Verhalten nichts, aber künftige Änderungen an der Diagnose müssen nicht mehr in der überfüllten Hauptdatei gesucht werden. Die Review-Anmerkungen wurden eingearbeitet.
Report
Package: V16-ARCH-D5a (PLAN Z3), seam
src-tauri/src/main.rsonly. Baseorigin/mainec4ba35.What changed
get_log_path,get_panic_notice,get_reason_catalog,export_diagnosis,reveal_log_path,get_stuck_after_minutes,set_stuck_after_minutes) frommain.rsinto a newdiagnosis_cmdsmodule.architecture-driftruleDIAGNOSIS_COMMANDS_MOVEDto prevent these commands from being re-added tomain.rs.main.rs.Evidence
bash scripts/ci/gates.sh lane prepush→ exit 0architecture-drift.test.mjsasserting the contract (commands moved todiagnosis_cmds.rs, exported, and listed ingenerate_handler!).d147226:main.rshas 5131 lines before and 5041 after (−90).git diff --numstatgives2 92 src-tauri/src/main.rs; the whole PR is 144 + 93 = 237 lines.NICHT ABGEDECKT
#[cfg(windows)]tests and the Windows arms of clippy did not run (Linux server); the Windows lane runs in the merge queue.linuxlane, not inprepush.Review
Delta review at
d147226:Root acceptance: 2026-10-08 20:07Z.