Skip to content

fix(test): restore main by adding missing Cell::padding fixture field - #2548

Merged
Xuepoo merged 1 commit into
mainfrom
cmd/fix-main-cell-padding
Oct 23, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
cmd/fix-main-cell-padding

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Main is red with E0063: missing field padding in initializer of bitty_term_state::Cell at crates/bitty-runtime/src/runtime/present.rs:7480. This is a semantic merge conflict: #2534 added Cell::padding, then #2506 added a wide-glyph selection fixture without it. Every open PR inherits the failure.

The fixture is a real printed glyph (中, width 2), so padding is false; synthetic layout blanks remain true.

Verification

  • cargo test -p bitty-runtime --lib selection_row_rects_cover_wide_glyph_trailing_cell --locked (local, scoped target)
  • One-line test-only change; no production behavior.

Priority: P0 | Area: render | Labels: fix,P0,area:render | Milestone: v0.0.27 | Task: CI hotfix (cmd branch)

Summary by CodeRabbit

  • Tests
    • Clarified the setup for wide-character selection coverage by explicitly specifying that padding is disabled. This is a test-only change and does not alter user-facing behavior.

Semantic merge conflict between #2534 (new Cell::padding field) and #2506 (wide-glyph selection fixture) left main failing E0063 at present.rs:7480. The fixture is a real printed glyph, so padding is false.
@Xuepoo Xuepoo added this to the v0.0.27 milestone Oct 23, 2026
@Xuepoo Xuepoo added fix Bug fix P0 Priority: highest area:render Area: rendering labels Oct 23, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 403bfbf7-fcfc-41df-9691-29c0ca021747
📥 Commits

Reviewing files that changed from the base of the PR and between f1ed258 and 5654c21.

📒 Files selected for processing: 1
  • crates/bitty-runtime/src/runtime/present.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The wide-glyph selection test cell initializer now explicitly sets padding to false.

Changes: Wide-glyph selection test

Layer / File(s) Summary
Set test cell padding
crates/bitty-runtime/src/runtime/present.rs
The wide-glyph selection test initializer now sets padding to false.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Possibly related issues

  • bitty-terminal/bitty issue 2523 — The change updates a test fixture for wide-glyph selection coverage, but it does not change selection paint behavior or resolve the reported issue.
Merge Risk: ⚪ Minimal · up to 5654c

No merge-blocking risk is identified in this test-only fix.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding the missing Cell::padding field to a test fixture to fix the build on main. The raw summary confirms the only change is one added line that sets padding to fals…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adding the missing Cell::padding field to a test fixture to fix the build on main. The raw summary confirms the only change is one added line that sets padding to false in the wide-glyph selection test's Cell initializer. The objectives describe the same E0063 compile error and the merge-conflict cause. The title is specific, accurate, and free of noise.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Xuepoo
Xuepoo merged commit 101efbc into main Oct 23, 2026
18 checks passed
@Xuepoo
Xuepoo deleted the cmd/fix-main-cell-padding branch October 23, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:render Area: rendering fix Bug fix P0 Priority: highest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant