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
TUI mini: prompt queue could grow unbounded #56175
Thanks for the report! As written, this describes what the code could do rather than a problem you actually ran into. In mini mode, the queue in runtime.queue.ts only grows from prompts you submit yourself while a turn is running. Prompts still held locally are dropped when the footer closes, and the rest go to the server's queue. So it's not clear yet when this would grow large enough to matter.
To look into it, could you tell us:
Your OpenCode version (opencode --version), OS and terminal
What you did: the steps, e.g. how many prompts you queued and how
What happened as a result (high memory use, slowdown, errors, logs) and what you expected instead
Please describe it briefly in your own words. You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
I didn't find a duplicate. The closest related issues, ordered by likelihood:
Thanks for double-checking, @Addin, and for the clear follow-up. Agreed: the local queue only holds prompts you submit during an active turn, and close() clears it, so it doesn't grow without limit.
Since you've withdrawn it, feel free to close this issue yourself. Otherwise the bot will close it automatically in a few days. If you ever hit a real problem with queued prompts in mini mode (high memory use, slowdowns, errors), please open a new issue with your opencode --version, the steps, and what you saw.
Closing this as not planned. As you confirmed, @Addin, the mini-mode prompt queue in runtime.queue.ts doesn't grow without limit: it only holds prompts submitted during an active turn, and it's cleared when the footer closes. Thanks for checking it again. If you run into a real problem with queued prompts (high memory use, slowdowns, errors), please open a new issue with your opencode --version, the steps, and what you saw.
Activity
opencode-agent commentedon Oct 16, 2026
Thanks for the report! As written, this describes what the code could do rather than a problem you actually ran into. In mini mode, the queue in
runtime.queue.tsonly grows from prompts you submit yourself while a turn is running. Prompts still held locally are dropped when the footer closes, and the rest go to the server's queue. So it's not clear yet when this would grow large enough to matter.To look into it, could you tell us:
opencode --version), OS and terminalPlease describe it briefly in your own words. You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
I didn't find a duplicate. The closest related issues, ordered by likelihood:
yescommand pegs the server, grows memory without bound, and starves input #53473: PTY output with no flow control grows memory without bound (same kind of concern, different component)Addin commentedon Oct 16, 2026
Thank you for the correction. Looking more carefully at
packages/tui/src/mini/runtime.queue.ts:And in
close():The local queue is:
state.queue.length = 0)So the queue does NOT grow unbounded. I withdraw this issue (#56175).
opencode-agent commentedon Oct 16, 2026
Thanks for double-checking, @Addin, and for the clear follow-up. Agreed: the local queue only holds prompts you submit during an active turn, and
close()clears it, so it doesn't grow without limit.Since you've withdrawn it, feel free to close this issue yourself. Otherwise the bot will close it automatically in a few days. If you ever hit a real problem with queued prompts in mini mode (high memory use, slowdowns, errors), please open a new issue with your
opencode --version, the steps, and what you saw.opencode-agent commentedon Oct 19, 2026
Closing this as not planned. As you confirmed, @Addin, the mini-mode prompt queue in
runtime.queue.tsdoesn't grow without limit: it only holds prompts submitted during an active turn, and it's cleared when the footer closes. Thanks for checking it again. If you run into a real problem with queued prompts (high memory use, slowdowns, errors), please open a new issue with youropencode --version, the steps, and what you saw.