open-agents-ai 0.187.214 → 0.187.215

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 +12 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -280923,11 +280923,12 @@ function layout() {
280923
280923
  const footerBoxBottom = footerMetrics - 1;
280924
280924
  const footerBoxTop = rows - fh + 1;
280925
280925
  const footerInput = footerBoxTop + 1;
280926
+ const FOOTER_SPACER_ROWS = 1;
280926
280927
  let tasksBottom;
280927
280928
  let tasksTop;
280928
280929
  let contentBottom;
280929
280930
  if (th > 0) {
280930
- tasksBottom = footerBoxTop - 1;
280931
+ tasksBottom = footerBoxTop - 1 - FOOTER_SPACER_ROWS;
280931
280932
  tasksTop = tasksBottom - th + 1;
280932
280933
  contentBottom = tasksTop - 1 - CONTENT_SPACER_ROWS;
280933
280934
  } else {
@@ -290649,15 +290650,15 @@ ${CONTENT_BG_SEQ}`);
290649
290650
  this._contentLines.splice(-n2, n2);
290650
290651
  if (this.active) this.refreshDisplay();
290651
290652
  }
290652
- /** Number of visible content rows */
290653
+ /** Number of visible content rows. Derived directly from layout() so it
290654
+ * always matches the same source of truth used by the tasks renderer
290655
+ * and the spacer math. Previous version hard-coded SPACER_ROWS = 1,
290656
+ * which got out of sync when the FOOTER_SPACER_ROWS row was added
290657
+ * below the tasks panel — leaving content writes that overlapped the
290658
+ * tasks panel or the footer spacer. */
290653
290659
  get contentHeight() {
290654
290660
  const L = layout();
290655
- const tasksRows = L.tasksHeight;
290656
- const SPACER_ROWS = 1;
290657
- return Math.max(
290658
- 1,
290659
- termRows() - (this.scrollRegionTop - 1) - this._currentFooterHeight - tasksRows - SPACER_ROWS
290660
- );
290661
+ return Math.max(1, L.contentBottom - this.scrollRegionTop + 1);
290661
290662
  }
290662
290663
  /** Whether user has scrolled back from live */
290663
290664
  get isScrolledBack() {
@@ -291272,8 +291273,10 @@ ${CONTENT_BG_SEQ}`);
291272
291273
  let buf = "\x1B[?7l";
291273
291274
  const boxInner = w - 2;
291274
291275
  buf += `\x1B[${pos.inputStartRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_TL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_TR}${RESET2}`;
291276
+ const Lspacer = layout();
291275
291277
  const spacerRow = pos.inputStartRow - 1;
291276
- if (spacerRow >= this.scrollRegionTop) {
291278
+ const tasksOccupiesSpacer = Lspacer.tasksHeight > 0 && spacerRow >= Lspacer.tasksTop && spacerRow <= Lspacer.tasksBottom;
291279
+ if (spacerRow >= this.scrollRegionTop && !tasksOccupiesSpacer) {
291277
291280
  buf += `\x1B[${spacerRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET2}`;
291278
291281
  }
291279
291282
  for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.214",
3
+ "version": "0.187.215",
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",