文件最后提交记录最后更新时间
fix(lints): gate Path / PathBuf / Write imports on Windows The Win10 build report shows three unused_imports warnings in atomcode-core that the existing platform-specific gating misses: * crates/atomcode-core/src/auth/mod.rs - Write (write_all on the temp-auth file) only used in the #[cfg(unix)] atomic-rename + chmod-600 path; the Windows fallback at line 49 calls std::fs::write directly. - PathBuf only used in the #[cfg(unix)] fn temp_auth_path helper; Windows fallback skips temp files. - Path is in non-cfg-gated function signatures, stays unconditional. * crates/atomcode-core/src/uninstall/paths.rs - Path only appears in unix_rc_paths_for_home, which has both a #[cfg(unix)] production path and a #[cfg(all(not(unix), test))] test stub. A Windows non-test build (release binary) sees neither — so the import was flagged. Gate each unused-on-Windows import behind the matching cfg predicate (cfg(unix) for the Unix-only ones, `cfg(any(unix, test))` for the one that survives in cross-platform tests). Unix builds keep the lint active so a future genuinely-unused import still gets caught. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> 27 天前
feat(telemetry): durable-sync LoginSuccess on login paths with fallback - Add TelemetryError::QueueBusy for try_lock contention. - Add Telemetry::track_durable_sync() for sync call paths (TUI login). - Add Telemetry::track_durable() async variant for daemon handlers. - Change three login-success sites (oauth, api_auth, api_codingplan) to use durable enqueue + force_roll, falling back to non-blocking track() if the queue is busy or unavailable. - Extract records_for_event() helper and add a unit test verifying the sync durable path writes login_success with correct payload. 14 小时前