feat: reduce time-to-boot, remove default eager approval checks on inputs, auto-cancel stale approvals (#579)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-17 16:19:30 -08:00
committed by GitHub
parent f4eb921af7
commit 5f5c0df18e
13 changed files with 1376 additions and 93 deletions

View File

@@ -198,6 +198,19 @@ export interface RetryMessage extends MessageEnvelope {
run_id?: string;
}
/**
* Recovery message emitted when the CLI detects and recovers from errors.
* Used for approval state conflicts and other recoverable errors.
*/
export interface RecoveryMessage extends MessageEnvelope {
type: "recovery";
/** Type of recovery performed */
recovery_type: "approval_pending" | "approval_desync";
/** Human-readable description of what happened */
message: string;
run_id?: string;
}
// ═══════════════════════════════════════════════════════════════
// RESULT
// ═══════════════════════════════════════════════════════════════
@@ -329,6 +342,7 @@ export type WireMessage =
| AutoApprovalMessage
| ErrorMessage
| RetryMessage
| RecoveryMessage
| ResultMessage
| ControlResponse
| ControlRequest; // CLI → SDK control requests (e.g., can_use_tool)