[PR #5917] feat: add draggable sidebar resize functionality #11643

Open
opened 2026-02-16 18:16:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5917

State: open
Merged: No


Summary

  • Add draggable resize handle for the TUI sidebar
  • Sidebar width is now adjustable and persists in key-value storage
  • Visual feedback with hover and drag states
  • Proper clamping between min/max width limits

Changes

  • Modified session layout to include resize handle
  • Added mouse event handlers for drag functionality
  • Updated sidebar component to accept dynamic width prop
  • Added width persistence to KV storage

Screenshot

this is with hw = 3 (px)
image

this with hw = 1 (px) (current PR status)
Screenshot 2025-12-22 at 00 41 00

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5917 **State:** open **Merged:** No --- ## Summary - Add draggable resize handle for the TUI sidebar - Sidebar width is now adjustable and persists in key-value storage - Visual feedback with hover and drag states - Proper clamping between min/max width limits ## Changes - Modified session layout to include resize handle - Added mouse event handlers for drag functionality - Updated sidebar component to accept dynamic width prop - Added width persistence to KV storage ## Screenshot this is with hw = 3 (px) <img width="722" height="454" alt="image" src="https://github.com/user-attachments/assets/e695007e-3a33-4949-84ba-8a349b2c0453" /> this with hw = 1 (px) (current PR status) <img width="636" height="453" alt="Screenshot 2025-12-22 at 00 41 00" src="https://github.com/user-attachments/assets/0d57cf60-3daa-4856-8d1a-ebd56bf9dd77" />
yindo added the pull-request label 2026-02-16 18:16:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11643