Skip to content

fix: prevent base logo color rendering as terminal background in half-block cells#221

Open
sachiniyer wants to merge 1 commit intomainfrom
siyer/fix-animation-base-color
Open

fix: prevent base logo color rendering as terminal background in half-block cells#221
sachiniyer wants to merge 1 commit intomainfrom
siyer/fix-animation-base-color

Conversation

@sachiniyer
Copy link
Contributor

@sachiniyer sachiniyer commented Mar 25, 2026

Summary

  • When a Base pixel (Color::Reset) lands in the background slot of a half-block cell alongside an Active/Complete pixel, it resets to the terminal's default background instead of the default foreground (the intended base logo color), creating a visible hole at the scan boundary.
  • Fix by flipping the glyph from to when bottom_style == Base, keeping Color::Reset in the foreground position where it correctly means "default foreground."
  • Extracted cell-rendering into a standalone apply_halfblock_cell function for testability, and added 3 new tests that verify all 16 style combinations against a real ratatui Cell.

Test plan

  • base_pixel_never_rendered_as_background_color — exhaustively checks all 16 style combos, asserting Color::Reset never appears as bg when a Base pixel is on
  • active_top_base_bottom_renders_correctly — verifies the specific buggy case uses with correct fg/bg
  • base_top_active_bottom_renders_correctly — verifies the already-correct symmetric case still works
  • All 186 existing unit tests + 16 integration tests pass

🤖 Generated with Claude Code


Open with Devin

…-block cells

When a Base pixel (Color::Reset) lands in the background slot of a
half-block cell alongside an Active/Complete pixel, it resets to the
terminal's default background instead of the default foreground (the
intended base logo color). Fix by flipping the glyph from ▀ to ▄ so
Base stays in the foreground position where Color::Reset is correct.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sachiniyer sachiniyer deployed to integration-tests March 25, 2026 03:51 — with GitHub Actions Active
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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