Skip to content

fix(desktop): mention the optional port suffix in the SSH address hint - #5358

Merged
7Sageer merged 1 commit into
mainfrom
fix/ssh-target-port-hint
Nov 24, 2026
Merged

7Sageer merged 1 commit into
mainfrom
fix/ssh-target-port-hint

Conversation

@7Sageer

@7Sageer 7Sageer commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

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] 标记。

- user@host、ssh:// 地址或 ~/.ssh/config 中的别名
+ user@host[:port]、ssh:// 地址或 ~/.ssh/config 中的别名

- user@host, an ssh:// address, or an alias in ~/.ssh/config
+ user@host[:port], an ssh:// address, or an alias in ~/.ssh/config

[:port] 采用 OpenSSH man page 的可选段记法([user@]host[:port]),方括号表达「可选」,避免用户误以为端口必填;端口写法已被表单支持——输入 user@host:port 保存时会归一化为 ssh:// 地址,最终原样传给 ssh 命令解析。placeholder 保持 [email protected] 不变:端口是可选信息,写进示例会显得必填。

Behavior Changes and Affected Users

Behavior Before After Who relies on the old behavior Escape hatch
桌面端 SSH 主机表单的地址提示文案 未提及端口写法 以 [:port] 标记提示地址后可附加端口 无(纯提示文案,不影响任何输入的处理逻辑与连接行为) N/A

受影响模块: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

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ea56673

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kimi-code-app Patch

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

@7Hanrui

7Hanrui commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T12:31:07.724097Z ea56673 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: ea56673da8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@7Sageer
7Sageer marked this pull request as ready for review November 24, 2026 12:28
@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@ea56673
npx https://pkg.pr.new/@moonshot-ai/kimi-code@ea56673

commit: ea56673

@7Sageer
7Sageer merged commit 1acd13b into main Nov 24, 2026
26 checks passed
@7Sageer
7Sageer deleted the fix/ssh-target-port-hint branch November 24, 2026 12:33
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants