Sign in with letta cloud (#44)

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-10-31 14:47:21 -07:00
committed by GitHub
parent af5a2fa68a
commit e384672a5a
11 changed files with 555 additions and 23 deletions

View File

@@ -258,7 +258,7 @@ export async function handleHeadlessCommand(argv: string[], model?: string) {
{ toolName: string; args: string }
>();
const autoApprovalEmitted = new Set<string>();
let lastApprovalId: string | null = null;
let _lastApprovalId: string | null = null;
for await (const chunk of stream) {
// Detect server conflict due to pending approval; handle it and retry
@@ -309,7 +309,7 @@ export async function handleHeadlessCommand(argv: string[], model?: string) {
for (const toolCall of toolCalls) {
if (toolCall?.tool_call_id && toolCall?.name) {
const id = toolCall.tool_call_id;
lastApprovalId = id;
_lastApprovalId = id;
// Prefer the most complete args we have seen so far; concatenate deltas
const prev = approvalRequests.get(id);