feat(crash): Rust crash-capture core (panic hook + commands)#691
Conversation
|
Warning Review limit reached
More reviews will be available in 50 minutes and 6 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
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 |
Фаза 1 локального crash-reporting (Refs #687). Чистое Rust-ядро, без UI.
Что внутри
install_panic_hook) — чейнится к дефолтному (вывод в консоль сохраняется), один раз резолвитapp_data_dir/crashesи move-захватывает в замыкание, пишет обезличенный crash-record. Сам не паникует (ошибки игнорирует).<seq>.jsonвapp_data/crashes(переживает очистку кеша): запись (seq id = max+1), чтение с сортировкой по id, пометкаreported/dismissed./Users/<user>; относительные source-пути остаются. Применяется при записи, чтобы в публичный issue не утекли локальные пути.list_pending_crashes,report_frontend_crash,mark_crash_reported,dismiss_crash,build_crash_report(собирает обезличенный markdown, обрезает backtrace под лимит URL GitHub).Тесты
cargo test -- crash::— 4 теста (редакция путей ×3, round-trip storage). clippy-D warningsчисто.Дальше (отдельными PR)
tauri-plugin-opener, i18n).Дизайн и план — в
docs/superpowers/(локально).