You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran out of disk space while opencode was running. Investigating, I can see two sessions in ~/.local/share/opencode/project/.../snapshot. One is 2G, and the other is 88G. I can see they're git repos under the hood, and the large one is corrupted (due to a forced shutdown). There are no pack files in there, though, just a lot of objects. The uncorrupted (2.2G) session has several large objects, but I can't figure out what they are -- git cat-file -p ... outputs something that is still zlib-encoded.
Still no real idea why this is happening, but it's consistently reproducible. This is an Elixir project. Anything I can provide that could help? The logs don't seem to indicate anything unusual.
OK, I'm reversing the bamboozle: the data stored in there is a history of the work tree? I think the issue may be related to the fact that my dev container's home directory is mounted inside .local in my worktree. It's in my global gitignore file, but it may be that there's some recursion happening if opencode is not ignoring it as expected.
Yeah, this was the issue. My global gitignore isn't available in the dev container, so I tried adding /.local/ to .git/info/exclude, but it seems this is not considered by git add . in opencode's snapshot repo. This could be something worth considering? I doubt I'm the only one who'll try this kind of setup. Everything works fine if the ignore rule is added to .gitignore, but this isn't ideal for me. Another workaround is obviously to ensure opencode's data is not stored beneath the work root.
Activity
KannaKuron commentedon Jul 18, 2025
related: #1120
thdxr commentedon Jul 18, 2025
woah that is crazy. i'll take a look and we should probably limit how far back the snapshot goes
giddie commentedon Jul 18, 2025
[edit] I had completely bamboozled myself in this post; sorry for the noise.
giddie commentedon Jul 18, 2025
Still no real idea why this is happening, but it's consistently reproducible. This is an Elixir project. Anything I can provide that could help? The logs don't seem to indicate anything unusual.
giddie commentedon Jul 18, 2025
OK, I'm reversing the bamboozle: the data stored in there is a history of the work tree? I think the issue may be related to the fact that my dev container's home directory is mounted inside
.localin my worktree. It's in my global gitignore file, but it may be that there's some recursion happening if opencode is not ignoring it as expected.giddie commentedon Jul 19, 2025
Yeah, this was the issue. My global gitignore isn't available in the dev container, so I tried adding
/.local/to.git/info/exclude, but it seems this is not considered bygit add .in opencode's snapshot repo. This could be something worth considering? I doubt I'm the only one who'll try this kind of setup. Everything works fine if the ignore rule is added to.gitignore, but this isn't ideal for me. Another workaround is obviously to ensure opencode's data is not stored beneath the work root.rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
feat(app): gate messaging behind explicit opt-in (anomalyco#1126)