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

Function isEnabled

src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts:167–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 },
166 shouldDefer: true,
167 isEnabled() {
168 // When --channels is active the user is likely on Telegram/Discord, not
169 // watching the TUI. The plan-approval dialog would hang. Paired with the
170 // same gate on EnterPlanMode so plan mode isn't a trap.
171 if (
172 (feature('KAIROS') || feature('KAIROS_CHANNELS')) &&
173 getAllowedChannels().length > 0
174 ) {
175 return false
176 }
177 return true
178 },
179 isConcurrencySafe() {
180 return true
181 },

Callers

nothing calls this directly

Calls 2

featureFunction · 0.85
getAllowedChannelsFunction · 0.85

Tested by

no test coverage detected