feat: add plan viewer with browser preview (LET-7645) (#1089)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-21 13:39:22 -08:00
committed by GitHub
parent 5ad7094a26
commit 5d8a832c00
7 changed files with 502 additions and 3 deletions

View File

@@ -11791,6 +11791,18 @@ Plan file path: ${planFilePath}`;
"project")
}
showPreview={showApprovalPreview}
planContent={
currentApproval.toolName === "ExitPlanMode"
? _readPlanFile()
: undefined
}
planFilePath={
currentApproval.toolName === "ExitPlanMode"
? (permissionMode.getPlanFilePath() ??
undefined)
: undefined
}
agentName={agentName ?? undefined}
/>
) : ln.kind === "user" ? (
<UserMessage line={ln} prompt={statusLine.prompt} />
@@ -11875,6 +11887,17 @@ Plan file path: ${planFilePath}`;
: (currentApprovalContext?.defaultScope ?? "project")
}
showPreview={showApprovalPreview}
planContent={
currentApproval.toolName === "ExitPlanMode"
? _readPlanFile()
: undefined
}
planFilePath={
currentApproval.toolName === "ExitPlanMode"
? (permissionMode.getPlanFilePath() ?? undefined)
: undefined
}
agentName={agentName ?? undefined}
/>
</Box>
)}