find_project_root used [ -d "$dir/.git" ], which fails in a git worktree where .git is a file containing a gitdir: pointer rather than a directory. Switches to -e (a strict superset, so the normal-repo case is unaffected; submodules are fixed for free). Also changes return 1 to return 0 in the fallback branch: PROJECT_ROOT="$(find_project_root)" takes the command substitution's exit status, so under set -e the script aborted after the fallback value had already been computed, producing silent no-output. Mainly affects non-Node projects consuming OAC from a worktree; this repo's root package.json masks the bug. |
||
|---|---|---|
| .. | ||
| agent | ||
| command | ||
| config | ||
| context | ||
| docs | ||
| plugin | ||
| plugins/coder-verification | ||
| profiles | ||
| prompts | ||
| scripts | ||
| skill | ||
| skills | ||
| tool | ||
| config.json | ||
| opencode.json | ||