Skip to content

fix: defer Workspace Build output channel creation until first write#920

Merged
EhabY merged 1 commit intomainfrom
fix/lazy-build-output-channel
Apr 28, 2026
Merged

fix: defer Workspace Build output channel creation until first write#920
EhabY merged 1 commit intomainfrom
fix/lazy-build-output-channel

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Apr 27, 2026

  • TerminalOutputChannel's constructor previously called createOutputChannel and show(true) immediately, so the Output panel popped open every time we built a WorkspaceStateMachine — even on reconnects to an already-running workspace where no build logs would ever be written.
  • The empty channel was disposed shortly afterward, but the Output panel itself stayed visible (VS Code's API has no way to programmatically close the Output panel).
  • Defer both createOutputChannel and show(true) to the first write(). Reconnects to a running workspace never create the channel and never pop the panel; real builds behave exactly as before.

@EhabY EhabY force-pushed the fix/lazy-build-output-channel branch from 4ae37be to 2b872b7 Compare April 28, 2026 08:24
Comment thread src/remote/terminalOutputChannel.ts Outdated
Constructing TerminalOutputChannel previously called
createOutputChannel and show(true) immediately, which forced the
Output panel open even on reconnects to an already-running workspace
where no build logs would ever be written. The empty channel was
disposed shortly after, but the Output panel itself stayed visible.

Defer both calls to the first write, so reconnects to a running
workspace never create the channel and never pop the panel.
@EhabY EhabY force-pushed the fix/lazy-build-output-channel branch from 2b872b7 to e4c4906 Compare April 28, 2026 10:52
@EhabY EhabY merged commit 3e8a954 into main Apr 28, 2026
6 checks passed
@EhabY EhabY deleted the fix/lazy-build-output-channel branch April 28, 2026 10:56
@EhabY EhabY self-assigned this Apr 30, 2026
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