π File detail
utils/worktreeModeEnabled.ts
π― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes isWorktreeModeEnabled β mainly functions, hooks, or classes. What the file header says: Worktree mode is now unconditionally enabled for all users. Previously gated by GrowthBook flag 'tengu_worktree_mode', but the CACHED_MAY_BE_STALE pattern returns the default (false) on first launch before the cache is populated, silently swallowing --worktree. See https://github.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
Worktree mode is now unconditionally enabled for all users. Previously gated by GrowthBook flag 'tengu_worktree_mode', but the CACHED_MAY_BE_STALE pattern returns the default (false) on first launch before the cache is populated, silently swallowing --worktree. See https://github.com/anthropics/claude-code/issues/27044.
π€ Exports (heuristic)
isWorktreeModeEnabled
π₯οΈ Source preview
/**
* Worktree mode is now unconditionally enabled for all users.
*
* Previously gated by GrowthBook flag 'tengu_worktree_mode', but the
* CACHED_MAY_BE_STALE pattern returns the default (false) on first launch
* before the cache is populated, silently swallowing --worktree.
* See https://github.com/anthropics/claude-code/issues/27044.
*/
export function isWorktreeModeEnabled(): boolean {
return true
}