fix: lỗi cài đặt AI prompt

This commit is contained in:
2026-07-21 22:42:24 +07:00
parent 04403b0af7
commit 90ab2c1824
3 changed files with 9 additions and 10 deletions
+4 -5
View File
@@ -8063,7 +8063,7 @@ const App = () => {
}, /*#__PURE__*/React.createElement("i", {
"data-lucide": "sparkles",
className: "w-3 h-3"
})), " Loop"))), /*#__PURE__*/React.createElement("div", {
})), " Loop")), /*#__PURE__*/React.createElement("div", {
className: "border-t border-zinc-800 pt-1.5 mt-1"
}, /*#__PURE__*/React.createElement("div", {
className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1"
@@ -8081,13 +8081,13 @@ const App = () => {
onKeyDown: e => {
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
executeAIPrompt();
window.executeAIPrompt();
}
}
}), /*#__PURE__*/React.createElement("div", {
className: "flex items-center gap-1 mt-1"
}, /*#__PURE__*/React.createElement("button", {
onClick: executeAIPrompt,
onClick: () => window.executeAIPrompt(),
disabled: aiProcessing,
className: "flex-1 py-1 bg-purple-700 hover:bg-purple-600 text-white font-bold rounded text-[10px] border border-purple-500 flex items-center justify-center gap-1"
}, aiProcessing ? 'Đang suy luận...' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
@@ -8133,8 +8133,7 @@ const App = () => {
}, "Chưa có hành động nào.") : aiActionLog.map((entry, i) => /*#__PURE__*/React.createElement("div", {
key: i,
className: `text-[9px] font-mono py-0.5 border-b border-zinc-900 last:border-0 ${entry.type === 'error' ? 'text-red-400' : entry.type === 'status' ? 'text-zinc-400 italic' : entry.type === 'undo' ? 'text-amber-400' : 'text-zinc-300'}`
}, new Date(entry.time).toLocaleTimeString(), entry.text)));
if (panelId === 'python_tools') return /*#__PURE__*/React.createElement("div", {
}, new Date(entry.time).toLocaleTimeString(), entry.text)))); return /*#__PURE__*/React.createElement("div", {
className: "flex flex-col h-full gap-1.5"
}, /*#__PURE__*/React.createElement("div", {
className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none",