[DOCS] Typescript SDK, session lifecycle, branching-out

Resolved 💬 4 comments Opened Sep 17, 2025 by a1q0 Closed Jan 9, 2026

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://docs.claude.com/en/docs/claude-code/sdk/sdk-sessions

Section/Topic

Session Lifecycle

What's Wrong or Missing?

In claude-code by double pressing \<escape\> key, it's possible to edit previous messages, which effectively branch-out / fork the conversation, while preserving the context that precedes it.

Can we programmatically do this with claude-code's SDK ?

Suggested Improvement

I suggest to write in the sdk docs that it's not supported, or otherwise to explain how.

Impact

High - Prevents users from using a feature

Additional Context

I couldn't find any similar issues apart from, or mentions in the documentation, even though it's a feature present in the terminal interface.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗