Repository navigation
fix(app): only treat the builtin sidecar as local - #53628
Embiggenerd wants to merge 2 commits into
Conversation
…ocalhost-picker # Conflicts: # packages/app/src/runtime/server/registry.tsx # packages/app/src/runtime/server/runtime.tsx
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #52205
Type of change
What does this PR do?
This PR makes it so that only servers created directly by the desktop application use the native file picker. Before, any localhost server would use the native file picker. This was a problem if the server and the app are in different file systems, such as WSL. Using a Windows file picker for a Linux file system causes bugs, such as sending a file path the server can't use.
The trade-off is that users using opencode serve on localhost will always get the in-app file picker instead of the native picker. It will still work but they may be missing features. I interpret the purpose of opencode serve to be for running in separate file environments, so I think this is okay. I may be off on that.
How did you verify your code works?
I tested 2 paths manually:
Screenshots / recordings
In the vid, I look pick a file in the server the app started, then I show that the 'wsl' server is running locally and it uses the in-app file picker.
wsl-picker.mp4
Checklist
If you do not follow this template your PR will be automatically rejected.