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

Method enqueueMessage

apps/kimi-code/src/tui/kimi-tui.ts:1161–1177  ·  view source on GitHub ↗
(
    text: string,
    options?: SendMessageOptions,
    mode?: 'prompt' | 'bash',
  )

Source from the content-addressed store, hash-verified

1159 // =========================================================================
1160
1161 private enqueueMessage(
1162 text: string,
1163 options?: SendMessageOptions,
1164 mode?: 'prompt' | 'bash',
1165 ): void {
1166 this.state.queuedMessages.push({
1167 text,
1168 agentId: this.harness.interactiveAgentId,
1169 parts: options?.parts,
1170 imageAttachmentIds:
1171 options?.imageAttachmentIds !== undefined && options.imageAttachmentIds.length > 0
1172 ? options.imageAttachmentIds
1173 : undefined,
1174 mode,
1175 });
1176 this.track('input_queue');
1177 }
1178
1179 beginSessionRequest(): void {
1180 this.streamingUI.setTurnId(undefined);

Callers 3

handleUserInputMethod · 0.95
sendMessageMethod · 0.95
steerMessageMethod · 0.95

Calls 2

trackMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected