Skip to content

test(acp): make shell workdir location assertion windows-safe#32306

Merged
nexxeln merged 1 commit into
devfrom
acp-windows-workdir-test
Jun 14, 2026
Merged

test(acp): make shell workdir location assertion windows-safe#32306
nexxeln merged 1 commit into
devfrom
acp-windows-workdir-test

Conversation

@nexxeln

@nexxeln nexxeln commented Jun 14, 2026

Copy link
Copy Markdown
Member

Follow-up to #32304.

The toLocations bash test hardcoded /workspace/subdir, but on the Windows unit-test runner path.resolve() produces backslash paths (\workspace\subdir), so the assertion failed there. Use the platform path resolver as the oracle instead — matching the resolve() call in tool.ts and the existing convention across the test suite.

Source behavior is unchanged; this is test-only.

Use the platform path resolver as the oracle instead of a hardcoded
forward-slash path, matching the resolve() call in tool.ts. The previous
assertion failed on the Windows unit-test runner where resolve() yields
backslash paths.
@nexxeln nexxeln merged commit e4d4b07 into dev Jun 14, 2026
10 checks passed
@nexxeln nexxeln deleted the acp-windows-workdir-test branch June 14, 2026 12:54
davidgut1982 pushed a commit to davidgut1982/opencode that referenced this pull request Jun 19, 2026
markjaquith pushed a commit to markjaquith/opencode that referenced this pull request Jun 23, 2026
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant