Repository navigation
config: c_get returns window-padding-x/-y (on 9d8d40319) - #251
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe public interface now defines a C-compatible type for window padding values. The Zig configuration type converts to this representation, and a test checks padding and balance retrieval. ChangesWindow padding retrieval
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new padding representation and conversion align. The vertical test could be more discriminating, but no current failure is established, so the change appears mergeable. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The change exposes two scalar configuration values through an existing read-only API. The C and Zig representations match, and the reviewed path introduces no new privileges, sensitive-data access, or trust-boundary bypass. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cmux aligns its pane chrome to the terminal's first column and needs the user's window-padding-x. ghostty_config_get returns false for it: WindowPadding is a non-packed struct without cval. The test also pins window-padding-balance, which c_get already returns as its tag name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…dding_s
WindowPadding gets a C mirror and cval, so ghostty_config_get fills a
{top_left, bottom_right} pair of u32 points instead of returning false.
cmux reads it to put its tab icons on the terminal's first text column.
window-padding-balance already returns its tag name. ghostty.h declares
ghostty_config_window_padding_s.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
a1026ef to
b1a49b6
Compare
…dow-padding-x Follow-up to 541b77d (coordinator decision): the terminal host must put the first text column on Metrics.paneContentInset with the user's real window-padding-x, not Ghostty's default. GhosttyRuntime.terminalPadding reads window-padding-x, window-padding-y and window-padding-balance through ghostty_config_get; TerminalHostView subtracts each side's padding and re-lays out on GhosttyRuntime.configDidChange (a config reload). Red: the pinned libghostty (9961d09be) returns false for window-padding-x and -y (WindowPadding has no C value), so the read falls back to 2 pt. PaneAlignmentTests.theTerminalPaddingIsReadFromTheGhosttyConfig fails; the GhosttyKit bump with manaflow-ai/ghostty#251 makes it pass. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…dow-padding-x Follow-up to 541b77d (coordinator decision): the terminal host must put the first text column on Metrics.paneContentInset with the user's real window-padding-x, not Ghostty's default. GhosttyRuntime.terminalPadding reads window-padding-x, window-padding-y and window-padding-balance through ghostty_config_get; TerminalHostView subtracts each side's padding and re-lays out on GhosttyRuntime.configDidChange (a config reload). Red: the pinned libghostty (9961d09be) returns false for window-padding-x and -y (WindowPadding has no C value), so the read falls back to 2 pt. PaneAlignmentTests.theTerminalPaddingIsReadFromTheGhosttyConfig fails; the GhosttyKit bump with manaflow-ai/ghostty#251 makes it pass. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hosttyKit b1a49b601) Bumps the ghostty submodule from 9961d09be to b1a49b601 (manaflow-ai/ghostty#251, merged as dcb1d6965; b1a49b601 is an ancestor of the fork's main). ghostty_config_get now fills ghostty_config_window_padding_s for window-padding-x and -y, so GhosttyRuntime.terminalPadding reads the real values (with window-padding-balance) and TerminalHostView puts the first text column on Metrics.paneContentInset for any padding; a padding wider than the inset leaves the surface at the host edge. The base 9d8d40319 adds only the styled blank row test fix on top of 9961d09be. - scripts/ghosttykit-checksums.txt pins the published artifact (build-ghosttykit run 36783660554, SHA-256 740cd227...43a9). - build-ghosttykit.yml runs the Ghostty test "c_get: window padding" (red run 36783657036 at the test-only commit a230c2b25). - docs/ghostty-fork.md records the change. Green: PaneAlignmentTests.theTerminalPaddingIsReadFromTheGhosttyConfig. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ghostty_config_getreturned false forwindow-padding-xandwindow-padding-y:WindowPaddingis a non-packed struct withoutcval. cmux-next needs the user's value to put its tab icons on the terminal's first text column.WindowPadding.C(extern{top_left, bottom_right}u32 points) andcval;ghostty.hdeclaresghostty_config_window_padding_s.window-padding-balancealready comes back as its tag name; the test pins it.9d8d40319(the9961d09bepin of cmuxfeat-cmux-nextplus the styled-blank-row test fix, without whichbuild-ghosttykit.ymlstops before building). Merge with a merge commit so the branch head stays an ancestor ofmainfor the submodule pointer.Two commits: the failing test
c_get: window padding, then the fix. Red/green in cmuxbuild-ghosttykit.yml(new test-filter step): red https://github.com/manaflow-ai/cmux/actions/runs/36783657036, green (also publishes the xcframework) https://github.com/manaflow-ai/cmux/actions/runs/36783660554.🤖 Generated with Claude Code