Description
Starting a session in a very large git repo (chromium checkout, ~500k files) hangs and the process never returns. The first prompt's snapshot step (Snapshot.track) runs git add --all into a fresh, empty snapshot repo under ~/.local/share/opencode/snapshot/..., which forces git to hash the entire working tree from scratch. On a chromium checkout this takes minutes (git add --all did not finish within 90s in my testing), so session.prompt never resolves and opencode appears to shut down.
OpenCode version
1.17.3 (local dev build)
Steps to reproduce
- Open opencode in a huge git repo (e.g. a full chromium checkout, ~500k files)
- Send any prompt
- The first turn hangs; the snapshot
git add --all runs for minutes and the process never returns
Operating System
macOS
Terminal
Ghostty
Description
Starting a session in a very large git repo (chromium checkout, ~500k files) hangs and the process never returns. The first prompt's snapshot step (
Snapshot.track) runsgit add --allinto a fresh, empty snapshot repo under~/.local/share/opencode/snapshot/..., which forces git to hash the entire working tree from scratch. On a chromium checkout this takes minutes (git add --alldid not finish within 90s in my testing), sosession.promptnever resolves and opencode appears to shut down.OpenCode version
1.17.3 (local dev build)
Steps to reproduce
git add --allruns for minutes and the process never returnsOperating System
macOS
Terminal
Ghostty