Repository navigation
fix(composer): send file mentions on a Windows server - #147
Merged
Merged
Conversation
A server on Windows reports its directory as C:\Users\..., which the app didn't treat as absolute. The mention's URI came out as file:///C:%5CUsers%5C..., the server rejected it as an invalid file URI and the message never sent. Drive paths now become file:///C:/Users/... . Verified with scripts/check.sh :feature:composer; the new test's input gave the %5C form before the change.
Closed
This branch was previously deployed
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.
Mentioning a file with
@made the message fail to send when the OpenCode server runs on Windows, as a user reported. The server gives its directory asC:\Users\…, the app didn't treat that as an absolute path, and the mention went out asfile:///C:%5CUsers%5C…/src/main.ts. The server rejects that as an invalid file URI, which rejects the whole prompt.Now a drive path is sent as
file:///C:/Users/…/src/main.ts, which the server accepts.fileURLToPathin Windows mode throw on the old form and accept the new one.scripts/check.sh :feature:composerpasses. iOS has the same bug; a matching PR follows.