orquesta-cli 0.2.76 → 0.2.77
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.
|
@@ -517,6 +517,24 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
517
517
|
await closeJsonStreamLogger();
|
|
518
518
|
exit();
|
|
519
519
|
}, [exit]);
|
|
520
|
+
const [resizeTick, setResizeTick] = useState(0);
|
|
521
|
+
useEffect(() => {
|
|
522
|
+
let timer = null;
|
|
523
|
+
const onResize = () => {
|
|
524
|
+
if (timer)
|
|
525
|
+
clearTimeout(timer);
|
|
526
|
+
timer = setTimeout(() => {
|
|
527
|
+
process.stdout.write('\x1b[2J\x1b[3J\x1b[H');
|
|
528
|
+
setResizeTick((t) => t + 1);
|
|
529
|
+
}, 150);
|
|
530
|
+
};
|
|
531
|
+
process.stdout.on('resize', onResize);
|
|
532
|
+
return () => {
|
|
533
|
+
if (timer)
|
|
534
|
+
clearTimeout(timer);
|
|
535
|
+
process.stdout.off('resize', onResize);
|
|
536
|
+
};
|
|
537
|
+
}, []);
|
|
520
538
|
useInput((inputChar, key) => {
|
|
521
539
|
if (key.ctrl && inputChar === 'c') {
|
|
522
540
|
const now = Date.now();
|
|
@@ -1440,7 +1458,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
1440
1458
|
}
|
|
1441
1459
|
};
|
|
1442
1460
|
return (React.createElement(Box, { flexDirection: "column", height: "100%" },
|
|
1443
|
-
React.createElement(Static, { items: logEntries }, (entry) => renderLogEntry(entry)),
|
|
1461
|
+
React.createElement(Static, { key: resizeTick, items: logEntries }, (entry) => renderLogEntry(entry)),
|
|
1444
1462
|
pendingToolApproval && (React.createElement(Box, { marginY: 1 },
|
|
1445
1463
|
React.createElement(ApprovalDialog, { toolName: pendingToolApproval.toolName, args: pendingToolApproval.args, reason: pendingToolApproval.reason, onResponse: handleApprovalResponse }))),
|
|
1446
1464
|
isProcessing && !pendingToolApproval && !isDocsSearching && (React.createElement(Box, { marginY: 1, flexDirection: "column" },
|