mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
A turn is the assistant steps that follow a user message up to the next user message, so a steer is its own turn. That is fully derivable from session_message, so the session_turn projection, its migration, the turn list route, and the Session.Turn contract go away. session.diff takes messageID (default: newest user message) plus an optional to for contiguous ranges, resolves the range's Location from location-switched messages, and only compares against the working copy while the Session is actively executing. Shared missingMessage and failedSnapshot handler helpers replace the inlined mappings. |
||
|---|---|---|
| .. | ||
| agent.test.ts | ||
| compatibility.test.ts | ||
| config.test.ts | ||
| contract-hygiene.test.ts | ||
| event-manifest.test.ts | ||
| event.test.ts | ||
| legacy-event.test.ts | ||
| mcp.test.ts | ||
| model.test.ts | ||
| session-error.test.ts | ||
| session-terminal.test.ts | ||
| token-usage.test.ts | ||
| v1-isolation.test.ts | ||
| vcs.test.ts | ||
| worktree.test.ts | ||