Skip to content

Commit 3be979a

Browse files
MariefayTrigger.dev RepoOps
authored andcommitted
docs(ai-chat): document the session Trace tab
Mono-RevId: 1d8f0d100ba0c33be039cb56093cd0c97fbf0d7e
1 parent c1162c7 commit 3be979a

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: feature
4+
---
5+
6+
Session pages have a Trace tab that shows every run of a session on one timeline, with zoom, live runs and search across runs.

‎docs/ai-chat/sessions.mdx‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ This is what makes a Session the durable identity for a conversation: runs are a
7878

7979
A `task()` that loops on `session.in.wait()` reads the session's input from the start when it gets a new run: after a crash, a cancel, or a move to a newer deployment by the [skew protection threshold](/deployment/skew-protection-threshold). It sees every earlier record again before the new one. `chat.agent` tracks what it has handled and doesn't. Keep your own record of the last input you handled, and skip anything at or before it.
8080

81+
### Seeing a session's runs in the dashboard
82+
83+
On Trigger.dev Cloud, a session's page in the dashboard has a **Trace** tab next to **Conversation**. It shows every run of the session on one timeline:
84+
85+
- Each run is a row, numbered from the session's first run, with when it started, how long it took and its status. A badge says why a run started when it wasn't a plain continuation, for example a crash restart or a move to a new version.
86+
- Runs share one time axis, so idle gaps between runs show at their real length. Drag across the timeline to zoom into a range, and use **Reset zoom** to see all the loaded runs again.
87+
- Expand a run to load its spans; opening a run zooms the timeline to it. Long sessions show only the most recent runs at first; use **Load earlier runs** to add older ones.
88+
- While a run is live, **View live run** opens it and new spans stream in.
89+
- Search and **Errors only** work across the runs you've loaded. Use **Load all** in the search bar to load and search every run shown.
90+
- Select a run or span to see its details in the side panel. **View run** opens the run's own page.
91+
92+
A run whose logs were deleted under your plan's log retention says so. A run whose trace can't be drawn here has a **Trace available on run page** badge that links to it.
93+
8194
## When to reach for Sessions directly
8295

8396
`chat.agent` handles 90% of chat-shaped workloads — message accumulation, the turn loop, stop signals, lifecycle hooks. Use the raw `sessions` API when you need any of:

0 commit comments

Comments
 (0)