junecoder 1.0.14 → 1.0.16
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/package.json +1 -1
- package/tui.mjs +4 -1
package/package.json
CHANGED
package/tui.mjs
CHANGED
|
@@ -261,7 +261,8 @@ export async function startTUI(agent, opts = {}) {
|
|
|
261
261
|
const frame = out.join("\r\n");
|
|
262
262
|
if (frame !== lastFrame) { lastFrame = frame; process.stdout.write(frame); }
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
const inReason = state.permission?.reasonMode;
|
|
265
|
+
if (state.question || (state.permission && !inReason) || (state.processing && !inReason)) process.stdout.write(ansi.hideCursor);
|
|
265
266
|
else {
|
|
266
267
|
const cursorRow = 1 + convH + taskPanelH + subOutLen + permPreviewLen + 2 + (layout.cursorLine - inputOffset);
|
|
267
268
|
const cursorCol = 3 + layout.cursorCol;
|
|
@@ -534,7 +535,9 @@ export async function startTUI(agent, opts = {}) {
|
|
|
534
535
|
if (typeof raw === "string") state.lines.push({ text: raw, color: C.text });
|
|
535
536
|
else if (raw && typeof raw.text === "string") state.lines.push(raw);
|
|
536
537
|
}
|
|
538
|
+
if (restored.history) agent.history = restored.history;
|
|
537
539
|
if (restored.tasks) { state.tasks = restored.tasks; agent.tasks = restored.tasks; }
|
|
540
|
+
if (restored.goal) agent.goal = restored.goal;
|
|
538
541
|
if (restored.planMode !== undefined) agent.planMode = restored.planMode;
|
|
539
542
|
state.status = "Session restored";
|
|
540
543
|
} else if (!setupMode) {
|