Blank screen for ~10 seconds on startup when running inside a VM or container #8087

Open
opened 2026-02-16 18:09:08 -05:00 by yindo · 4 comments
Owner

Originally created by @leighmcculloch on GitHub (Jan 30, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When running opencode inside a VM or container, the opening screen is blank for approximately 10 seconds before the UI renders and becomes responsive. After this initial delay, the application responds promptly.

When running locally (not in a VM/container), the application starts instantly with no blank screen delay.

This behavior has been observed in multiple virtualization/container setups:

Plugins

N/A

OpenCode version

Latest

Steps to reproduce

  1. Run opencode inside a virtual machine or Docker container
  2. Observe blank screen for ~10 seconds on startup
  3. After delay, app becomes responsive and works normally

For comparison:

  1. Run opencode locally (not in a VM/container)
  2. Observe instant startup with no delay

Screenshot and/or share link

N/A

Operating System

Tested in Ubuntu (inside Apple Container VM and Docker containers)

Terminal

Not specified

Originally created by @leighmcculloch on GitHub (Jan 30, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When running opencode inside a VM or container, the opening screen is blank for approximately 10 seconds before the UI renders and becomes responsive. After this initial delay, the application responds promptly. When running locally (not in a VM/container), the application starts instantly with no blank screen delay. This behavior has been observed in multiple virtualization/container setups: - Ubuntu Apple Container ([apple/container](https://github.com/apple/container)) VM - Docker containers ### Plugins N/A ### OpenCode version Latest ### Steps to reproduce 1. Run opencode inside a virtual machine or Docker container 2. Observe blank screen for ~10 seconds on startup 3. After delay, app becomes responsive and works normally For comparison: 1. Run opencode locally (not in a VM/container) 2. Observe instant startup with no delay ### Screenshot and/or share link N/A ### Operating System Tested in Ubuntu (inside Apple Container VM and Docker containers) ### Terminal Not specified
yindo added the perf label 2026-02-16 18:09:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 30, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10224: White screen on startup after splash screen (similar blank screen delay issue)
  • #7200: Blank in WSL2 Ubuntu Terminal/Desktop (blank screen in virtualized environment)
  • #11092: OpenCode does not show UI in terminal or web (UI not appearing during initialization)
  • #4755: opencode Terminal UI shows empty screen (empty/blank screen on Ubuntu)
  • #8074: Opencode not loading (stuck on "Initializing..." during startup)
  • #820: Slow chat startup (startup delay caused by blocking operations during initialization)
  • #5338: Opencode becomes stuck on start if internet connection is not stable (blank screen on startup with network issues)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 30, 2026): This issue might be a duplicate of existing issues. Please check: - #10224: White screen on startup after splash screen (similar blank screen delay issue) - #7200: Blank in WSL2 Ubuntu Terminal/Desktop (blank screen in virtualized environment) - #11092: OpenCode does not show UI in terminal or web (UI not appearing during initialization) - #4755: opencode Terminal UI shows empty screen (empty/blank screen on Ubuntu) - #8074: Opencode not loading (stuck on "Initializing..." during startup) - #820: Slow chat startup (startup delay caused by blocking operations during initialization) - #5338: Opencode becomes stuck on start if internet connection is not stable (blank screen on startup with network issues) Feel free to ignore if none of these address your specific case.
Author
Owner

@leighmcculloch commented on GitHub (Jan 30, 2026):

For example, using the following dockerfile:

docker build -t opencode-test .
docker run -it --rm opencode-test
FROM ubuntu:24.04

# Install dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

# Install opencode using the official install script
RUN curl -fsSL https://opencode.ai/install | bash

# Add opencode to PATH
ENV PATH="/root/.opencode/bin:$PATH"

# Set working directory
WORKDIR /workspace

# Run opencode on container start
CMD ["opencode"]
@leighmcculloch commented on GitHub (Jan 30, 2026): For example, using the following dockerfile: ``` docker build -t opencode-test . docker run -it --rm opencode-test ``` ```Dockerfile FROM ubuntu:24.04 # Install dependencies RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* # Install opencode using the official install script RUN curl -fsSL https://opencode.ai/install | bash # Add opencode to PATH ENV PATH="/root/.opencode/bin:$PATH" # Set working directory WORKDIR /workspace # Run opencode on container start CMD ["opencode"] ```
Author
Owner

@leighmcculloch commented on GitHub (Jan 30, 2026):

If I set the following environment variable, opencode starts instantly:

OPENCODE_DISABLE_DEFAULT_PLUGINS=1
@leighmcculloch commented on GitHub (Jan 30, 2026): If I set the following environment variable, opencode starts instantly: ``` OPENCODE_DISABLE_DEFAULT_PLUGINS=1 ```
Author
Owner

@leighmcculloch commented on GitHub (Jan 30, 2026):

It looks like the plugins that this disabled are just:
https://github.com/anomalyco/opencode/blob/aef0e58ad7c8fc299ac7bdf0bb63a54d6ab878e3/packages/opencode/src/plugin/index.ts#L18

@leighmcculloch commented on GitHub (Jan 30, 2026): It looks like the plugins that this disabled are just: https://github.com/anomalyco/opencode/blob/aef0e58ad7c8fc299ac7bdf0bb63a54d6ab878e3/packages/opencode/src/plugin/index.ts#L18
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8087