Summary
On OpenCode Desktop 2.2.2 for Windows, new "New terminal" tabs are created
automatically, without any user action. They appear on interaction (a click or a
keypress) and also on a timer: with the app idle and untouched, one more tab is
added on its own roughly every 10–15 seconds. The tab strip fills with empty
"New te…rminal" tabs. No terminal process is ever started for them, so the tabs
are inert. The behaviour appeared immediately after the app updated itself from
2.1.4 to 2.2.2, and it persists across a full restart of the app and a reboot of
the machine.
Environment
- opencode version: 2.2.2 (Desktop app; bundled CLI also 2.2.2)
- OS: Windows 11 Pro, 10.0.26300 (x64)
- Terminal: n/a — the issue is in the Desktop app's built-in terminal pane
- Shell: C:\WINDOWS\system32\cmd.exe
- Install/channel: latest (auto-updater reports
Update for version 2.2.2 is not available (latest version: 2.2.2, downgrade is allowed))
- Active plugins: none found in config
Reproduction
- Launch OpenCode Desktop 2.2.2 on Windows 11.
- Open any workspace.
- Leave the app idle and untouched. Observe that a new "New terminal" tab is
added on its own roughly every 10–15 seconds.
- Click anywhere in the window, or press any key on the keyboard. Observe that
this also adds one more "New terminal" tab immediately.
Reproducible consistently: the tab strip keeps growing while the app is idle, and
every interaction adds one more tab on top of that.
Expected Behavior
Tabs are created only on an explicit action: Ctrl+Alt+T, the + button in the
tab strip, or the "Terminal" launcher row.
Actual Behavior
Tabs accumulate without bound. A click or keypress appends one immediately, and
while the app sits idle another tab appears on its own roughly every 10–15
seconds. The tabs are empty: querying the shell processes while the tabs exist
returns none, so no PTY is created for them:
Get-Process powershell,pwsh,cmd,conhost -ErrorAction SilentlyContinue
# returns only the process of the diagnostic command itself
Additional Context
Timing — the app updated itself on the same morning the behaviour appeared,
per main.log:
v2 CLI background service starting { reason: 'version-mismatch', previousVersion: '2.1.4' }
updater state changed { from: 'checking', to: 'up-to-date' }
Update for version 2.2.2 is not available (latest version: 2.2.2, downgrade is allowed).
renderer.log is dominated by one repeated error, which keeps firing
continuously, including while the app is idle:
[error] ResizeObserver loop completed with undelivered notifications.
The same error is present in sessions from several days earlier, so it may be
unrelated noise rather than the cause.
HKCU\Environment contains no unexpected entries, so the known
ERROR_INVALID_PARAMETER (87) cause of PTY spawn failures does not apply here.
Possibly related, all 2.2.2 regressions in the same UI area:
Restarting the app (fully, including the background processes) and rebooting the
machine were both tried and do not stop it.
Workaround: close the extra tabs with Ctrl+W. Because the timer keeps adding
new ones, this only helps in the short term. The updater reports that a downgrade
is allowed, so rolling back to 2.1.4 is another option (not verified here).