Settings: expose raw /usage output when parser fails (debug aid)

This commit is contained in:
megaproxy 2026-05-09 01:46:31 +01:00
parent db9a10a4c2
commit 5a6f5dd4fa

View file

@ -104,6 +104,12 @@
</span>
{/if}
</div>
{#if cli && (!cli.ok || !cli.session)}
<details class="muted hint" style="margin-top:6px">
<summary>raw output (last {cli.raw_text.length} chars)</summary>
<pre class="raw">{cli.raw_text.slice(-1500)}</pre>
</details>
{/if}
</div>
<div class="field">
@ -185,6 +191,18 @@
.roots { margin: 0; padding-left: 14px; max-height: 60px; overflow: auto; }
.roots code { font-size: 10px; word-break: break-all; }
.hint { font-size: 10px; line-height: 1.3; }
pre.raw {
margin: 4px 0 0;
padding: 6px;
background: rgba(0, 0, 0, 0.35);
border-radius: 4px;
font-size: 9px;
line-height: 1.2;
max-height: 140px;
overflow: auto;
white-space: pre-wrap;
word-break: break-all;
}
.error {
background: rgba(255, 107, 107, 0.15);
border: 1px solid var(--danger);