Function: isInViewBranch()
Makaio Framework / contracts / isInViewBranch
Function: isInViewBranch()
Section titled “Function: isInViewBranch()”isInViewBranch(
kind):boolean
Defined in: ../../../packages/contracts/src/session/utils/branch-kind.ts:107
Branches that stay in view (don’t navigate away).
branch: Parallel work that may merge backsubagent: Spawned worker within current contextcoordinator: Orchestration/session-management nodeaside: Ephemeral Q&A rendered inline in parent
null and undefined represent legacy sessions without a branch kind;
use the individual predicates directly for those cases rather than
getBranchBehavior.
Parameters
Section titled “Parameters”"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator" | null | undefined
Branch kind to check
Returns
Section titled “Returns”boolean
True if the branch stays visible in the parent session view