Skip to content

docs: restore remote environment guidance and normalize Chinese quotes - #4818

Merged
wbxl2000 merged 2 commits into
MoonshotAI:mainfrom
wenhua020201-arch:docs/remote-environment-quotes-20261111
Nov 13, 2026
Merged

wbxl2000 merged 2 commits into
MoonshotAI:mainfrom
wenhua020201-arch:docs/remote-environment-quotes-20261111

Conversation

@wenhua020201-arch

Copy link
Copy Markdown
Contributor

Requirement or Bug

The remote-environment guide retained in the documentation site contains operational details that the later upstream #4693 rewrite removed or restructured. Mirroring upstream again would drop the retained reconnect behavior, remote-workspace limitations, Windows requirements, and related anchor targets.

The Chinese documentation also mixes curly double quotes with straight quotes and omits required spaces around quoted content next to CJK text. This PR restores the retained bilingual guide and brings the affected Chinese prose back under docs/AGENTS.md's straight-quote and spacing rules.

Bug Reproduction Steps

N/A — documentation-only editorial sync, not a bug-fix PR.

Root Cause

N/A — documentation-only editorial sync; there is no product bug root cause to diagnose. The editorial source is the retained guide used by the documentation site, while the quote-style inconsistencies were found by scanning Markdown prose outside fenced code, inline code, and HTML tags.

Code Changes

Remote-environment guide

  • Replace both docs/zh/guides/remote-environment.md and docs/en/guides/remote-environment.md with the retained bilingual version used by the documentation site, converting site-absolute links to upstream-relative Markdown links.
  • Intentionally replace docs: rewrite remote environment guide for users #4693's alternate guide structure rather than carrying it forward. The retained version restores the SSH setup flow, kimi --environment details, Docker and custom-command examples, Windows requirements, disconnect/reconnect behavior, and the fuller remote-workspace limitations.
  • docs: rewrite remote environment guide for users #4693's shorter architecture/quick-start prose gives way to the task-oriented SSH setup. Its kubectl/WSL examples are reduced to the generic custom-command example; field-level behavior remains in the complete environments reference. No product behavior is added or removed by this editorial replacement.
  • Remove the obsolete statement that remote sessions hide Git status in the footer. Remote repository Git status has been visible since CLI 2.5.0 (fix(tui): read welcome cwd and footer git status from the session environment #4649); the other retained limitations remain.
  • Update the six inbound links in config-files.md, kimi-command.md, and mcp.md per locale so they target the restored headings: Windows targets, kimi --environment / --environment-cwd, and Docker/custom-command environments.

Chinese quote style

  • Convert the six curly-double-quote cases in Chinese prose to straight double quotes.
  • Add the required spaces around straight quoted content adjacent to CJK text, covering 24 audit findings across 10 Chinese documents.
  • Leave 「」 special terms, fenced code, inline code, HTML attributes, and literal command output unchanged. English UI labels and error text remain verbatim; only surrounding typography is normalized.

Scope and release artifacts

  • 15 Markdown files change; no code, configuration contract, navigation, sidebar, or release artifact changes.
  • No changeset is needed because this is a docs-only editorial PR and users cannot perceive a runtime change.

Behavior Changes and Affected Users

None. There are no changes to command behavior, configuration keys, API responses, defaults, persisted data, or client contracts. The only user-visible differences are the restored documentation content and corrected typography.

Verification

  • git diff --check: passed.
  • Remote-environment content and upstream-link audit: passed; the obsolete hidden-Git-status limitation is absent and the other limitations remain.
  • Chinese quote audit: 24 findings before normalization, 0 after.
  • Inbound remote-environment link audit: passed; no stale docs: rewrite remote environment guide for users #4693 fragments remain.
  • npm run build in docs/: passed; only the existing ES2024, chunk-size, and dependency-audit warnings remain.
  • Generated HTML inspection confirmed all restored heading IDs and relative-link targets.
  • Chinese and English remote-environment pages and the WeChat FAQ were checked at desktop and 390px widths.
  • Independent whole-branch review found no content defects; the only required follow-up was supplying this PR description and the docs: rewrite remote environment guide for users #4693 replacement rationale above.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue — N/A for this docs-only editorial sync; there is no product bug or feature issue to link.
  • I have added tests that prove my feature works — N/A for this docs-only editorial sync; the content, quote, link, build, and rendered-page checks above cover the change.
  • 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 — there are no removed runtime behaviors or flipped defaults; this PR is docs-only and has no changeset.
  • Ran gen-changesets skill, or this PR needs no changeset — no changeset because the change is docs-only.
  • Ran gen-docs skill, or this PR needs no doc update — this is the documentation update itself; there is no separate code-driven documentation generation to run.

@changeset-bot

changeset-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dc4ff04

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 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-12T12:46:47.400650Z dc4ff04 New commits
ℹ️ 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 11, 2026 •

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

commit: dc4ff04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2d6a8eaf4

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

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

[environments.windows-dev]
type = "ssh"
host = "windows-dev"
remoteBin = "kimi"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the Windows example on the documented executor path

When readers follow the preceding setup and install only at ~/.kimi-code/bin/kimi.exe, this override makes SSH run bare kimi from the remote PATH; the binary at the documented default will not be found unless users separately add it to PATH, so the example connection fails. Remove the override or explain the PATH requirement; the same example appears in the Chinese mirror.

AGENTS.md reference: docs/AGENTS.md:L38-L42

Useful? React with 👍 / 👎.

## Declare Docker and custom-command environments

### Docker containers
Besides SSH, you can declare a Docker-compatible container or a custom launcher command.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge State the executor prerequisite for Docker and custom targets

When readers follow either non-SSH example for a container or target without Kimi installed, the launcher still executes the default ~/.kimi-code/bin/kimi exec-server remotely, but this section gives no step to install it; the executor prerequisite is now scoped to the SSH section, so these examples fail at connection time. State the prerequisite for Docker and custom targets here or in the shared setup, and do the same in the Chinese mirror.

AGENTS.md reference: docs/AGENTS.md:L272-L277

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc4ff0467a

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

- Configure users, ports, keys, and jump hosts in `~/.ssh/config` if needed.

This example uses `dev-box`, a machine you can already sign in to over SSH.
Kimi Code does not install the executor automatically. If it is missing or incompatible, install or update to the build provided for the target platform.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore an actionable SSH executor install step

For a fresh SSH target with no Kimi installation, step 1 is not actionable: this rewrite removes the previous ssh ... install.sh command and the link to Getting Started, while a repo-wide docs search finds no other instructions for obtaining the separately named “executor.” A reader therefore cannot get from this task guide to kimi --environment dev-box; restore the remote install command or link here and in the Chinese mirror.

AGENTS.md reference: docs/AGENTS.md:L270-L277

Useful? React with 👍 / 👎.

@wbxl2000
wbxl2000 merged commit ff61a26 into MoonshotAI:main Nov 13, 2026
27 of 28 checks passed
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.

2 participants