Repository navigation
feat(fetcher): cross-platform system fetchers via sysinfo - #50
Conversation
Previously `refresh_payloads` recomputed realtime payloads on every frame tick (up to 40 times during the 2s animation window). Animation is a renderer concern — fetchers producing different data each tick was never the contract. Pre-loop initial compute now persists for the whole window; only cache-backed entries refresh between frames. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replaces the `disk` and `system` stubs with seven sysinfo-backed fetchers covering the realtime system block from the #41 catalog: - system (Entries/Lines) — OS/host/uptime/load/cpu/memory rollup - cpu_load (Ratio/Lines) - memory (Ratio/Lines/Entries) - uptime (Lines) - load_average (Lines/Entries) — Windows shows n/a - process_top (Entries/Lines) — top 5 by CPU - disk (Ratio/Lines/Bars) — cached, largest disk picked as primary All classified Safety::Safe (local kernel counters only, no network or exec). Multi-shape so each can feed text/ascii_art/gauge/table renderers as the config chooses. Cross-platform via sysinfo's unified API. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adds cpu_load/memory/uptime/load_average/process_top widgets so the dev splash exercises the new fetchers end-to-end. Each picks one valid renderer from the fetcher's shape list; the existing system+disk widgets now draw real data instead of the canned stub values. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 4 minutes and 19 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Summary
sysinfo-backed fetchers replace thedisk/systemstubs and fill the realtime system block in the meta: widget catalog & roadmap #41 catalog:system,cpu_load,memory,uptime,load_average,process_top(realtime), plusdisk(cached). AllSafety::Safe, cross-platform (Linux / macOS / Windows), multi-shape so each fetcher feeds several renderers.refresh_payloadsno longer recomputes realtime fetchers each frame — the pre-loop compute persists through the 2s animation window. Fixes the footgun whereprocess_top's/proc/*/statwalk would run up to 40× per splash invocation..splashboard/config.tomladds cpu/memory/uptime/load/process widgets so the dev splash exercises every new fetcher end-to-end.Catalog (#41)
Ticks:
Explicitly out-of-scope (each would need per-OS native APIs or delta tracking that breaks the realtime <1ms contract):
battery,network_speed,wifi_ssid,gpu,sensor_temperatures,ip_addresses,mounted_volumes.Test plan
cargo test— 220 passedcargo clippy --all-targets -- -D warnings— cleancargo runin this repo renders without panics, every new widget displays real datan/a (windows), disk picks system drive)🤖 Generated with Claude Code