Skip to content

Conversation

@agustif
Copy link

@agustif agustif commented Dec 21, 2025

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

@agustif
Copy link
Author

agustif commented Dec 21, 2025

should it be an option to have this enabled or not from config/settings/command like show/hide sidebar or just be on for everyone? idk

should it be just 1px regular bar instead of 3 to differentiate from non draggable?

@rekram1-node
Copy link
Collaborator

This is cool! I sent to rest of the team to ask for their opinions

@shuv1337
Copy link
Contributor

love it. merged into shuvcode!

shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 22, 2025
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 24, 2025
Resolved conflicts by keeping fork-specific features:
- PR anomalyco#5968 small screen styling (reverted upstream, preserved here)
- Search in messages (PR anomalyco#4898)
- Draggable sidebar resize (PR anomalyco#5917)
- AskQuestion tool (PR anomalyco#5958)
- IDE integration
- Bash output viewer with ANSI (PR anomalyco#4791)
- Mobile PWA support
- Share infrastructure for shuv.ai

Merged upstream improvements:
- review.toggle command with mod+shift+r keybind
- Title tag for share pages
- Session navigation and sorting improvements
- Various docs and CI updates
- Provider updates (Cloudflare AI Gateway)
- MCP tools/list_changed notifications
- Prompt stashing feature
- Did you know tips on start screen
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Jan 29, 2026
- Restore double Ctrl+C to exit with toast warning (PR anomalyco#4900)
- Restore AskQuestion dialog and integration (PR anomalyco#5958)
- Restore search in messages feature (PR anomalyco#4898)
- Restore live token usage during streaming (PR anomalyco#4709)
- Restore sidebar resize drag feature (PR anomalyco#5917)
- Restore spinner customization features
- Restore ANSI terminal emulation for bash output (PR anomalyco#4791)
- Restore header visibility toggle
- Restore goToParent() for subagent navigation

The rerere auto-resolution incorrectly merged some files,
removing fork-specific features that were previously added.
@thdxr thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
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.

3 participants