You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Memory leak: Footer component only clears last timeout in recursive chain #8259
The Footer component uses a recursive setTimeout pattern for the welcome message animation, but only tracks the most recent timeout ID in a single variable.
functiontick(){timeout=setTimeout(()=>tick(),5000)// Overwrites previous ID}lettimeout=setTimeout(()=>tick(),10_000)onCleanup(()=>{clearTimeout(timeout)// Only clears the LAST timeout})
When tick() schedules a new timeout, the previous timeout ID is lost before it can be cleared.
Impact
Earlier timeouts continue to fire after component unmount
Both issues describe similar cleanup problems in TUI components where resources aren't properly released. Additionally, #3013 is the umbrella issue tracking general memory problems in opencode.
Feel free to ignore if this doesn't address your specific case.
Activity
github-actions commentedon Jan 13, 2026
This issue might be a duplicate of existing issues. Please check:
Both issues describe similar cleanup problems in TUI components where resources aren't properly released. Additionally, #3013 is the umbrella issue tracking general memory problems in opencode.
Feel free to ignore if this doesn't address your specific case.