cli-setu 0.2.3 → 0.2.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-setu",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Bridge your terminal to your phone — run and approve Claude Code, Codex CLI and other AI coding agents from anywhere.",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/src/supervisor.js CHANGED
@@ -544,6 +544,15 @@ function flushOutputBuffer() {
544
544
 
545
545
  // Still serialized against any send already in flight, so batches
546
546
  // themselves can never arrive out of order relative to each other.
547
+ // Real bug found by testing: the Backend used to AWAIT Azure's own
548
+ // sendToAll broadcast (~190-200ms per call, confirmed inherent to
549
+ // Azure Web PubSub's broadcast API, not fixable from our side) before
550
+ // responding here - since this chain won't send its next batch until
551
+ // this fetch() resolves, every Azure call directly delayed the next
552
+ // batch too, compounding into real, visible lag during a burst of PTY
553
+ // output. auth-server.js's /relay/terminal-output now responds
554
+ // immediately and broadcasts to Azure in the background, so this
555
+ // fetch() itself should resolve quickly regardless of Azure's own cost.
547
556
  sendInFlight = sendInFlight.then(async () => {
548
557
  try {
549
558
  await fetch(`${AUTH_SERVER}/relay/terminal-output`, {