Skip to content

The integrated terminal now opens at about one third of the window…#272

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 25, 2026
Merged

The integrated terminal now opens at about one third of the window…#272
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

The integrated terminal now opens at about one third of the window height on first use, instead of a fixed 240px that was often too short to read a command's output without dragging the divider. The default is computed as a fraction of the window height (so it scales with window size) and still respects the existing 120px floor and 50vh ceiling. A height you set by dragging is remembered as before.

* Open terminal dock at ~1/3 of window height on first use

The integrated terminal opened at a fixed 240px, too short to read a
command's output without dragging the divider. Compute the first-open
height as ~1/3 of the editor viewport instead, so it scales with window
size while still respecting the 120px floor and 50vh ceiling. A height
set by dragging is still remembered.

* Address local review feedback on terminal dock height

- Pin the ~1/3 default with a literal (333) instead of a fraction-derived
  value so a regression to the fraction is actually caught; add a
  short-viewport case covering the new fraction-below-floor composition.
- Make DEFAULT_TERMINAL_HEIGHT_FRACTION module-private (was exported only
  for the test).
- Correct header comments: the fixed-px fallback is for no-window hosts,
  not storage-restricted ones (those hit the catch); the default scales
  with the renderer window, not the editor pane. Document the catch's
  intentional fixed-px fallback.

GitOrigin-RevId: c1ee22f14f2f5a321964c2b2f64063ffe4be8881

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28192993040). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync
inkeep-oss-sync Bot merged commit 540fc10 into main Jun 25, 2026
1 check passed
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch June 25, 2026 18:52
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