Skip to content

feat: read a trace as the question, the answer, and its steps - #134

Merged
TheGreatAxios merged 4 commits into
mainfrom
feat/trace-reading
Oct 27, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
feat/trace-reading

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Adds TraceReading beside AuditRun.

A trace opens on its name. The first model turn's input is the question when that text differs from the name. The last model turn's output is the answer. Steps follow in start order. A row shows the step type, its title, a status other than done, and how long that step took. Choosing a row shows its thinking, input, and output under the row.

AuditRun still plays the trace back.

Verified with bun run typecheck, bun run lint, and bun test src/blocks/observability/trace-reading.test.ts. The story is Observability / Views / Reading, on the review and editor fixtures.

The playback view leads with a scrubber and an empty inspector.
A reader should see the prompt and the last reply before the steps.
Arrow keys followed the selected row while focus stayed on another
button, so Enter reopened the previous step. Running and waiting
used the failure color. The detail stays under the row, so the list
is not a listbox.
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 25, 2026 22:51
@corbits-triage

corbits-triage Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by the comment below.

@corbits-triage

Copy link
Copy Markdown
Contributor

This supersedes the comment above because the rules changed: policy file b3ce89a → 3b8b38b.

Triage: Fail

@TheGreatAxios, please address the following:

  • pull request does not reference an issue

Waiting on a maintainer to approve: close, request changes.

@TheGreatAxios

Copy link
Copy Markdown
Contributor Author

Storybook · before and after

Same stories, same 1440×900 canvas, nothing cropped. 694c18c keeps the reading view inside its 640px frame, so the list scrolls instead of painting past the border. The open-step shot before that grew to 1044px; after, it stays in the viewport.

Gist: https://gist.github.com/TheGreatAxios/713858e121a380fc0fe02a64dfd8258b

Review

Before

After

Review, first step open

Before

After

Editor

Before

After

@TheGreatAxios
TheGreatAxios merged commit 24825f4 into main Oct 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant