Skip to content

Function: isNavigatingBranch()

Makaio Framework


Makaio Framework / contracts/session / isNavigatingBranch

isNavigatingBranch(kind): boolean

Defined in: ../../../packages/contracts/src/session/utils/branch-kind.ts:120

Branches that navigate away from parent.

  • fork: Independent exploration (navigates to new session)
  • compress: Context-reset continuation (navigates to compressed session)
  • rewrite: Edited history navigating to the rewritten version
  • null / undefined: Legacy behavior (pre-branchKind era)

"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator" | null | undefined

Branch kind to check

boolean

True if opening the branch navigates away from the parent session