orquesta-cli 0.2.59 → 0.2.60
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.
|
@@ -154,6 +154,14 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
154
154
|
setPendingUserMessage(null);
|
|
155
155
|
},
|
|
156
156
|
}), []);
|
|
157
|
+
useEffect(() => {
|
|
158
|
+
if (!isProcessing && pendingUserMessage) {
|
|
159
|
+
const msg = pendingUserMessage;
|
|
160
|
+
setPendingUserMessage(null);
|
|
161
|
+
pendingUserMessageRef.current = null;
|
|
162
|
+
setTimeout(() => { handleSubmitRef.current?.(msg); }, 50);
|
|
163
|
+
}
|
|
164
|
+
}, [isProcessing, pendingUserMessage]);
|
|
157
165
|
const lastCtrlCTimeRef = React.useRef(0);
|
|
158
166
|
const DOUBLE_TAP_THRESHOLD = 1500;
|
|
159
167
|
const handleSubmitRef = React.useRef(() => { });
|
|
@@ -1118,6 +1126,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
1118
1126
|
processAndExecute();
|
|
1119
1127
|
}
|
|
1120
1128
|
}, [isProcessing, pendingUserMessage, llmClient, messages, planExecutionState, addLog]);
|
|
1129
|
+
handleSubmitRef.current = handleSubmit;
|
|
1121
1130
|
if (isInitializing) {
|
|
1122
1131
|
const getInitStepText = () => {
|
|
1123
1132
|
switch (initStep) {
|