[PR #13649] fix: add Clear Modified command for session sidebar diff #14754

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

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

State: open
Merged: No


tl;dr: made it so you can do ctrl + p and have the option to clear the "Modified Files" display

https://github.com/user-attachments/assets/c2ec7477-bd4d-45af-b074-b130d7bf8905

Summary

  • add a new session command palette action, Clear Modified, available via Ctrl+P to hide the sidebar Modified Files section without mutating persisted diff state

  • keep clear behavior scoped to the current session and in-memory only, so it does not affect git data or backend session_diff storage

  • automatically restore the Modified Files section when a new diff arrives by invalidating the hidden state when diff content changes

Validation

  • ran repo pre-push typecheck successfully during branch push
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13649 **State:** open **Merged:** No --- tl;dr: made it so you can do `ctrl + p` and have the option to clear the "Modified Files" display https://github.com/user-attachments/assets/c2ec7477-bd4d-45af-b074-b130d7bf8905 ## Summary - add a new session command palette action, `Clear Modified`, available via Ctrl+P to hide the sidebar Modified Files section without mutating persisted diff state - keep clear behavior scoped to the current session and in-memory only, so it does not affect git data or backend `session_diff` storage - automatically restore the Modified Files section when a new diff arrives by invalidating the hidden state when diff content changes ## Validation - ran repo pre-push typecheck successfully during branch push
yindo added the pull-request label 2026-02-16 18:19:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14754