@agents24/chat-react 0.5.20 → 0.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.cjs CHANGED
@@ -1142,7 +1142,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
1142
1142
  function QueueRow({ message, onRemove, onEdit }) {
1143
1143
  const [busy, setBusy] = React4.useState(false);
1144
1144
  const [error, setError] = React4.useState(null);
1145
- const editable = message.status === "queued" || message.status === "blocked";
1145
+ const editable = message.revision > 0 && (message.status === "queued" || message.status === "blocked");
1146
1146
  const act = async (operation) => {
1147
1147
  setBusy(true);
1148
1148
  setError(null);
@@ -1201,7 +1201,7 @@ function AgentChatQueue({ pending, queue, onRemove, onEdit, onResume, className
1201
1201
  }, className: "font-medium text-foreground hover:underline", children: "Resume queue" })
1202
1202
  ] }) : null,
1203
1203
  resumeError ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { role: "alert", className: "px-3 pb-2 text-xs text-destructive", children: resumeError }) : null,
1204
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "max-h-40 overflow-y-auto", children: pending.map((message) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(QueueRow, { message, onRemove, onEdit }, message.id)) })
1204
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "max-h-40 overflow-y-auto", children: pending.map((message) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(QueueRow, { message, onRemove, onEdit }, message.client_submission_id || message.id)) })
1205
1205
  ] });
1206
1206
  }
1207
1207