worktreeModeEnabled.ts
utils/worktreeModeEnabled.ts
12
Lines
415
Bytes
1
Exports
0
Imports
10
Keywords
What this is
This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.
Beginner explanation
This file is one piece of the larger system. Its name, directory, imports, and exports show where it fits. Start by reading the exports and related files first.
How it is used
Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.
Expert explanation
Architecturally, this file intersects with modes. It contains 12 lines, 0 detected imports, and 1 detected exports.
Important relationships
Detected exports
isWorktreeModeEnabled
Keywords
worktreemodeunconditionallyenableduserspreviouslygatedgrowthbookflagtengu_worktree_mode
Detected imports
- No import paths detected.
Source notes
This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.
Full source
/**
* 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
}