fix: resolve import, file refresh, patch diff, and ui/docs regressions#16020
Open
6crucified wants to merge 4 commits intoanomalyco:devfrom
Open
fix: resolve import, file refresh, patch diff, and ui/docs regressions#160206crucified wants to merge 4 commits intoanomalyco:devfrom
6crucified wants to merge 4 commits intoanomalyco:devfrom
Conversation
Contributor
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #15797
Closes #15996
Closes #15897
Closes #14964
Closes #14965
Closes #15961
Type of change
What does this PR do?
this fixes a batch of reported issues across cli/app/ui/docs:
opencode importnow writes the current instanceproject_idanddirectoryduring import (and conflict update), so imported sessions are attached to the right project/worktree.file.editedevent comes in, so edits made by ai appear without reopening the tab.apply_patchnow reports final diff/files from post-write disk state, so formatter-side edits are included in the returned diff metadata.system(also removed debug noise).skills.paths,skills.urls, cache/output details).why this works:
How did you verify your code works?
./script/verify-issues.sh(pass)packages/opencode:bun test test/cli/import.test.ts test/tool/apply_patch.test.tspackages/app:bun test src/context/file/watcher.test.tsbun turbo typecheck(pass)opencode importalways assigns session to global project, ignoring current working directory #15797 import flow via sqlite row check (project_id,directory)Screenshots / recordings
not included yet. i can add a short recording for the ui behavior (#15996 / #14965) if maintainers want it.
Checklist