add HITL tool argument editing with approval UI

Enables users to edit tool call arguments before execution in human-in-the-loop
workflows. Adds edit mode UI with form fields, grayscale styling, and subtle
pulse animations for pending approvals. Backend stub enhanced to verify edited
arguments are correctly passed through.
This commit is contained in:
CREDO23 2026-02-11 15:43:07 +02:00
parent 5d1c386105
commit 2ef2474058
5 changed files with 216 additions and 71 deletions

View file

@ -187,5 +187,21 @@ button {
background-color: hsl(var(--muted-foreground) / 0.4);
}
/* Human-in-the-loop approval card animations */
@keyframes pulse-subtle {
0%, 100% {
opacity: 1;
box-shadow: 0 0 0 0 rgb(0 0 0 / 0.15);
}
50% {
opacity: 1;
box-shadow: 0 0 20px 4px rgb(0 0 0 / 0.12);
}
}
.animate-pulse-subtle {
animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@source '../node_modules/@llamaindex/chat-ui/**/*.{ts,tsx}';
@source '../node_modules/streamdown/dist/*.js';