Timeline & rewind
Skim a long conversation from a timeline, and rewind it to an earlier turn when it went wrong. Works in topics, chats and agent sessions.


The timeline rail
With two or more turns, a column of dashes appears on the right edge; one dash per turn (a prompt and everything up to the next prompt).
- Brighter dashes are on screen; blue is the turn you're reading (its prompt gets a blue bar); amber contains a compaction marker.
- Hover (or focus) a dash for a preview card; click to jump, loading older history if needed.
Rewinding
- Pick the point: from a dash's card, a prompt's hover toolbar (history icon / pencil), or Rewind to here on the Reading turn N of M bar shown while scrolled back (Latest returns to the bottom).
- Check the preview: a conversation restarts here line marks the cut, later turns are greyed out and their dashes red. Rewind confirms; Cancel or Esc backs out.


| Keeps | Deletes | Then | |
|---|---|---|---|
| Rewind here | the chosen turn | every later turn | type the next prompt |
| Edit & resend | the turns before it | the chosen turn and later | its prompt text is back in the composer (re-attach files yourself) |
- Undo: an 8 s countdown bar brings the turns back (and the composer content for Edit & resend). After that, or as soon as you send a prompt or leave, the turns and their attachments are deleted for good.
- Rewinding past a compaction marker removes it; the model sees the full history again.
- Not while a reply is streaming (the server answers
409). Stop or wait first. - Viewing the timeline never changes anything.
In agent sessions
An agent's Activity tab has the same rail and controls. A turn is one prompt you sent plus everything the agent did until the next; goal loop continuations stay inside their turn.


A rewind cuts the Copilot session's history first, then the transcript. Differences:
- No undo. Turns are gone once you confirm.
- Agent at rest only: not while a turn runs or waits for approval.
- Current Copilot session only. Turns of other sessions (a fresh start,
/clear) are navigation-only. Editing the task starts a new run but keeps the session, so those turns stay rewindable. - Not during a workflow step: replay the step from the workflow instead.
- Not past a compaction.
- The run is reset to idle with the last kept answer as summary; progress, a raised question and the goal loop count are cleared, and artifacts published by dropped turns are deleted.
Copies of agent exchanges mirrored into a topic or chat are independent of agent rewinds, and vice versa.
Experimental
Agent rewind uses an experimental Copilot SDK API, which may change.
Restoring files
Tick Also restore N files (unticked every time) in the confirmation bar to revert files the dropped turns created, edited or deleted. Show files lists them with lines added/removed.


- Files return to their state before the first dropped turn. Files you changed afterwards are left alone; a note says what was restored or skipped and why.
- Restore runs before the conversation is cut; if it fails, the conversation is untouched and Precursor says whether every file was put back.
- Requires a session that tracked file changes from its first turn: on by default, controlled by Track file changes for rewind in Settings → Agents. Older or remote sessions keep their files.
Runs on the rail
With All runs selected, the rail shows every run's turns separated by gaps; the card names the run (Run #12 · Schedule). Rewindable runs are marked current session.
Keyboard
Tab to the rail, then:
| Key | Action |
|---|---|
| ↑ / ↓, Home / End | Move between turns |
| Enter | Jump to the turn |
| R | Preview Rewind here |
| E | Preview Edit & resend |
| Esc | Close the card or cancel a preview |
Screen readers announce each dash as "Turn N of M" plus its prompt.
Over the API
Topics and chats: GET …/messages/turns, POST …/messages/rewind. Agents: GET /api/agents/{id}/rewind/preview, POST /api/agents/{id}/rewind. See the API reference.