@oxecli/oxe 1.0.101 → 1.0.102

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.
Files changed (2) hide show
  1. package/dist/ui.js +7 -4
  2. package/package.json +1 -1
package/dist/ui.js CHANGED
@@ -770,10 +770,13 @@ export function dockRenderPrompt(buffer, pasteSpans, prefix, label, hints) {
770
770
  const { frame, cursorRow, cursorCol, totalRows } = renderBufferWithCursor(buffer, pasteSpans, prefix, label, buffer.length, hints);
771
771
  dockEraseBox();
772
772
  if (wasTransient) {
773
- // Rebuild the transient row(s) and gap above the new frame, then park the
774
- // physical cursor at the transient row so the running spinner keeps
775
- // drawing THERE instead of inside the prompt box.
776
- process.stdout.write("\n".repeat(wasRel) + frame);
773
+ // dockEraseBox has left the transient row and gap still present above the
774
+ // box-top row (cleared but physically occupying rows R-2 and R-1). Write
775
+ // the frame at R and park the cursor back on the transient row (R-2) so the
776
+ // running spinner keeps drawing THERE instead of on/inside the box. Do NOT
777
+ // write any leading newlines: they would push the box down and add a blank
778
+ // row on every keystroke.
779
+ process.stdout.write(frame);
777
780
  process.stdout.write(`\x1b[${totalRows - 1 + wasRel}A\r`);
778
781
  dockSetFrame(frame, totalRows);
779
782
  docked = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxecli/oxe",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },