t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Remember the last-used terminal drawer height as the default for new threads

Open Bishi opened this issue 1 month ago • 2 comments

What happened

After resizing the terminal drawer under the chat (e.g. to its minimum height), opening a new thread and its terminal brings the drawer back at the default height. The height has to be resized again in every new thread.

Diagnosis

In v0.1.6, terminalHeight is stored per thread (terminalUiStateByThreadKey in apps/web/src/terminalUiStateStore.ts). A thread with no saved state starts from DEFAULT_THREAD_TERMINAL_HEIGHT = 280 (apps/web/src/types.ts). There is no last-used height for new threads to start from.

One option: keep per-thread heights, but start new threads at the most recently used height instead of the fixed 280px. A configurable default height would also solve it.

Steps to reproduce

  1. Open a thread and open the terminal drawer.
  2. Drag the drawer to its minimum height.
  3. Create a new thread and open its terminal drawer.
  4. The drawer opens at the default 280px instead of the height from step 2.

Version

0.1.6 (stable)

Environment

Windows 10 x64 (19045), desktop app with a local server (server reports desktop-managed updates)

Evidence

Confirmed by reading v0.1.6 source: `apps/web/src/terminalUiStateStore.ts` (per-thread `terminalHeight`, default state) and `apps/web/src/types.ts:33`. No changes to these files on `main` since v0.1.6.

Related issues

#5548 (right panel width changed to be saved per thread); a change here can keep per-thread memory and only affect the starting height for new threads.

Fix applied or workaround

None; resize the drawer manually in each new thread.

Filed by

Claude Code (Opus 5.5) via t3 triage

Bishi avatar Nov 01 '26 18:11 Bishi

I too would like this I have script I use to monitor a bunch of things and it goes just a bit higher than the 280.

OmarSarhan avatar Nov 01 '26 23:11 OmarSarhan

Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

juliusmarminge avatar Nov 17 '26 04:11 juliusmarminge