Skip to content

opencode is stuck in the chromium source code directory #30386

Closed as not planned

Description

@cucbin

Description

When I use opencode in the chromium source code directory, it does not respond for a long time.

Plugins

No response

OpenCode version

1.15.12

Steps to reproduce

  1. Open iTerm2 or Ghostty.
  2. cd to chromium source code directory
  3. Launch opencode
  4. Ask a question

Noticed that git has been running for a long time in Activity Monitor.

Screenshot and/or share link

No response

Operating System

macOS 26.5

Terminal

iTerm2

Activity

  1. github-actions commented on Jun 2, 2026

    @github-actions
    Contributor

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

    The Chromium source tree is extremely large, so opencode's snapshot system is likely triggering long-running git operations. You may be able to work around this in the meantime by disabling snapshots in your config.

  2. github-actions commented on Aug 2, 2026

    @github-actions
    Contributor

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

  3. piknockyou commented on Sep 30, 2026

    @piknockyou

    Same symptom here on a very large checkout - no response for a long time while git churns. One diagnostic step before disabling snapshots outright, from the folder where you start opencode:

    git rev-parse --show-toplevel

    • If it prints something far above the checkout (a parent folder with a stray git init, or your home folder): delete that leftover .git (usually empty; rename if unsure) and start opencode inside the real project folder - that removes the giant scan entirely.
    • If it prints the chromium checkout itself (likely): the snapshot walk is enumerating your build output and caches. Check git ls-files --others --exclude-standard | wc -l; if it is huge, get the heavy directories (out/, node_modules, caches) into .gitignore - that is the same tree the snapshot walks - or set "snapshot": false if you do not need undo there.

    Shrinking that scan set was the difference for me between "stuck for minutes per step" and normal speed.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions