Skip to content

Don't go negative in tui dimensions in collapsed sidebar#1598

Merged
krissetto merged 1 commit intodocker:mainfrom
krissetto:dont-go-negative-tui-dimentions
Feb 4, 2026
Merged

Don't go negative in tui dimensions in collapsed sidebar#1598
krissetto merged 1 commit intodocker:mainfrom
krissetto:dont-go-negative-tui-dimentions

Conversation

@krissetto
Copy link
Contributor

No description provided.

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto requested a review from a team as a code owner February 4, 2026 18:31
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Review Summary

No issues found - The defensive guards added to prevent negative TUI dimensions are implemented correctly.

The changes properly:

  • Guard against negative values using max(0, value)
  • Return early when dimensions are invalid
  • Prevent potential panics from invalid array indexing or string operations
  • Handle all edge cases appropriately

This is a solid defensive fix for the collapsed sidebar rendering.

@krissetto krissetto merged commit 3329c99 into docker:main Feb 4, 2026
8 checks passed
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.

2 participants