opencode
opencode copied to clipboard
feat/perf: add pagination to modified files in sidebar
Whenever an agent performs large file system operations, e.g. deleting a directory with thousands of files like node_modules, the "Modified Files" panel in the TUI sidebar causes extreme slowness and high CPU usage.
This issue has been reported in:
- https://github.com/sst/opencode/issues/4804
- https://github.com/sst/opencode/issues/4818
This PR introduces pagination to the "Modified Files" panel in the sidebar, listing only the first 25 modified files and adding a "Load more" button to load the next 25 files.