2658deee94
Adds a long-lived sidecar (pr_state_warmer.py) that polls Forgejo's /pulls endpoint every 30s and writes the full PR snapshot to a shared SQLite store, eliminating the dispatcher's per-cycle cold-cache stalls (24-30s rebuilds on flaky cycles) and the silent 50-PR pagination cap on the legacy single-page fetch. Substrate - tools/_pr_state_cache.py — SQLite store with (owner, repo) PK, WAL mode, additive v2→v3 migration (comments_refreshed_updated_at), bounded fcntl.flock migration lock, threading.Lock for per-process init, @_with_reheal decorator (catches OperationalError no-such- table + DatabaseError corruption with file quarantine), atomic TEMP-table chunking for >32k seen-set, _normalize_updated_at to canonicalize Forgejo tz-marker drift - tools/pr_state_warmer.py — poll/upsert/vanish/comments-refresh loop with fcntl.flock singleton (rejects second warmer), bounded comments-refresh cap, persistent deferral via SQL pending query, PermissionError-tolerant lock setup, cold-start log suppression - tools/_pr_classification_cache.py — three-layer fall-through (warmer cache → list cache → live fetch) with staleness gate (PR_STATE_WARMER_STALE_AFTER_S floored at 30s in prod) Comments cache hardening - Bot-filter at write time drops bot status/claim/release/sentinel while preserving **Implementation Attempt** markers (94.6% reduction on bot-heavy PRs like #30's 19k-comment thread) - _normalize_since_cursor strips microsecond precision before building ?since= query (fixes the live-observed Forgejo HTTP 422 bug on PRs #25 + #28); handles uppercase Z, lowercase z, ±HH:MM offsets (including non-zero like +05:30), naive ISO - Lazy migration of legacy null-key by_author entries on _read_cache - _newest_cursor walks tail-back skipping malformed entries Supporting infrastructure (cumulative dmpipeline-v2 work) - Telemetry server: SSE live tail, run-sessions enumeration, cost/token tracking, app.js UI rewrite with collapsible sections - MCP servers (mcp_ci_server, mcp_forgejo_server, mcp_git_server, mcp_handoff_server, mcp_graphify_server) for opencode worker context access - Live log writer (tools/live_log_writer.py) — SSE-streaming dispatcher event log - Tier-dispatcher escalation flow with prompts trimmed for budget - Shared bot-logins resolver (tools/_bot_logins.py) replacing two drift-prone copies - token_usage_audit.py for opencode cost analysis Tests - 2259 passing across 65 changed/new files - New suites: test_pr_state_cache, test_pr_state_warmer, test_pr_state_warmer_integration, test_pr_classification_cache, test_pr_list_cache_backoff, test_mcp_* (5 servers), test_live_log_writer_sse, test_telemetry_run_sessions, test_review_post_ready_label - Test_pr_comments_cache expanded with bot-filter coverage, cursor-normalization regression pins, format-drift, atomicity, failed-comments-not-stamped (silent-data-loss class) - Parametrized @_with_reheal coverage across 7 wrapped APIs - Real fault-inject atomicity test for chunked mark_vanished path via Connection wrapper class - Subprocess-based singleton flock test (cross-process contract) - Event-driven SIGTERM-mid-poll test (no fixed-sleep flake) Architecture notes - Schema v3 migration is additive (ALTER ADD COLUMN); v0/v1 still need destructive rebuild because pre-v2 column shape lacks owner/repo. Cross-process drop-table-ping-pong prevented by the fcntl migration lock + per-process _initialized flag. - Comments-refresh deferral is persistent via comments_refreshed_updated_at column — survives warmer restart, picks up next cycle even if PR didn't change again. Replaces in-memory changed_numbers list. - Rollback path: PR_STATE_WARMER_PREFER=0 bypasses the warmer cache and reverts to live-fetch behavior. PR_STATE_CACHE_DISABLE=1 short-circuits the warmer process at startup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
728 lines
18 KiB
CSS
728 lines
18 KiB
CSS
/* Pipeline Telemetry Console — minimal, system-font, dark/light aware. */
|
|
|
|
:root {
|
|
--bg: #ffffff;
|
|
--bg-soft: #f5f5f7;
|
|
--bg-card: #ffffff;
|
|
--fg: #1a1a1a;
|
|
--fg-muted: #6b6b73;
|
|
--fg-soft: #2c2c34;
|
|
--border: #e5e5ea;
|
|
--accent: #1f6feb;
|
|
--ok: #16a34a;
|
|
--warn: #d97706;
|
|
--err: #dc2626;
|
|
--pulse: #1f6feb;
|
|
--code-bg: #f1f3f5;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #0d0d10;
|
|
--bg-soft: #15151a;
|
|
--bg-card: #181820;
|
|
--fg: #e8e8eb;
|
|
--fg-muted: #8a8a93;
|
|
--fg-soft: #cfcfd6;
|
|
--border: #26262e;
|
|
--accent: #58a6ff;
|
|
--ok: #4ade80;
|
|
--warn: #fbbf24;
|
|
--err: #f87171;
|
|
--pulse: #58a6ff;
|
|
--code-bg: #1f1f27;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
code { background: var(--code-bg); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
|
|
pre { background: var(--code-bg); padding: 8px; border-radius: 4px; overflow-x: auto; font-size: 0.85em; }
|
|
|
|
.muted { color: var(--fg-muted); }
|
|
.small { font-size: 12px; }
|
|
.sep { color: var(--fg-muted); margin: 0 6px; }
|
|
.hidden { display: none !important; }
|
|
|
|
/* ── topbar ────────────────────────────────────────────────────── */
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 18px;
|
|
background: var(--bg-soft);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 6px; }
|
|
|
|
.dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--fg-muted);
|
|
}
|
|
.dot-pulse {
|
|
background: var(--pulse);
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.4; transform: scale(0.85); }
|
|
}
|
|
.dot.ok { background: var(--ok); }
|
|
.dot.warn { background: var(--warn); }
|
|
.dot.err { background: var(--err); animation: pulse 1s infinite; }
|
|
|
|
.meta-extra { display: flex; align-items: center; }
|
|
|
|
/* ── tabs ──────────────────────────────────────────────────────── */
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 0 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg);
|
|
position: sticky;
|
|
top: 41px;
|
|
z-index: 9;
|
|
}
|
|
.tab {
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
color: var(--fg-muted);
|
|
}
|
|
.tab:hover { color: var(--fg); }
|
|
.tab.active {
|
|
color: var(--fg);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
main { padding: 18px; }
|
|
|
|
.pane { display: none; }
|
|
.pane.active { display: block; }
|
|
.pane h2 { margin: 0 0 4px 0; font-size: 18px; }
|
|
.pane h3 { margin: 16px 0 8px 0; font-size: 14px; }
|
|
.pane p { margin: 0 0 12px 0; }
|
|
|
|
/* ── cards ─────────────────────────────────────────────────────── */
|
|
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
margin-bottom: 12px;
|
|
overflow: hidden;
|
|
}
|
|
.card-head {
|
|
padding: 8px 12px;
|
|
background: var(--bg-soft);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
.card-body { padding: 10px 12px; }
|
|
.card.placeholder { padding: 16px; color: var(--fg-muted); }
|
|
|
|
.grid { display: grid; gap: 12px; }
|
|
.grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
.grid-4 { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
|
|
@media (max-width: 900px) {
|
|
.grid-2, .grid-4 { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* daemon mini-card */
|
|
|
|
.daemon {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 12px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
}
|
|
.daemon .name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
|
|
.daemon .pid { color: var(--fg-muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
|
|
.daemon .hb { font-size: 11px; color: var(--fg-muted); }
|
|
.daemon.down { border-color: var(--err); }
|
|
.daemon.stale { border-color: var(--warn); }
|
|
.daemon.up { border-color: var(--ok); }
|
|
/* "long worker" — pid alive but heartbeat stale (callback regressed
|
|
or filesystem failure on the heartbeat path). Same hue as ``stale``
|
|
but a striped border so it reads as a distinct sub-state. */
|
|
.daemon.long-worker {
|
|
border-color: var(--warn);
|
|
border-style: dashed;
|
|
}
|
|
.daemon .in-flight {
|
|
font-size: 11px;
|
|
color: var(--ok);
|
|
font-family: ui-monospace, "SF Mono", Menlo, monospace;
|
|
margin-top: 2px;
|
|
}
|
|
.daemon .in-flight .mono { color: var(--fg); }
|
|
|
|
/* in-flight rows in the cycles tables (ended_at IS NULL): tinted
|
|
background so a long-running cycle is impossible to miss while
|
|
scanning the dispatcher table. */
|
|
tr.in-flight-row > td {
|
|
background: color-mix(in srgb, var(--warn) 12%, transparent);
|
|
}
|
|
|
|
/* tables */
|
|
|
|
.table-wrap { overflow-x: auto; }
|
|
table.tt {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
table.tt th, table.tt td {
|
|
text-align: left;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: top;
|
|
}
|
|
table.tt th {
|
|
background: var(--bg-soft);
|
|
font-weight: 600;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
table.tt tr:hover td { background: var(--bg-soft); }
|
|
table.tt td.num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
|
|
/* outcome / state pills */
|
|
|
|
.pill {
|
|
display: inline-block;
|
|
padding: 1px 8px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: var(--bg-soft);
|
|
color: var(--fg-soft);
|
|
border: 1px solid var(--border);
|
|
}
|
|
.pill.ok { background: rgba(22, 163, 74, 0.15); color: var(--ok); border-color: rgba(22, 163, 74, 0.3); }
|
|
.pill.warn { background: rgba(217, 119, 6, 0.15); color: var(--warn); border-color: rgba(217, 119, 6, 0.3); }
|
|
.pill.err { background: rgba(220, 38, 38, 0.15); color: var(--err); border-color: rgba(220, 38, 38, 0.3); }
|
|
.pill.info { background: rgba(31, 111, 235, 0.15); color: var(--accent); border-color: rgba(31, 111, 235, 0.3); }
|
|
|
|
.callout {
|
|
background: rgba(217, 119, 6, 0.10);
|
|
border: 1px solid rgba(217, 119, 6, 0.30);
|
|
color: var(--fg);
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.filter-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.filter-row select {
|
|
padding: 4px 6px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
font: inherit;
|
|
}
|
|
|
|
ul.tight { margin: 0; padding-left: 20px; }
|
|
ul.tight li { margin: 3px 0; }
|
|
|
|
dl { margin: 0; }
|
|
dl dt { font-weight: 600; margin-top: 6px; }
|
|
dl dt:first-of-type { margin-top: 0; }
|
|
dl dd { margin-left: 0; color: var(--fg-soft); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; }
|
|
|
|
/* large number stat */
|
|
|
|
.stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 14px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
}
|
|
.stat .v { font-size: 22px; font-weight: 600; }
|
|
.stat .l { color: var(--fg-muted); font-size: 12px; margin-top: 2px; }
|
|
.stat .v.ok { color: var(--ok); }
|
|
.stat .v.warn { color: var(--warn); }
|
|
.stat .v.err { color: var(--err); }
|
|
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
/* ── Sessions tab (archived worker sessions) ─────────────────────── */
|
|
|
|
tr.clickable { cursor: pointer; }
|
|
tr.clickable:hover {
|
|
background: var(--bg-hover, rgba(255, 255, 255, 0.04));
|
|
}
|
|
|
|
.kv {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
column-gap: 12px;
|
|
row-gap: 4px;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
.kv dt {
|
|
color: var(--fg-muted);
|
|
font-size: 12px;
|
|
}
|
|
.kv dd {
|
|
margin: 0;
|
|
font-family: var(--mono, monospace);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border, #333);
|
|
color: var(--fg, #ddd);
|
|
padding: 2px 8px;
|
|
font-size: 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
.btn-link {
|
|
border: none;
|
|
color: var(--accent);
|
|
padding: 2px 4px;
|
|
}
|
|
.btn-link:hover { text-decoration: underline; }
|
|
|
|
pre.archive-msg {
|
|
background: var(--bg-code, rgba(255, 255, 255, 0.04));
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
max-height: 500px;
|
|
overflow: auto;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
details + details { margin-top: 4px; }
|
|
details summary {
|
|
cursor: pointer;
|
|
font-family: var(--mono, monospace);
|
|
font-size: 12px;
|
|
color: var(--fg-muted);
|
|
padding: 2px 0;
|
|
}
|
|
details[open] summary { color: var(--fg, #ddd); }
|
|
|
|
/* ── Live tab ──────────────────────────────────────────────────────── */
|
|
|
|
.live-layout {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
gap: 16px;
|
|
min-height: 70vh;
|
|
}
|
|
|
|
.live-runs {
|
|
border-right: 1px solid var(--border);
|
|
padding-right: 12px;
|
|
}
|
|
.live-runs-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 8px;
|
|
}
|
|
.live-runs-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
.live-run-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: var(--bg-card);
|
|
}
|
|
.live-run-row:hover {
|
|
background: var(--bg-soft);
|
|
}
|
|
.live-run-row.selected {
|
|
border-color: var(--accent);
|
|
background: var(--bg-soft);
|
|
}
|
|
.live-run-row .live-run-id {
|
|
flex: 1;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
word-break: break-all;
|
|
line-height: 1.3;
|
|
}
|
|
.live-run-row .live-run-meta {
|
|
font-size: 11px;
|
|
color: var(--fg-muted);
|
|
margin-top: 2px;
|
|
}
|
|
.live-runs-foot {
|
|
margin-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.live-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.live-empty {
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.live-runhead {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.live-runhead h3 { margin: 0; font-size: 16px; }
|
|
.live-runhead .live-countdown { font-family: monospace; font-size: 13px; }
|
|
|
|
.live-grid-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
.live-grid-row.three { grid-template-columns: 1fr 1fr 1fr; }
|
|
|
|
.live-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--bg-card);
|
|
}
|
|
.live-card-head {
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
}
|
|
.live-card-body { padding: 10px; }
|
|
|
|
.live-proc-row {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
.live-proc-row:last-child { border-bottom: none; }
|
|
.live-proc-row .live-proc-name { font-weight: 600; font-family: monospace; }
|
|
.live-proc-row .live-proc-detail {
|
|
font-family: monospace;
|
|
font-size: 11px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.live-proc-row.dead .live-proc-name { color: var(--err); }
|
|
|
|
.live-phase-badge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-weight: 600;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 13px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.live-phase-badge.idle { background: var(--fg-muted); }
|
|
.live-phase-badge.failed,
|
|
.live-phase-badge.transport-error { background: var(--err); }
|
|
.live-phase-badge.short_circuit { background: var(--ok); }
|
|
|
|
.live-kv {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 4px 10px;
|
|
font-size: 12px;
|
|
margin: 8px 0 0;
|
|
}
|
|
.live-kv dt { color: var(--fg-muted); }
|
|
.live-kv dd { margin: 0; font-family: monospace; }
|
|
|
|
.live-feed {
|
|
max-height: 420px;
|
|
overflow-y: auto;
|
|
font-family: monospace;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
}
|
|
.live-feed-row {
|
|
padding: 3px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: grid;
|
|
grid-template-columns: 96px 130px 60px 1fr;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
}
|
|
.live-feed-row:last-child { border-bottom: none; }
|
|
.live-feed-row .ts { color: var(--fg-muted); white-space: nowrap; }
|
|
.live-feed-row .ty { font-weight: 600; }
|
|
.live-feed-row .sev-debug { color: var(--fg-muted); }
|
|
.live-feed-row .sev-info { color: var(--fg-soft); }
|
|
.live-feed-row .sev-warn { color: var(--warn); }
|
|
.live-feed-row .sev-error { color: var(--err); }
|
|
.live-feed-row .sev-critical { color: var(--err); font-weight: 700; }
|
|
|
|
.live-feed-filter {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.live-feed-filter input[type=text] {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
padding: 3px 6px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: monospace;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.live-errors-row {
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
.live-errors-row:last-child { border-bottom: none; }
|
|
.live-errors-row .ts { color: var(--fg-muted); font-size: 11px; font-family: monospace; }
|
|
|
|
/* ── Session tree + transcript (Live tab) ─────────────────────────── */
|
|
.live-sessions-row {
|
|
grid-template-columns: 360px 1fr;
|
|
}
|
|
.live-sessions-tree-card { max-height: 60vh; overflow-y: auto; }
|
|
.live-sessions-detail-card { max-height: 60vh; overflow-y: auto; }
|
|
|
|
.live-session-branch { display: flex; flex-direction: column; }
|
|
.live-session-node {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto auto;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 4px 8px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
line-height: 1.3;
|
|
}
|
|
.live-session-node:hover { background: var(--bg-soft); }
|
|
.live-session-node.selected {
|
|
background: var(--bg-soft);
|
|
outline: 1px solid var(--accent);
|
|
}
|
|
.live-session-head { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
|
|
.live-session-agent { font-weight: 600; }
|
|
.live-session-tag {
|
|
font-family: monospace;
|
|
font-size: 11px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.live-session-model {
|
|
font-size: 11px;
|
|
color: var(--fg-muted);
|
|
font-style: italic;
|
|
}
|
|
.live-session-status {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: var(--fg-muted);
|
|
color: white;
|
|
font-family: monospace;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.live-session-status.running { background: var(--ok); }
|
|
.live-session-status.starting { background: var(--accent); }
|
|
.live-session-status.idle { background: var(--warn); }
|
|
.live-session-status.done { background: var(--fg-muted); }
|
|
.live-session-status.failed { background: var(--err); }
|
|
.live-session-meta { white-space: nowrap; font-size: 11px; }
|
|
.live-session-tier-badge {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-family: monospace;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.live-session-detail { display: flex; flex-direction: column; gap: 10px; }
|
|
.live-session-detail-head {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.live-turn {
|
|
border-left: 3px solid var(--border);
|
|
padding: 8px 10px;
|
|
background: var(--bg-soft);
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
.live-turn.role-user { border-left-color: var(--accent); }
|
|
.live-turn.role-assistant { border-left-color: var(--ok); }
|
|
.live-turn-head {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
margin-bottom: 6px;
|
|
font-size: 11px;
|
|
}
|
|
.live-turn-role {
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
font-size: 10px;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
.live-turn-role.role-user { color: var(--accent); }
|
|
.live-turn-role.role-assistant { color: var(--ok); }
|
|
|
|
.live-part { margin: 6px 0; font-size: 13px; line-height: 1.45; }
|
|
.live-part-text { white-space: pre-wrap; word-wrap: break-word; }
|
|
.live-part-reasoning {
|
|
background: var(--bg-card);
|
|
padding: 6px 10px;
|
|
border-radius: 3px;
|
|
font-style: italic;
|
|
color: var(--fg-muted);
|
|
white-space: pre-wrap;
|
|
}
|
|
.live-part-reasoning .live-part-label {
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
font-style: normal;
|
|
margin-right: 8px;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
.live-part-tool {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 6px 10px;
|
|
}
|
|
.live-tool-head {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
margin-bottom: 4px;
|
|
font-size: 12px;
|
|
}
|
|
.live-tool-name {
|
|
font-family: monospace;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
.live-tool-status {
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: var(--fg-muted);
|
|
color: white;
|
|
}
|
|
.live-tool-status.completed { background: var(--ok); }
|
|
.live-tool-status.error { background: var(--err); }
|
|
.live-tool-block { margin-top: 4px; font-size: 11px; }
|
|
.live-tool-block summary {
|
|
cursor: pointer;
|
|
color: var(--fg-muted);
|
|
font-family: monospace;
|
|
}
|
|
.live-tool-block pre {
|
|
margin: 4px 0 0;
|
|
padding: 6px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
overflow-x: auto;
|
|
font-size: 11px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.live-feed-toggle {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
background: var(--bg-card);
|
|
color: var(--fg-muted);
|
|
cursor: pointer;
|
|
font-family: monospace;
|
|
}
|
|
.live-feed-toggle.on {
|
|
background: var(--accent);
|
|
color: white;
|
|
border-color: var(--accent);
|
|
}
|
|
.live-feed-msg { flex: 1; }
|