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
If you are in a git worktree (from a git repo, type git worktree add ../worktree-test && cd ../worktree-test), the /files command will list files, but selecting one will produce an error:
Failed to read file
Notably, in git worktrees, .git is a file, not a directory. If I rename/remove that file, the error goes away, so I would expect that opencode is doing some sort of git repo introspection before reading a file that works on a regular git checkout, but not a git worktree.
jemag, medeirosthiago, mattang687, apaslak and esafak