Skip to content

tui: keep file tree open at its minimum resized width#18777

Merged
Brendonovich merged 1 commit intodevfrom
fix-remove-auto-collapse-from-file-tree
Mar 23, 2026
Merged

tui: keep file tree open at its minimum resized width#18777
Brendonovich merged 1 commit intodevfrom
fix-remove-auto-collapse-from-file-tree

Conversation

@iamdavidhill
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The file tree in the session side panel was closing itself when a user dragged it down to its minimum width. That made resizing feel broken because hitting the minimum size behaved like a close action instead of keeping the panel visible.

This removes the resize handle's collapse threshold and collapse callback for the file tree panel, so the panel now stays open at whatever width the user resizes it to, including the minimum width. This works because the close behavior was only being triggered by those resize handle props.

How did you verify your code works?

The branch passed the repository pre-push typecheck hook when pushed with bun on PATH.

Screenshots / recordings

Not included.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@Brendonovich Brendonovich merged commit 77b3b46 into dev Mar 23, 2026
11 checks passed
@Brendonovich Brendonovich deleted the fix-remove-auto-collapse-from-file-tree branch March 23, 2026 12:06
Andres77872 pushed a commit to Andres77872/opencode that referenced this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants