app-server: support turn-based thread forks

This commit is contained in:
Yaroslav Volovich
2026-02-23 13:47:41 +00:00
parent be5bca6f8d
commit 8b57fdd973
6 changed files with 618 additions and 11 deletions

View File

@@ -19,6 +19,10 @@ export type ThreadForkParams = {threadId: string, /**
* If specified, the thread_id param will be ignored.
*/
path?: string | null, /**
* [UNSTABLE] Fork after the specified historical turn (inclusive).
* When omitted, the full thread history is copied.
*/
forkAfterTurnId?: string | null, /**
* Configuration overrides for the forked thread, if any.
*/
model?: string | null, modelProvider?: string | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, sandbox?: SandboxMode | null, config?: { [key in string]?: JsonValue } | null, baseInstructions?: string | null, developerInstructions?: string | null, /**