MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / currentTuiConfig

Function currentTuiConfig

apps/kimi-code/src/tui/commands/config.ts:38–46  ·  view source on GitHub ↗
(host: SlashCommandHost)

Source from the content-addressed store, hash-verified

36const MODEL_PICKER_REFRESH_TIMEOUT_MS = 2_000;
37
38function currentTuiConfig(host: SlashCommandHost): TuiConfig {
39 return {
40 theme: host.state.appState.theme,
41 editorCommand: host.state.appState.editorCommand,
42 disablePasteBurst: host.state.appState.disablePasteBurst ?? DEFAULT_TUI_CONFIG.disablePasteBurst,
43 notifications: host.state.appState.notifications,
44 upgrade: host.state.appState.upgrade,
45 };
46}
47
48export async function handlePlanCommand(host: SlashCommandHost, args: string): Promise<void> {
49 const session = host.session;

Callers 3

applyEditorChoiceFunction · 0.85
applyThemeChoiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected