Skip to content

refactor: use InstanceState context in File service#23015

Open
kitlangton wants to merge 1 commit intodevfrom
kit/file-instance-context
Open

refactor: use InstanceState context in File service#23015
kitlangton wants to merge 1 commit intodevfrom
kit/file-instance-context

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • stop packages/opencode/src/file/index.ts from reading ambient Instance.directory, Instance.worktree, and Instance.project
  • read the current file service context from InstanceState.context in scan, status, read, and list
  • keep file path boundary checks local to the service so the migration does not depend on ALS-backed sync getters

Testing

  • bun typecheck

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