[PR #10874] fix(bash): detect external directories without realpath #13585

Open
opened 2026-02-16 18:18:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10874

State: open
Merged: No


Fixes #10872

What does this PR do?

Removes the realpath external dependency from bash tool path detection by using internal resolution (path.resolve) with fs.realpath fallback, so external_directory prompts still happen when realpath is missing.

How did you verify your code works?

  • bun run --cwd packages/opencode typecheck
  • bun test test/tool/bash.test.ts -t "realpath is missing" (regression test)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10874 **State:** open **Merged:** No --- Fixes #10872 ### What does this PR do? Removes the `realpath` external dependency from bash tool path detection by using internal resolution (`path.resolve`) with `fs.realpath` fallback, so `external_directory` prompts still happen when `realpath` is missing. ### How did you verify your code works? - `bun run --cwd packages/opencode typecheck` - `bun test test/tool/bash.test.ts -t "realpath is missing"` (regression test)
yindo added the pull-request label 2026-02-16 18:18:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13585