orquesta-cli 0.2.58 → 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(() => { });
|
|
@@ -215,6 +223,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
215
223
|
setToolExecutionCallback((toolName, reason, args) => {
|
|
216
224
|
lastToolArgsRef.current = args;
|
|
217
225
|
setCurrentToolName(toolName);
|
|
226
|
+
setActivityDetail(reason || '');
|
|
218
227
|
addLog({
|
|
219
228
|
type: 'tool_start',
|
|
220
229
|
content: toolName,
|
|
@@ -1117,6 +1126,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
1117
1126
|
processAndExecute();
|
|
1118
1127
|
}
|
|
1119
1128
|
}, [isProcessing, pendingUserMessage, llmClient, messages, planExecutionState, addLog]);
|
|
1129
|
+
handleSubmitRef.current = handleSubmit;
|
|
1120
1130
|
if (isInitializing) {
|
|
1121
1131
|
const getInitStepText = () => {
|
|
1122
1132
|
switch (initStep) {
|
|
@@ -1440,7 +1450,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
1440
1450
|
pendingToolApproval && (React.createElement(Box, { marginY: 1 },
|
|
1441
1451
|
React.createElement(ApprovalDialog, { toolName: pendingToolApproval.toolName, args: pendingToolApproval.args, reason: pendingToolApproval.reason, onResponse: handleApprovalResponse }))),
|
|
1442
1452
|
isProcessing && !pendingToolApproval && !isDocsSearching && (React.createElement(Box, { marginY: 1, flexDirection: "column" },
|
|
1443
|
-
React.createElement(ActivityIndicator, { activity: getCurrentActivityType(), startTime: activityStartTime, detail: activityDetail, subActivities: subActivities, modelName: currentModelInfo.model }),
|
|
1453
|
+
React.createElement(ActivityIndicator, { activity: getCurrentActivityType(), startTime: activityStartTime, detail: activityDetail || currentToolName || '', subActivities: subActivities, modelName: currentModelInfo.model }),
|
|
1444
1454
|
streamingText && (React.createElement(StreamingOutput, { text: streamingText })))),
|
|
1445
1455
|
isDocsSearching && (React.createElement(DocsSearchProgress, { logs: docsSearchLogs, isSearching: isDocsSearching })),
|
|
1446
1456
|
planExecutionState.todos.length > 0 && (React.createElement(Box, { marginTop: 2, marginBottom: 1 },
|