feat: inspect the full prompt in the live log

The "context built" event now carries the fully-rendered prompt (persona, gists,
recalled details, recent turns, the new message) plus a total char count. The
log panel renders it as a collapsed "view full prompt" block — clean by default,
one click to see exactly what hit the model.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-15 23:52:35 +00:00
parent d7c258eba0
commit 236a16b331
3 changed files with 38 additions and 6 deletions
+22
View File
@@ -941,3 +941,25 @@ select:hover {
.log-error .log-level, .log-error .log-msg { color: #fca5a5; }
.log-system { border-left-color: #00ff66; }
.log-system .log-level { color: #00ff66; }
.log-detail { width: 100%; margin-top: 4px; }
.log-detail summary {
cursor: pointer;
color: var(--accent);
font-size: 0.72rem;
user-select: none;
}
.log-detail pre {
margin: 6px 0 0;
padding: 8px;
max-height: 340px;
overflow: auto;
background: rgba(0,0,0,0.25);
border-left: 2px solid var(--accent);
border-radius: 4px;
font-size: 0.72rem;
line-height: 1.4;
white-space: pre-wrap;
word-break: break-word;
color: var(--text);
}