dsh-neotui 0.1.26 → 0.1.27

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/package.json +1 -1
  2. package/src/panels.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-neotui",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Neo-TUI: mouse-driven terminal UI client for DeepSeek Harness (B-tier per dsh-tui-design.md)",
5
5
  "type": "module",
6
6
  "bin": {
package/src/panels.js CHANGED
@@ -2215,11 +2215,12 @@ export class ModelPanel extends Widget {
2215
2215
  }
2216
2216
  if (this.scanMode) {
2217
2217
  if (ev.name === "escape") { this.scanMode = false; this.#rebuild(); return true; }
2218
- if (ev.name === "up") { this.scanCursor = Math.max(0, this.scanCursor - 1); this.app.redraw(); return true; }
2219
- if (ev.name === "down") { this.scanCursor = Math.min(this.scanItems.length - 1, this.scanCursor + 1); this.app.redraw(); return true; }
2218
+ if (ev.name === "up") { this.scanCursor = Math.max(0, this.scanCursor - 1); this.#rebuild(); this.app.redraw(); return true; }
2219
+ if (ev.name === "down") { this.scanCursor = Math.min(this.scanItems.length - 1, this.scanCursor + 1); this.#rebuild(); this.app.redraw(); return true; }
2220
2220
  if (ev.name === "char" && ev.key === " " && !ev.ctrl) {
2221
2221
  const m = this.scanItems[this.scanCursor];
2222
2222
  if (m) { if (this.scanSel.has(m.id)) this.scanSel.delete(m.id); else this.scanSel.add(m.id); }
2223
+ this.#rebuild();
2223
2224
  this.app.redraw();
2224
2225
  return true;
2225
2226
  }
@@ -2231,11 +2232,13 @@ export class ModelPanel extends Widget {
2231
2232
  if (ev.name === "escape") { this.sub = null; this.#rebuild(); return true; }
2232
2233
  if (ev.name === "up" || (ev.name === "char" && ev.key === "k" && !ev.ctrl)) {
2233
2234
  this.sub.cursor = Math.max(0, this.sub.cursor - 1);
2235
+ this.#rebuild();
2234
2236
  this.app.redraw();
2235
2237
  return true;
2236
2238
  }
2237
2239
  if (ev.name === "down" || (ev.name === "char" && ev.key === "j" && !ev.ctrl)) {
2238
2240
  this.sub.cursor = Math.min(Math.max(0, this.#subItems().length - 1), this.sub.cursor + 1);
2241
+ this.#rebuild();
2239
2242
  this.app.redraw();
2240
2243
  return true;
2241
2244
  }