agent.libx.js 0.94.8 → 0.94.9

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/dist/cli.js CHANGED
@@ -7410,7 +7410,8 @@ var EditorState = class _EditorState {
7410
7410
  this.hits = r.hits;
7411
7411
  this.token = r.token;
7412
7412
  this.describe = r.describe;
7413
- this.menuOpen = r.hits.length > 0 && !(r.hits.length === 1 && r.hits[0] === r.token);
7413
+ const exact = r.hits.length === 1 && r.hits[0] === r.token;
7414
+ this.menuOpen = r.hits.length > 0 && (!exact || r.token.startsWith("/"));
7414
7415
  if (this.sel >= r.hits.length) this.sel = 0;
7415
7416
  }
7416
7417
  // ── Editor undo (Ctrl-_): snapshot before every mutation, pop to restore ──