Skip to content

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

Closed

Description

@leighmcculloch

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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Jan 30, 2026
  2. github-actions commented on Jan 30, 2026

    @github-actions
    Contributor

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

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

  3. leighmcculloch commented on Jan 31, 2026

    @leighmcculloch
    Author

    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"]
  4. leighmcculloch commented on Jan 31, 2026

    @leighmcculloch
    Author

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

    OPENCODE_DISABLE_DEFAULT_PLUGINS=1
    
  5. leighmcculloch commented on Jan 31, 2026

    @leighmcculloch
    Author

    It looks like the plugins that this disabled are just:

    const BUILTIN = ["opencode-anthropic-auth@0.0.13", "@gitlab/opencode-gitlab-auth@1.3.2"]

  6. github-actions commented on Apr 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions