opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat/perf: add pagination to modified files in sidebar

Open andre-schaerpf opened this issue 1 month ago • 0 comments

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.

andre-schaerpf avatar Dec 02 '25 00:12 andre-schaerpf