Repository navigation
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Reviewed at 32be21e against Reproduced on a disposable Omarchy worker. I ran
One thing outside this diff has to land first.
Claude Opus 5.5 did the review, and Codex Medium reviewed it as a second opinion. Codex agreed that the escaping round-trips for any run of Nothing is needed from you. This waits on the maintainer: whether |
|
Rechecked now that this targets
Porting this diff onto that code would make things worse: its unconditional This was a read of #13432 is separate and still open. It makes the Quattro migration decode a legacy Nothing is needed from you, and thanks for the report and fix. This waits on the maintainer to close it. |
|
Thank you for this, @ajkingio. Closed at the maintainer's request. The review above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
…igration (#13432) * Undo Compose's $$ escaping when migrating a legacy Windows VM password The legacy compose under ~/.config/windows holds the password as Compose reads it, so a $$ there reached the guest as $. Migration copied the raw text into the RDP credentials and re-escaped it for the new compose, leaving RDP and the new container environment with $$ while the existing guest, whose disk is preserved, still has $. Decoding $$ at the migration boundary keeps both on the password the guest actually has. This also makes #4882 safe to land on dev, which writes every $ in the password as $$. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Undo the legacy password's YAML escapes too when migrating Compose parses the legacy PASSWORD as a YAML double-quoted string before it interpolates $$, so a legacy "a\\b\"c$$d" reached the guest as a\b"c$d. Decoding only $$ left \\ and \" in the RDP credential and the rewritten compose. unescape() already reverses exactly these layers for every other read of the compose, so use it here. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: omarchybot <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Omarchybot <[email protected]>
…igration (#13432) * Undo Compose's $$ escaping when migrating a legacy Windows VM password The legacy compose under ~/.config/windows holds the password as Compose reads it, so a $$ there reached the guest as $. Migration copied the raw text into the RDP credentials and re-escaped it for the new compose, leaving RDP and the new container environment with $$ while the existing guest, whose disk is preserved, still has $. Decoding $$ at the migration boundary keeps both on the password the guest actually has. This also makes omacom/omarchy#4882 safe to land on dev, which writes every $ in the password as $$. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Undo the legacy password's YAML escapes too when migrating Compose parses the legacy PASSWORD as a YAML double-quoted string before it interpolates $$, so a legacy "a\\b\"c$$d" reached the guest as a\b"c$d. Decoding only $$ left \\ and \" in the RDP credential and the rewritten compose. unescape() already reverses exactly these layers for every other read of the compose, so use it here. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: omarchybot <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Omarchybot <[email protected]> (cherry picked from commit 51b348bbe74483f7c1d24d6463764b96a5fef022)
The Issue
omarchy-windows-vm doesn't escape $ symbols in passwords so it thinks they are variables. It sets a chopped up version of the password in the Windows VM but uses the full password you passed in the docker compose file.
I noticed these messages during the omarchy-windows-vm install process, which tipped me off.
So the manual fix was:
omarchy-windows-vm removeomarchy-windows-vm installThe Fix
Fixed omarchy-windows-vm to properly handle $ in usernames/passwords by escaping dollar signs before writing docker-compose.yml, so Docker Compose doesn’t treat them as variable interpolation. Then on launch, it unescapes when reading credentials back for RDP login. This keeps the Windows account password and the stored compose config consistent.