Skip to content

fix: prevent unbounded terminal log growth#1655

Open
xar43 wants to merge 1 commit into
foss42:mainfrom
xar43:fix-terminal-memory
Open

fix: prevent unbounded terminal log growth#1655
xar43 wants to merge 1 commit into
foss42:mainfrom
xar43:fix-terminal-memory

Conversation

@xar43
Copy link
Copy Markdown

@xar43 xar43 commented Apr 12, 2026

Summary
This PR fixes the issue of unbounded growth of terminal log entries, which could lead to increased memory usage and performance degradation during long sessions.

Changes

  • Introduced a _maxEntries limit in TerminalController
  • Updated the append method to cap the number of entries
  • Ensured only the most recent entries are retained

Impact

  • Prevents memory growth over time
  • Improves performance
  • Keeps recent logs available for debugging

Testing

  • Generated multiple log entries through repeated API requests
  • Verified that entries do not exceed the defined limit
  • Confirmed application behavior remains stable

I have also attached the files of code updation .

Screenshot 2026-04-13 030633 Screenshot 2026-04-13 030656

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.

2 participants