Skip to content

Speed up web terminal history open#349

Merged
edwin-zvs merged 1 commit into
mainfrom
webui-terminal-fast-open
Jun 5, 2026
Merged

Speed up web terminal history open#349
edwin-zvs merged 1 commit into
mainfrom
webui-terminal-fast-open

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • reduce web terminal initial PTY replay from 1 MiB to 128 KiB for faster first paint
  • cap each older-history fetch/replay chunk at 1 MiB instead of growing to 8 MiB
  • add a visible history action when older PTY bytes are available, while preserving top-scroll lazy loading
  • keep the history action disabled during older-history replay and hide it when no older bytes remain
  • preserve replay range metadata even when a replay response has no payload bytes

Tests

  • cargo build
  • cargo test -p agentd-e2e web_client_loads_and_websocket_connects --test web_smoke -- --nocapture

Notes

No recording: this is a performance/behavior change covered by e2e browser assertions. The PR changes embedded web UI assets, so the relevant binary is agentd.

@edwin-zvs
edwin-zvs merged commit d10c499 into main Jun 5, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the webui-terminal-fast-open branch June 5, 2026 20:33
@edwin-zvs edwin-zvs mentioned this pull request Jun 6, 2026
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