feat: enhance Gmail draft update functionality

- Improved the update_gmail_draft tool to allow users to review and edit draft content before applying changes.
- Added logic to generate draft body content based on user requests and conversation context.
- Implemented fetching of existing draft body to facilitate user edits in the approval card.
- Updated UI components to support displaying and editing existing draft content, enhancing user experience.
This commit is contained in:
Anish Sarkar 2026-03-21 00:30:18 +05:30
parent ab6eeaf02e
commit cb6b687933
6 changed files with 132 additions and 18 deletions

View file

@ -5,7 +5,6 @@ import {
CornerDownLeftIcon,
MailIcon,
Pen,
SendIcon,
UserIcon,
UsersIcon,
} from "lucide-react";
@ -193,7 +192,6 @@ function ApprovalCard({
{/* Header */}
<div className="flex items-start justify-between px-5 pt-5 pb-4 select-none">
<div className="flex items-center gap-2">
<SendIcon className="size-4 text-muted-foreground shrink-0" />
<div>
<p className="text-sm font-semibold text-foreground">
{decided === "reject"