detect_plan_tier: re-resolve roots fresh; expose searched paths in TierInfo for diagnosis

This commit is contained in:
megaproxy 2026-05-09 01:11:43 +01:00
parent f33bb5481b
commit 9d10c1f46f
4 changed files with 29 additions and 7 deletions

View file

@ -131,6 +131,7 @@ pub fn detect_in(claude_dirs: &[PathBuf]) -> PlanTier {
/// Native-only fallback path. Most callers should prefer `detect_in` with
/// the resolved-roots' parents so the WSL case works.
#[allow(dead_code)]
pub fn detect() -> PlanTier {
let Some(home) = dirs::home_dir() else {
return PlanTier::NotFound;