Bug fixes
This commit is contained in:
Binary file not shown.
@@ -151,8 +151,8 @@ HTML_PAGE = """<!DOCTYPE html>
|
|||||||
.file-viewer { flex: 1; overflow-y: auto; padding: 8px; min-height: 0; }
|
.file-viewer { flex: 1; overflow-y: auto; padding: 8px; min-height: 0; }
|
||||||
|
|
||||||
/* Right panel: LLM activity log */
|
/* Right panel: LLM activity log */
|
||||||
.right { display: flex; flex-direction: column; }
|
.right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
||||||
.activity { flex: 1; overflow-y: auto; padding: 12px; }
|
.activity { flex: 1; overflow-y: auto; padding: 12px; min-height: 0; }
|
||||||
|
|
||||||
.panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8b949e; padding: 8px 0 6px; border-bottom: 1px solid #21262d; margin-bottom: 8px; }
|
.panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8b949e; padding: 8px 0 6px; border-bottom: 1px solid #21262d; margin-bottom: 8px; }
|
||||||
|
|
||||||
@@ -186,7 +186,8 @@ HTML_PAGE = """<!DOCTYPE html>
|
|||||||
.log-warn { color: #d29922; }
|
.log-warn { color: #d29922; }
|
||||||
.log-action { color: #58a6ff; font-weight: 600; }
|
.log-action { color: #58a6ff; font-weight: 600; }
|
||||||
.log-detail { color: #c9d1d9; }
|
.log-detail { color: #c9d1d9; }
|
||||||
.log-llm { color: #bc8cff; }
|
.log-llm { color: #bc8cff; font-weight: 600; }
|
||||||
|
.log-llm-content { color: #bc8cff; opacity: 0.8; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 4px 0 8px 0; padding: 6px 8px; background: #161b22; border-radius: 4px; border-left: 2px solid #bc8cff; max-height: 400px; overflow-y: auto; }
|
||||||
|
|
||||||
::-webkit-scrollbar { width: 6px; }
|
::-webkit-scrollbar { width: 6px; }
|
||||||
::-webkit-scrollbar-track { background: transparent; }
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
@@ -305,8 +306,10 @@ function addLogEntry(d) {
|
|||||||
const time = new Date().toLocaleTimeString();
|
const time = new Date().toLocaleTimeString();
|
||||||
const isLlm = d.status === 'llm';
|
const isLlm = d.status === 'llm';
|
||||||
if (isLlm) {
|
if (isLlm) {
|
||||||
|
const text = (d.detail || '').replace(/^```[a-z]*\n?/gm, '').replace(/```$/gm, '').trim();
|
||||||
div.innerHTML = '<span class="log-time">' + time + '</span> '
|
div.innerHTML = '<span class="log-time">' + time + '</span> '
|
||||||
+ '<span class="log-llm">🧠 ' + escapeHtml(d.detail || '') + '</span>';
|
+ '<span class="log-llm">🧠 thinking</span>'
|
||||||
|
+ '<pre class="log-llm-content">' + escapeHtml(text) + '</pre>';
|
||||||
} else {
|
} else {
|
||||||
const cls = d.status === 'ok' ? 'log-ok' : d.status === 'error' ? 'log-error' : d.status === 'warn' ? 'log-warn' : 'log-ok';
|
const cls = d.status === 'ok' ? 'log-ok' : d.status === 'error' ? 'log-error' : d.status === 'warn' ? 'log-warn' : 'log-ok';
|
||||||
const icon = d.status === 'ok' ? '✓' : d.status === 'error' ? '✗' : d.status === 'warn' ? '⚠' : '…';
|
const icon = d.status === 'ok' ? '✓' : d.status === 'error' ? '✗' : d.status === 'warn' ? '⚠' : '…';
|
||||||
|
|||||||
Reference in New Issue
Block a user