web: show the turn files in the audit, with raw and rendered views

- The audit Input/Output/Memory tabs fetch the actual input.md/output.md/
  memory.md, so the outcome section is visible and each document has a
  Rendered/Raw switch plus an Open raw file link. The Session tab renders the
  exported HTML in place with the same link.
- The audit's selected tab uses the normal selected surface, not the accent tint.
- The run Summary no longer carries an Audit & debug section; the stage pane's
  Audit & debug button is the one door.
- Search results all lead with one 56px tile: image thumbnails, artifact type
  tiles, or a kind glyph (pipeline/version/run/step/field); no text kind labels.
- Chat star and more sit on the row's top-right and bottom-right corners, revealed
  on hover/focus, and the row menu opens below them without losing clicks.
- The chat spinner starts at the wall-clock animation phase, so frequent
  streaming re-renders no longer snap it back to the animation start.
This commit is contained in:
2026-10-20 01:15:09 +01:00
parent d130615fae
commit 2a8a5bf334
5 changed files with 232 additions and 88 deletions
+6 -1
View File
@@ -2340,7 +2340,12 @@ function approvalControl(label, decision, sessionId, requestId, extraClass = "")
function renderChatRunningIndicator(thread, now) {
const wrap = h("div", { class: "chat-running", id: "chatRunning" });
const head = h("div", { class: "chat-running-head" });
head.append(h("span", { class: "spinner chat-running-spinner", "aria-hidden": "true" }));
const spinner = h("span", { class: "spinner chat-running-spinner", "aria-hidden": "true" });
// Every streamed delta re-renders the transcript, so a fresh spinner would
// restart its CSS rotation at 0deg many times a second and look frozen. Start
// it at the wall-clock phase instead, so re-renders continue the same turn.
spinner.style.animationDelay = `-${(performance.now() % 800) / 1000}s`;
head.append(spinner);
head.append(
h("span", {
class: "chat-running-label",