Render log entries without content classification

This commit is contained in:
npc0-hue
2026-09-04 14:41:21 +08:00
parent 8dad79011a
commit 44f0b4a44b
@@ -342,7 +342,7 @@ function TerminalStatusLine({ tone, label, serverTime }: { tone: "info" | "warn"
function terminalLineFromLog(stream: LogStreamResponse, entry: LogEntryBody): TerminalLine {
return {
id: `log-${stream.id}-${entry.seq}`,
tone: terminalTone(entry),
tone: "info",
text: entry.line,
at: formatTerminalLogTime(entry.timestamp),
sortKey: Date.parse(entry.timestamp) || Date.now(),
@@ -381,13 +381,6 @@ function eventBelongsToLiveSession(eventSessionId: string | undefined, liveSessi
return Boolean(normalizedEventSessionId && normalizedEventSessionId === liveSessionId);
}
function terminalTone(entry: LogEntryBody): TerminalLine["tone"] {
// Log bodies are plugin-owned opaque content. The platform/browser must not
// inspect text to infer severity or derive a typed result from it.
void entry;
return "info";
}
function mergeTerminalLines(current: TerminalLine[], incoming: TerminalLine[]): TerminalLine[] {
const seen = new Set(current.map((line) => line.id));
const merged = [...current];