mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
Part two of making confirmation optional - add flag to ToolData so the button won't show in the UI
This commit is contained in:
@@ -27,7 +27,7 @@ const LLMResponse = memo(({ data, onConfirm, isLastMessage, onHeightChange }) =>
|
||||
: data?.response;
|
||||
|
||||
const displayText = (response || '').trim();
|
||||
const requiresConfirm = data.next === "confirm" && isLastMessage;
|
||||
const requiresConfirm = data.force_confirm && data.next === "confirm" && isLastMessage;
|
||||
const defaultText = requiresConfirm
|
||||
? `Agent is ready to run "${data.tool}". Please confirm.`
|
||||
: '';
|
||||
|
||||
Reference in New Issue
Block a user