fix(console-ui): render binary invocation output safely

- decode UTF-8 responses in fatal mode and reject control-byte payloads
- fall back to hexadecimal output instead of replacement characters
- show response byte count, selected representation, automatic fallback, and latency
- preserve the existing counter u64 representation and cover the wiring in SSR tests
This commit is contained in:
Maofeng
2026-07-29 19:20:15 +08:00
parent 51b452ecc5
commit 72c901c478
3 changed files with 88 additions and 12 deletions
+12
View File
@@ -1783,6 +1783,18 @@ button:disabled {
justify-content: space-between;
}
.invoke-output-meta {
display: flex;
align-items: center;
gap: 12px;
}
.invoke-output-meta > span {
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.invoke-output small {
display: flex;
align-items: center;