Skip to content

Reduce terminal session startup latency#377

Merged
BunsDev merged 1 commit into
mainfrom
okcode/reduce-terminal-session-time
Apr 9, 2026
Merged

Reduce terminal session startup latency#377
BunsDev merged 1 commit into
mainfrom
okcode/reduce-terminal-session-time

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Avoids fetching the full orchestration snapshot when opening or restarting terminals by resolving runtime env directly from thread and project state.
  • Adds terminal history missing-state caching so brand-new sidecar terminals do not repeatedly probe for absent transcript files.
  • Keeps the terminal drawer mounted and preloads it earlier in the chat flow to reduce visible launch delay and flicker.
  • Adds logging and performance markers around snapshot building, env resolution, history restore, and terminal startup to make latency easier to inspect.
  • Updates tests to cover the new runtime env resolver, terminal history fast path, and terminal open/restart behavior.

Testing

  • Not run (PR content prepared from the provided diff)
  • Existing and new tests added in the diff cover terminal manager history caching, runtime env resolution, websocket terminal fast path, and terminal drawer overlay states.

- Resolve terminal env directly from thread state instead of full snapshots
- Cache missing terminal history reads and add launch/open instrumentation
- Keep terminal drawer mounted and show launch status while opening
@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 9, 2026 7:47pm
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 9, 2026 7:47pm

@github-actions github-actions Bot added size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 9, 2026
@BunsDev BunsDev merged commit 728a7c3 into main Apr 9, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant