Repository navigation
fix: correct --minimal-dir help to name the state dir and per-platform defaults - #1136
Conversation
The --minimal-dir help said "Override the base directory used for operations (default: ~/.cache/minimal)". The flag overrides the state directory, not the cache, and ~/.cache/minimal is the default on no platform: state resolves to $XDG_STATE_HOME/minimal on Linux, falling back to $HOME/.local/state/minimal elsewhere (macOS too). Reword the clap help string and the cli-min.md flag row to name the state directory and document the per-platform defaults, matching the style already used by --config-dir.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Comment |
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABKmgpYg
The
--minimal-dirglobal flag's help text read "Override the base directory used for operations (default:~/.cache/minimal)". Both claims are wrong: the flag overrides the state directory (the session store and provider instances resolve under it), not the cache, and~/.cache/minimalis the default on no platform — state resolves to$XDG_STATE_HOME/minimalon Linux, falling back to$HOME/.local/state/minimalelsewhere, macOS included (informed by #619, which coalesced this default-dir computation after #292 separated state from cache). This reworks the clap help string incrates/minimal/src/lib.rsand the matching global-flags row indocs/reference/cli-min.mdto name the state directory and document the per-platform defaults, mirroring the adjacent--config-dirflag.Verification
cargo fmt --all --check --manifest-path target/Cargo.toml— clean, no driftcargo clippy --workspace --locked -- -D warnings— passed, 0 warningscargo build --workspace --locked— Finished, 0 errorscargo test --workspace --locked— all tests passed, 0 failedNote
Fix
--minimal-dirhelp text to describe the state directory and platform-specific defaultsUpdates the documentation comment for
minimal_dirin lib.rs and the CLI reference in cli-min.md to accurately describe--minimal-diras the base directory for minimal's on-disk state (session store, provider instances), with correct platform-specific default paths using the state directory locations.Macroscope summarized 0c20a7b.