Feat add autocomplete (#18)

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-10-28 14:24:56 -07:00
committed by GitHub
parent 4ac4412fcc
commit 948684dfac
9 changed files with 711 additions and 28 deletions

View File

@@ -147,7 +147,14 @@ export async function handleHeadlessCommand(argv: string[]) {
// Track approval requests
if (chunk.messageType === "approval_request_message") {
const toolCall = (chunk as any).toolCall;
const chunkWithToolCall = chunk as typeof chunk & {
toolCall?: {
toolCallId?: string;
name?: string;
arguments?: string;
};
};
const toolCall = chunkWithToolCall.toolCall;
if (toolCall?.toolCallId && toolCall?.name) {
approval = {
toolCallId: toolCall.toolCallId,