Agents
Claude Agent SDK 0.2.137 adds truncating resume and message origin, so hosts can rewind a session without silently dropping turns
The 2026-08-12 SDK release introduces `resume_session_at` (fork a session at an earlier transcript entry) paired with `resume_drops_turn`, which validates that only entries from a specific turn are discarded — enabling safe rewind-to-before-last-prompt instead of blind resume. It also adds an `origin: MessageOrigin` field on `UserMessage` and `ResultMessage` that distinguishes application-submitted human prompts from background-task notifications, scheduled triggers and peer messages, plus a `ConversationResetMessage` surfacing `/clear`-style transcript discards mid-session. Both widen the `Message` union, so exhaustive `assert_never` matches break.
↳ Follow the thread