Skip to content

Comments

fix(bash): detect external directories without realpath#10874

Open
MaxMiksa wants to merge 1 commit intoanomalyco:devfrom
MaxMiksa:fix/bash-external-dir-detect
Open

fix(bash): detect external directories without realpath#10874
MaxMiksa wants to merge 1 commit intoanomalyco:devfrom
MaxMiksa:fix/bash-external-dir-detect

Conversation

@MaxMiksa
Copy link
Contributor

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)

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@pschiel
Copy link
Contributor

pschiel commented Jan 27, 2026

we really should not add more of these custom regexps scattered throughout 100 places in the code, with self-made resolve functions made by AI

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.

bash tool: external_directory prompt skipped when realpath is missing

2 participants