Add skipConversationRestore for before_branch hooks (#286)

This commit is contained in:
Nico Bailon 2025-12-22 18:26:08 -08:00 committed by GitHub
parent 4492a3f304
commit 2953a9d8d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View file

@ -323,6 +323,8 @@ export interface ToolResultEventResult {
export interface SessionEventResult {
/** If true, cancel the pending action (switch, clear, or branch) */
cancel?: boolean;
/** If true (for before_branch only), skip restoring conversation to branch point while still creating the branched session file */
skipConversationRestore?: boolean;
}
// ============================================================================