feat: add plan viewer with browser preview (LET-7645) (#1089)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user