Skip to content

fix(core): handle missing read paths#33255

Merged
kitlangton merged 2 commits into
devfrom
read-not-found
Jun 21, 2026
Merged

fix(core): handle missing read paths#33255
kitlangton merged 2 commits into
devfrom
read-not-found

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • keep realPath failures in the read tool error channel
  • return missing paths as model-visible tool failures instead of terminating the session drain
  • verify missing targets do not reach permission checks or file inspection

Test plan

  • bun run test test/tool-read.test.ts from packages/core (17 passed)
  • bun typecheck from packages/core
  • pre-push bun turbo typecheck (23 packages passed)

Additional validation

The full Core suite was attempted, but the run encountered an unrelated shared-test database failure (SQLiteError: table session_context_epoch already exists) across 308 tests. The focused test and all typechecks pass.

@kitlangton kitlangton merged commit 823d327 into dev Jun 21, 2026
8 checks passed
@kitlangton kitlangton deleted the read-not-found branch June 21, 2026 17:50
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant