Skip to content

Conversation

@aweis89
Copy link
Contributor

@aweis89 aweis89 commented Jan 27, 2026

  • These checks are already present upstream in the call stack.

  • Primary motivation is that I wanted to be able to add files outside the current working directory to the context. This enables clients to do so by using require("opencode.context").ChatContext.add_filebypassing these checks instead of require("opencode.context").add_file which still won't allow it.

- remove redundant checks for file readability and directory status
@sudo-tee
Copy link
Owner

Thanks for the PR

I am fine with this

@sudo-tee sudo-tee merged commit 8eee7e6 into sudo-tee:main Jan 27, 2026
5 checks passed
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.

2 participants