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

@ -93,6 +93,14 @@
Approximate — Anthropic doesn't publish exact caps. Tune below
once you actually hit a limit.
</div>
{#if tier.label.startsWith("Unknown") && tier.searched.length > 0}
<details class="muted hint">
<summary>Searched paths</summary>
<ul class="paths">
{#each tier.searched as p (p)}<li><code>{p}</code></li>{/each}
</ul>
</details>
{/if}
</div>
{/if}
@ -194,6 +202,9 @@
gap: 4px;
}
.hint { font-size: 10px; line-height: 1.3; }
details summary { cursor: pointer; font-size: 10px; }
ul.paths { margin: 4px 0 0; padding-left: 14px; max-height: 70px; overflow: auto; }
ul.paths code { font-size: 10px; word-break: break-all; }
.error {
background: rgba(255, 107, 107, 0.15);
border: 1px solid var(--danger);

View file

@ -67,4 +67,5 @@ export interface TierInfo {
tier: unknown;
label: string;
recommended_caps: Caps;
searched: string[];
}