Files
orca/src/shared/worktree-first-surface.ts
T
Jinjing 005f06bbc7 Run automated workspace setup in a dedicated Setup tab (#29819)
* Run automated workspace setup in a dedicated tab

* Preserve native-chat setup route coverage after placement retirement

* Preserve Setup tab design and independent review evidence

* Classify activation test fixtures consistently for routing checks

* Sync runtime English catalog after removing setup preferences

* Update listener savings model after retiring setup action
2026-10-16 14:05:50 -07:00

15 lines
462 B
TypeScript

/** Creation intent belongs to this call, never to persisted agent provenance. */
export function shouldSeedWorktreePrimaryTerminal(args: {
hasPrimarySurface: boolean
callerProvidesSurface: boolean
startupNeedsTerminal?: boolean
issueCommandNeedsTerminal?: boolean
}): boolean {
return (
!args.hasPrimarySurface &&
(!args.callerProvidesSurface ||
args.startupNeedsTerminal === true ||
args.issueCommandNeedsTerminal === true)
)
}