Skip to content

[0.1.0] runtime: align bottom plugin bands to the window inset without extra remainder gap #3263

Closed

Description

@Xuepoo

Priority: P2 | Area: runtime | Labels: fix,P2,area:runtime | Milestone: v0.1.0 | RFC: none | Task: CTX-1906

Report

The owner reports that bottom plugin chrome (including the bar and devtools) sits noticeably far above the bottom of the Bitty window, leaving a large-looking blank strip below it. The attached screenshot shows the symptom; its physical measurement has not been captured, so it is not used as quantitative evidence.

The current local profile uses window.padding = 8 logical pixels. That inset is expected. The suspected extra gap is caused by mapping bottom bands to the last full terminal row: after subtracting both physical padding insets, the grid extent is floored to an integral number of cell rows, leaving a sub-cell physical remainder at the bottom.

Current geometry model:

bottom gap = physical window padding + ((surface height - 2 * physical padding) mod cell height)

The exact remainder depends on surface extent, cell metrics, and DPI. This formula is a code-derived hypothesis; validate it with a deterministic runtime-level paint probe before changing behavior.

Required outcome

  • Keep the configured window padding and existing terminal grid/PTY dimensions unchanged.
  • Align bottom plugin bands consistently to the physical bottom inset, rather than adding the unused sub-cell row remainder to the visible gap.
  • Keep row-band stacks contiguous and preserve their logical cell budgets.
  • Make painting, pointer hit-testing, hover/click/scroll routing, tooltip anchoring, and damage/invalidation use one shared physical geometry mapping.
  • Handle minimum-size / clamped-grid extents explicitly and boundedly; do not paint outside the surface or create a new gap immediately above the band.
  • Do not change plugin code or install separate per-plugin positioning workarounds.

Verification

Add a headless regression that proves the current tree's bottom-band origin is displaced by the pixel remainder, with exact-multiple, non-multiple, stacked-band, and fractional-DPI cases. Assert paint and interaction geometry agree. Preserve top/left/right band behavior and existing window padding, grid, pane, and PTY sizes.

Track under CarryCtx CTX-1906. This issue is separate from the stale-present issue #3262; both are candidates for the 0.0.46 release, but must have independent regressions and reviews.

Activity

  1. added this to the v0.1.0 milestone on Nov 19, 2026
  2. added
    fix
    area:runtime
    P2
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:runtimefix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions