MCPcopy Index your code
hub / github.com/codeaashu/claude-code / queuePendingMessage

Function queuePendingMessage

src/tasks/LocalAgentTask/LocalAgentTask.tsx:162–167  ·  view source on GitHub ↗
(taskId: string, msg: string, setAppState: (f: (prev: AppState) => AppState) => void)

Source from the content-addressed store, hash-verified

160 return isLocalAgentTask(t) && t.agentType !== 'main-session';
161}
162export function queuePendingMessage(taskId: string, msg: string, setAppState: (f: (prev: AppState) => AppState) => void): void {
163 updateTaskState<LocalAgentTaskState>(taskId, setAppState, task => ({
164 ...task,
165 pendingMessages: [...task.pendingMessages, msg]
166 }));
167}
168
169/**
170 * Append a message to task.messages so it appears in the viewed transcript

Callers 2

callFunction · 0.85
REPLFunction · 0.85

Calls 1

updateTaskStateFunction · 0.50

Tested by

no test coverage detected