Skip to content

Fix OpenClaw terminal output latency - #3

Merged
90le merged 2 commits into
mainfrom
codex/fix-terminal-output-lag
Jul 23, 2026
Merged

Fix OpenClaw terminal output latency#3
90le merged 2 commits into
mainfrom
codex/fix-terminal-output-lag

Conversation

@90le

@90le 90le commented Jul 23, 2026

Copy link
Copy Markdown
Owner

What changed

OpenClaw-mounted IDE terminals now use the existing same-origin HTTP/SSE realtime transport instead of the host gateway event channel. Standalone deployments continue using the raw terminal WebSocket.

Root cause

Live tracing on the reported Linux instance showed browser input dispatch in about 18 ms, while PTY output reached xterm about 1.9 seconds later. The same PTY output arrived immediately through the existing SSE endpoint, isolating the delay to OpenClaw host gateway event scheduling.

Impact

Typed characters and TUI redraws should appear in real time on OpenClaw-mounted Linux installations.

Validation

  • Live comparison against the reported Linux instance: gateway event output delayed ~1.9 s; SSE output immediate
  • node --experimental-strip-types --test apps/web/src/features/ide-workbench/terminal/terminalTransportChain.test.mjs (9/9)
  • npm run typecheck:web

This stays draft until the reporter verifies the branch build on the Linux instance.

@90le
90le marked this pull request as ready for review July 23, 2026 11:07
@90le
90le merged commit 55e5998 into main Jul 23, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant