open-agents-ai 0.184.39 → 0.184.40

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 +24 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60201,6 +60201,11 @@ var init_status_bar = __esm({
60201
60201
  setHeaderButtonHandler(handler) {
60202
60202
  this._headerButtonHandler = handler;
60203
60203
  }
60204
+ /** Programmatically fire a header button command (used for deferred/queued clicks) */
60205
+ fireHeaderButton(command) {
60206
+ if (this._headerButtonHandler)
60207
+ this._headerButtonHandler(command);
60208
+ }
60204
60209
  /** Get the text selection instance (for external keyboard shortcut wiring) */
60205
60210
  get textSelection() {
60206
60211
  return this._textSelection;
@@ -64759,10 +64764,17 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
64759
64764
  });
64760
64765
  let commandCtxRef = null;
64761
64766
  let headerBtnActive = null;
64767
+ let headerBtnQueue = null;
64762
64768
  statusBar.setHeaderButtonHandler((command) => {
64763
- if (!commandCtxRef)
64769
+ if (!commandCtxRef) {
64770
+ headerBtnQueue = command;
64771
+ return;
64772
+ }
64773
+ if (headerBtnActive && headerBtnActive !== command) {
64774
+ headerBtnQueue = command;
64764
64775
  return;
64765
- if (headerBtnActive)
64776
+ }
64777
+ if (headerBtnActive === command)
64766
64778
  return;
64767
64779
  headerBtnActive = command;
64768
64780
  (async () => {
@@ -64777,6 +64789,11 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
64777
64789
  banner.renderCurrentFrame();
64778
64790
  statusBar.refreshDisplay();
64779
64791
  }
64792
+ if (headerBtnQueue) {
64793
+ const queued = headerBtnQueue;
64794
+ headerBtnQueue = null;
64795
+ setTimeout(() => statusBar.fireHeaderButton?.(queued), 50);
64796
+ }
64780
64797
  })();
64781
64798
  });
64782
64799
  rl.output = null;
@@ -66459,6 +66476,11 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
66459
66476
  }
66460
66477
  };
66461
66478
  commandCtxRef = commandCtx;
66479
+ if (headerBtnQueue) {
66480
+ const queued = headerBtnQueue;
66481
+ headerBtnQueue = null;
66482
+ setTimeout(() => statusBar.fireHeaderButton?.(queued), 100);
66483
+ }
66462
66484
  showPrompt();
66463
66485
  if (!isResumed) {
66464
66486
  const savedCtx = loadSessionContext(repoRoot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.39",
3
+ "version": "0.184.40",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) \u2014 interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",