Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: disable attachment remove button while sending

[._.]/ Adam Eivy81d7d6c70243
diff --git a/client/src/pages/OpenClaw.jsx b/client/src/pages/OpenClaw.jsx
index b2a6b5f0b4..ffbb03a54b 100644
--- a/client/src/pages/OpenClaw.jsx
+++ b/client/src/pages/OpenClaw.jsx
@@ -900,9 +900,11 @@ export default function OpenClaw() {
</div>
<button
type="button"
- onClick={() => removeAttachment(attachment.id)}
- className="text-gray-400 hover:text-white"
- aria-label={`Remove ${attachment.name}`}
+ onClick={() => { if (!sending) removeAttachment(attachment.id); }}
+ disabled={sending}
+ className="text-gray-400 hover:text-white disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:text-gray-400"
+ aria-label={sending ? `${attachment.name} is locked while sending` : `Remove ${attachment.name}`}
+ title={sending ? 'Attachments are locked while sending' : `Remove ${attachment.name}`}
>
<X size={14} />
</button>