aegiscode 7.0.3 → 7.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aegiscode",
3
3
  "productName": "AEGIS Code",
4
- "version": "7.0.3",
4
+ "version": "7.0.4",
5
5
  "description": "aegiscode — the command-line version of AEGIS Desktop. The shared tool surface in your shell, over the same thin transport and tool registry as the MCP plugin and the desktop app. Ships transport + UI only; no brain.",
6
6
  "author": {
7
7
  "name": "AEGIS Code",
package/src/chatflow.js CHANGED
@@ -2062,6 +2062,17 @@ async function runSession(host) {
2062
2062
  }
2063
2063
  return;
2064
2064
  }
2065
+ if (key.name === KEY.TAB && type === 'model') {
2066
+ // Reference parity (aegiscodex-dev/src/main.js's model overlay cycles on
2067
+ // Tab). It is also the one way to walk the list that survives a link
2068
+ // where arrow escapes are eaten, since Tab is a single control byte.
2069
+ const n = (overlay.items || []).length;
2070
+ if (n) {
2071
+ overlay.sel = ((overlay.sel || 0) + 1) % n;
2072
+ render();
2073
+ }
2074
+ return;
2075
+ }
2065
2076
  if (key.name === KEY.ENTER) {
2066
2077
  if (type === 'palette') {
2067
2078
  // Rank with the same function the palette rendered with, so the row
@@ -2171,24 +2182,18 @@ async function runSession(host) {
2171
2182
  return;
2172
2183
  }
2173
2184
  if (key.name === KEY.UP || key.name === KEY.DOWN) {
2174
- // The model picker pins on a plain arrow too, not just the shift chord:
2175
- // shift+arrow depends on the terminal sending CSI modifier 2, which not
2176
- // every terminal/multiplexer does, and a user on one that doesn't gets a
2177
- // picker that only ever points, never pins, with no way to tell why.
2178
- // Plain arrow already moves the highlight everywhere else, so routing it
2179
- // through the same apply path shift uses makes "it changes the model"
2180
- // true regardless of what the terminal does with the shift modifier.
2185
+ // NAVIGATION ONLY — this is the reference's binding and it has to stay
2186
+ // that way. A plain arrow that applies the row it lands on cannot browse:
2187
+ // the overlay closes on the first press, the model is already changed,
2188
+ // and the other fifteen rows are unreachable. The reference moves the
2189
+ // highlight here and commits on Enter (aegiscodex-dev/src/main.js
2190
+ // navList + the KEY.ENTER branch of its model overlay); the one-keystroke
2191
+ // commit belongs to the shift chords below, which are additive and
2192
+ // explicit, not to the arrow every picker in the app uses to point.
2193
+ // Bounds come from the list being drawn, exactly as navList does it.
2194
+ const n = (overlay.items || []).length || overlayRowCount();
2181
2195
  const step = key.name === KEY.UP ? -1 : 1;
2182
- const max = Math.max(0, overlayRowCount() - 1);
2183
- overlay.sel = Math.min(max, Math.max(0, (overlay.sel || 0) + step));
2184
- if (type === 'model') {
2185
- const chosen = (overlay.items || [])[overlay.sel || 0];
2186
- overlay = null;
2187
- render();
2188
- await applyModelRow(chosen);
2189
- render();
2190
- return;
2191
- }
2196
+ overlay.sel = Math.min(Math.max(0, n - 1), Math.max(0, (overlay.sel || 0) + step));
2192
2197
  render();
2193
2198
  return;
2194
2199
  }
package/src/overlays.js CHANGED
@@ -214,12 +214,12 @@ function renderModelPicker(models, sel = 0, width = 80, height = 24, current = n
214
214
  }
215
215
  if (end < count) lines.push([span('', ' '), span(C.gray, `↓ ${count - end} more below`)]);
216
216
  lines.push(blank(width));
217
- // Plain ↑/↓ pins as it moves (chatflow's handleOverlayKey), the same apply
218
- // path shift+↑/↓ and enter use — shift is no longer required because not
219
- // every terminal sends the shift+arrow chord. shift+w/shift+s is the same
220
- // move-and-pin step again, spelled as plain chars ('W'/'S') for links or
221
- // multiplexers that eat CSI arrow sequences but pass letters through fine.
222
- lines.push([span('', ' '), span(C.gray, `↑↓ or shift+w/s pins as it moves ${GLYPH.bullet} enter pins ${GLYPH.bullet} esc cancels`)]);
217
+ // ↑/↓/tab move the highlight — they do not apply. This is the reference's
218
+ // binding (aegiscodex-dev/src/main.js navList: arrows point, Enter commits),
219
+ // and the two chords that DO apply as they move are spelled out separately:
220
+ // shift+↑/↓ for terminals that send CSI modifier 2, and shift+w/shift+s as
221
+ // plain chars ('W'/'S') for links that eat arrow escapes but pass letters.
222
+ lines.push([span('', ' '), span(C.gray, `↑↓ or tab move ${GLYPH.bullet} enter pins ${GLYPH.bullet} shift+↑↓/shift+w/s pins at once ${GLYPH.bullet} esc cancels`)]);
223
223
  return fit(lines, width);
224
224
  }
225
225