Repository navigation
Description
Description
When using OpenCode, I frequently encountered inexplicable interruptions. The logs showed the error mentioned in the title reappearing in the latest location. After updating the git version, the interruption issue has temporarily disappeared, but I'm unsure if it's related to the previous interruption problem. The git version I'm using is 2.22.0.
Plugins
no
OpenCode version
v1.3.17
Steps to reproduce
Normal use.
Screenshot and/or share link
INFO 2026-04-07T08:55:45 +1ms service=bus type=message.part.updated publishing
INFO 2026-04-07T08:55:45 +1ms service=bus type=message.updated publishing
WARN 2026-04-07T08:55:45 +67ms service=snapshot exitCode=129 stderr=error: 未知选项 `sparse'
用法:git add [<选项>] [--] <路径规格>...
-n, --dry-run 演习
-v, --verbose 冗长输出
-i, --interactive 交互式拣选
-p, --patch 交互式挑选数据块
-e, --edit 编辑当前差异并应用
-f, --force 允许添加忽略的文件
-u, --update 更新已跟踪的文件
--renormalize 对已跟踪文件(暗含 -u)重新归一换行符
-N, --intent-to-add 只记录,该路径稍后再添加
-A, --all 添加所有改变的已跟踪文件和未跟踪文件
--ignore-removal 忽略工作区中移除的路径(和 --no-all 相同)
--refresh 不添加,只刷新索引
--ignore-errors 跳过因出错不能添加的文件
--ignore-missing 检查在演习模式下文件(即使不存在)是否被忽略
--chmod (+|-)x 覆盖列表里文件的可执行位
failed to add snapshot files
INFO 2026-04-07T08:55:45 +14ms service=bus type=message.updated publishing
INFO 2026-04-07T08:55:45 +1ms service=bus type=session.status publishing
INFO 2026-04-07T08:55:45 +0ms service=session.prompt step=2 sessionID=ses_298dadb94ffeTFmLVbeYvoG9yR loop
INFO 2026-04-07T08:55:45 +1ms service=session.prompt sessionID=ses_298dadb94ffeTFmLVbeYvoG9yR exiting loop
INFO 2026-04-07T08:55:45 +1ms service=bus type=session.status publishing
INFO 2026-04-07T08:55:45 +1ms service=bus type=session.idle publishing
INFO 2026-04-07T08:55:45 +0ms service=server method=GET path=/session/{id} request
INFO 2026-04-07T08:55:45 +1ms service=server status=started method=GET path=/session/{id} request
INFO 2026-04-07T08:55:45 +2ms service=server status=completed duration=2 method=GET path=/session/{id} request
INFO 2026-04-07T08:55:45 +4ms service=session.compaction pruning
INFO 2026-04-07T08:55:45 +2ms service=session.compaction pruned=0 total=0 found
INFO 2026-04-07T08:55:45 +37ms service=bus type=session.updated publishing
INFO 2026-04-07T08:55:45 +11ms service=bus type=session.diff publishing
INFO 2026-04-07T08:55:45 +37ms service=bus type=message.updated publishing
INFO 2026-04-07T08:55:58 +12747ms service=snapshot prune=7.days cleanup
Operating System
macOS 13.7.8
Terminal
iTerm2
Activity
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.