Repository navigation
fix(desktop): mention the optional port suffix in the SSH address hint - #5358
Conversation
🦋 Changeset detectedLatest commit: ea56673 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
commit: |
The 2.7.0 merge resolution had kept the clamped rollout copy, so plan delays beyond 24h were still capped and the compatibility alias survived (MoonshotAI#5043). Restore the upstream behavior: covered buckets honor their delay, uncovered buckets sit behind the longest configured delay with a 24h floor, and the Date-range guard stays. Port the SSH address hint that mentions the optional port suffix in both locales (MoonshotAI#5358) with its changeset.
Requirement or Bug
桌面端设置中的 SSH 主机表单实际支持
user@host:port写法(保存时自动归一化为ssh://地址),但地址输入框的提示文案只列出user@host、ssh://地址、~/.ssh/config别名三种格式,只字未提端口,用户无从得知可以直接在地址后附加端口号。本 PR 在提示文案中补上[:port]可选标记。Bug Reproduction Steps
N/A
Root Cause
N/A(提示文案补全,非缺陷修复)
Code Changes
改动只有两条文案:
packages/app-i18n的 zh / en locale 中settings.hosts.targetHint各加上[:port]标记。[:port]采用 OpenSSH man page 的可选段记法([user@]host[:port]),方括号表达「可选」,避免用户误以为端口必填;端口写法已被表单支持——输入user@host:port保存时会归一化为ssh://地址,最终原样传给ssh命令解析。placeholder 保持[email protected]不变:端口是可选信息,写进示例会显得必填。Behavior Changes and Affected Users
[:port]标记提示地址后可附加端口受影响模块:
packages/app-i18n(zh / en 词条),仅桌面端「设置 → 主机」表单消费(HostsPanel只在apps/desktop的 SettingsDialog 中引用)。验证:
packages/app-i18n测试 8/8 通过;用 vue-i18n 实际渲染两条新文案,确认 ICU 转义后输出与预期一致;pnpm lint(含 comment / import 边界 / ratchet 等全部检查)与 desktop typecheck 通过。未做真实桌面端截图——变化为单行提示文本,diff 与渲染结果如上。Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.