open-agents-ai 0.187.68 → 0.187.69

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/index.js +11 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -278381,6 +278381,8 @@ var init_status_bar = __esm({
278381
278381
  _suggestDelayTimer = null;
278382
278382
  /** Whether suggestions were manually dismissed via Esc */
278383
278383
  _suggestDismissed = false;
278384
+ /** Suppress hookStdin redraws during Enter processing to prevent cursor shift */
278385
+ _suppressStdinRedraw = false;
278384
278386
  /** Callback to get available slash commands for suggestion matching */
278385
278387
  _commandListProvider = null;
278386
278388
  /** Callback to apply a selected suggestion to the input line */
@@ -280644,9 +280646,13 @@ ${CONTENT_BG_SEQ}`);
280644
280646
  const currentLine = rl.line ?? "";
280645
280647
  rl.line = "";
280646
280648
  rl.cursor = 0;
280649
+ self2._suppressStdinRedraw = true;
280647
280650
  self2.updateFooterHeight();
280648
280651
  self2.renderFooterAndPositionInput();
280649
- setImmediate(() => rl.emit("line", currentLine));
280652
+ rl.emit("line", currentLine);
280653
+ setImmediate(() => {
280654
+ self2._suppressStdinRedraw = false;
280655
+ });
280650
280656
  return;
280651
280657
  }
280652
280658
  if (self2.inputStateProvider && key?.name !== "backspace") {
@@ -280711,7 +280717,11 @@ ${CONTENT_BG_SEQ}`);
280711
280717
  process.stdin.on("data", () => {
280712
280718
  if (!this.active)
280713
280719
  return;
280720
+ if (this._suppressStdinRedraw)
280721
+ return;
280714
280722
  setImmediate(() => {
280723
+ if (this._suppressStdinRedraw)
280724
+ return;
280715
280725
  if (this.writeDepth > 0) {
280716
280726
  this.renderInputRowDuringStream();
280717
280727
  } else {
@@ -281003,7 +281013,6 @@ function tuiSelect(opts) {
281003
281013
  if (remaining > 0) {
281004
281014
  lines.push(` ${selectColors.dim(` \u25BC ${remaining} more`)}`);
281005
281015
  }
281006
- lines.push("");
281007
281016
  if (deleteConfirmIdx >= 0) {
281008
281017
  lines.push(` ${selectColors.dim("\u2190/\u2192 select Enter confirm Esc cancel")}`);
281009
281018
  } else {
@@ -281013,7 +281022,6 @@ function tuiSelect(opts) {
281013
281022
  const escLabel = filter2 ? "clear filter" : hasBreadcrumbs ? "\u2190 back" : "cancel";
281014
281023
  lines.push(` ${selectColors.dim("\u2191/\u2193 navigate Enter/Click select" + actionHint + deleteHint + customHint + " Esc " + escLabel + " Type to filter")}`);
281015
281024
  }
281016
- lines.push("");
281017
281025
  let output = lines.join("\n").replace(/\x1B\[0m/g, `\x1B[0m${tuiBgSeq()}`).replace(/\n/g, `\x1B[K
281018
281026
  ${tuiBgSeq()}`);
281019
281027
  overlayWrite(tuiBgSeq() + output + "\x1B[K");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.68",
3
+ "version": "0.187.69",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",