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

Function isEnabled

src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx:135–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 return '';
134 },
135 isEnabled() {
136 // When --channels is active the user is likely on Telegram/Discord, not
137 // watching the TUI. The multiple-choice dialog would hang with nobody at
138 // the keyboard. Channel permission relay already skips
139 // requiresUserInteraction() tools (interactiveHandler.ts) so there's
140 // no alternate approval path.
141 if ((feature('KAIROS') || feature('KAIROS_CHANNELS')) && getAllowedChannels().length > 0) {
142 return false;
143 }
144 return true;
145 },
146 isConcurrencySafe() {
147 return true;
148 },

Callers

nothing calls this directly

Calls 2

featureFunction · 0.85
getAllowedChannelsFunction · 0.85

Tested by

no test coverage detected