cloudaxe-opencode/packages/opencode/test
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
..
account
acp
agent
auth
background
bus
cli dialog prompt submit keybind + opentui event sink (#27945) 2026-05-18 00:23:19 +02:00
config dialog prompt submit keybind + opentui event sink (#27945) 2026-05-18 00:23:19 +02:00
control-plane refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
effect chore: generate 2026-05-15 19:48:45 +00:00
fake
file chore: generate 2026-05-15 07:36:10 +00:00
filesystem
fixture refactor(instance): retire WithInstance adapter (#27782) 2026-05-16 01:30:07 +05:30
format
git
ide
image
installation
lib
lsp fix(lsp): preserve instance ref for update events (#28016) 2026-05-17 16:37:00 +05:30
mcp
patch
permission
plugin refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
project refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
provider Load models.dev snapshot from build global (#28077) 2026-05-17 21:59:44 -04:00
pty
question refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
reference
server fix(tui): show config error details on startup (#27803) 2026-05-15 20:42:56 -04:00
session Load models.dev snapshot from build global (#28077) 2026-05-17 21:59:44 -04:00
share
shell
skill refactor(flags): migrate external skills flag (#27685) 2026-05-15 13:24:56 +05:30
snapshot snapshot: fix cwd for git commands in subdirs 2026-05-18 09:58:08 +02:00
storage refactor(flags): migrate skip migrations flag (#27705) 2026-05-15 14:54:29 +05:30
sync fix(sync): publish events on injected project bus (#27825) 2026-05-16 05:56:49 +00:00
tool fix read stream byte cap 2026-05-16 09:20:35 -04:00
util
v2
AGENTS.md refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
EFFECT_TEST_MIGRATION.md refactor(instance): retire WithInstance adapter (#27782) 2026-05-16 01:30:07 +05:30
permission-task.test.ts
preload.ts