cloudaxe-opencode/packages/opencode
Simon Klee 4a608b2026
snapshot: fix cwd for git commands in subdirs
When opencode is launched from a git repository subdirectory,
the snapshot service passes file paths relative to the worktree
root but sets cwd to the launch directory. Git cannot resolve
the paths and fails with "did not match any files".

Use the worktree root as cwd so paths resolve correctly
regardless of which subdirectory opencode is started from.

Fix #27688
Close #27737
2026-05-18 09:58:08 +02:00
..
bin fix(cli): forward signals from npm shim (#26259) 2026-05-08 14:00:51 -05:00
migration chore: generate 2026-05-12 05:20:22 +00:00
script Load models.dev snapshot from build global (#28077) 2026-05-17 21:59:44 -04:00
specs chore: generate 2026-05-16 00:44:10 +00:00
src snapshot: fix cwd for git commands in subdirs 2026-05-18 09:58:08 +02:00
test snapshot: fix cwd for git commands in subdirs 2026-05-18 09:58:08 +02:00
.gitignore Load models.dev snapshot from build global (#28077) 2026-05-17 21:59:44 -04:00
AGENTS.md refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
BUN_SHELL_MIGRATION_PLAN.md
bunfig.toml
Dockerfile
drizzle.config.ts
git
package.json sync release versions for v1.15.4 2026-05-17 17:44:50 +00:00
parsers-config.ts chore: generate 2026-05-11 14:13:39 +00:00
README.md
sst-env.d.ts
tsconfig.json

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.