MCPcopy
hub / github.com/codeaashu/claude-code / isEnabled

Function isEnabled

src/tools/EnterPlanModeTool/EnterPlanModeTool.ts:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 },
55 shouldDefer: true,
56 isEnabled() {
57 // When --channels is active, ExitPlanMode is disabled (its approval
58 // dialog needs the terminal). Disable entry too so plan mode isn't a
59 // trap the model can enter but never leave.
60 if (
61 (feature('KAIROS') || feature('KAIROS_CHANNELS')) &&
62 getAllowedChannels().length > 0
63 ) {
64 return false
65 }
66 return true
67 },
68 isConcurrencySafe() {
69 return true
70 },

Callers

nothing calls this directly

Calls 2

featureFunction · 0.85
getAllowedChannelsFunction · 0.85

Tested by

no test coverage detected