@agents24/chat-react 0.5.19 → 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 +2 -2
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
package/dist/ui/index.js
CHANGED
|
@@ -1036,7 +1036,7 @@ import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
|
1036
1036
|
function QueueRow({ message, onRemove, onEdit }) {
|
|
1037
1037
|
const [busy, setBusy] = React4.useState(false);
|
|
1038
1038
|
const [error, setError] = React4.useState(null);
|
|
1039
|
-
const editable = message.status === "queued" || message.status === "blocked";
|
|
1039
|
+
const editable = message.revision > 0 && (message.status === "queued" || message.status === "blocked");
|
|
1040
1040
|
const act = async (operation) => {
|
|
1041
1041
|
setBusy(true);
|
|
1042
1042
|
setError(null);
|
|
@@ -1095,7 +1095,7 @@ function AgentChatQueue({ pending, queue, onRemove, onEdit, onResume, className
|
|
|
1095
1095
|
}, className: "font-medium text-foreground hover:underline", children: "Resume queue" })
|
|
1096
1096
|
] }) : null,
|
|
1097
1097
|
resumeError ? /* @__PURE__ */ jsx4("p", { role: "alert", className: "px-3 pb-2 text-xs text-destructive", children: resumeError }) : null,
|
|
1098
|
-
/* @__PURE__ */ jsx4("div", { className: "max-h-40 overflow-y-auto", children: pending.map((message) => /* @__PURE__ */ jsx4(QueueRow, { message, onRemove, onEdit }, message.id)) })
|
|
1098
|
+
/* @__PURE__ */ jsx4("div", { className: "max-h-40 overflow-y-auto", children: pending.map((message) => /* @__PURE__ */ jsx4(QueueRow, { message, onRemove, onEdit }, message.client_submission_id || message.id)) })
|
|
1099
1099
|
] });
|
|
1100
1100
|
}
|
|
1101
1101
|
|