πŸ“„ File detail

utils/worktreeModeEnabled.ts

🧩 .tsπŸ“ 12 linesπŸ’Ύ 415 bytesπŸ“ text
← Back to All Files

🎯 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
}