v1.17.0 breaks Positron connections: single-quoted `--url` in ProxyCommand reaches the CLI literally ("Premature close")
维护者通常 2 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- shell, typescript, vscode
- 领域
- devtools
调研方向
问题出在扩展程序将 ProxyCommand 行写入生成的 SSH 配置的方式。找到部署 URL 使用单引号进行 shell 转义的位置,并与现有的路径转义方式进行比较,该 issue 称现有方式已经可以正常工作。检查是否有单元测试覆盖生成的 ProxyCommand 字符串,并将其扩展到 URL。完成标准是:URL 以不加引号或双引号的形式输出,现有路径转义保持不变,且测试通过。
由索引模型根据 Issue 内容生成。
描述
Regression in v1.17.0; v1.16.4 works. Positron 1.134.0, macOS arm64, Coder v2.34.1.
Every Positron connection fails within ~100 ms:
[Trace] Spawning ProxyCommand: …/coder-darwin-arm64 --token= --url 'https://coder.example.com' --use-keyring=true ssh --disable-autostart --stdio …
[Error] Error resolving authority
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
VS Code (Microsoft Remote-SSH) and plain ssh from a terminal work with the same generated config.
Cause
v1.17.0 POSIX-shell-quotes the URL in the ProxyCommand (--url 'https://…'); v1.16.4 wrote it bare. Positron's built-in open-remote-ssh doesn't run ProxyCommand through a shell: it tokenizes the ssh_config value (honoring double quotes only) and calls child_process.spawn(cmd, args). The CLI therefore gets the quotes literally and exits at flag parsing:
invalid argument "'https://coder.example.com'" for "--url" flag: parse "'https://coder.example.com'": first path segment in URL cannot contain colon
open-remote-ssh discards the child's stderr, so the user sees only "Premature close". Other editors built on open-remote-ssh are presumably affected the same way.
Workaround
Install v1.16.4 and turn off auto-update for the extension. There's no settings-level workaround: coder.sshConfig can't override ProxyCommand, and the conf file is rewritten on every connect.
Suggested fix
Quote the URL the way the paths already are (bare when it matches the safe character set, double quotes otherwise). Since 1.17.0 already rejects deployment URLs containing shell metacharacters, the single quotes don't add safety, and double quotes parse correctly in both OpenSSH and open-remote-ssh.
- 主要语言
- TypeScript
- 星标
- 132
- 派生
- 48
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 29
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/vscode-coder 的其他 Issue
-
ReconnectingWebSocket drops messages the server sends right after the handshake可能已有人在做 @EhabY 于 3 天前认领。 未关闭bug vs-code
难度 3/5 1-2 天 新手友好度 72/100
coder/vscode-coder#1141 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
Split commands.ts by topic可能已有人在做 @EhabY 于 3 天前认领。 未关闭Improvement tech-debt vs-code
难度 4/5 3-5 天 新手友好度 48/100
coder/vscode-coder#1135 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
Design the VS Code Workspaces panel可能重新可做 @chrifro 于 30 天前认领,目前没有进行中的 PR。 未关闭
coder/vscode-coder#1113 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
bug upstream
难度 4/5 3-5 天 新手友好度 42/100
coder/vscode-coder#1087 · 1 条评论 ·
维护者通常 2 天内回复
-
Improvement tech-debt vs-code
难度 3/5 1-2 天 新手友好度 55/100
coder/vscode-coder#1066 · 2 条评论 ·
维护者通常 2 天内回复
查看 coder/vscode-coder 的全部 Issue
相似的 Issue
-
documentation good first issue
难度 2/5 半天 新手友好度 72/100
sujithputta02/Esapay#13 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
维护者通常 1 天内回复
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)可能已有人在做 @chibenwa 今天认领。 未关闭ai-driven-qa bug claude Cosmetic
难度 2/5 1-3 小时 新手友好度 72/100
linagora/twake-contacts-frontend#271 · 1 条评论 ·
维护者通常 1 天内回复
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Koenkk/zigbee2mqtt#33402 ·
维护者通常 1 天内回复