The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(install): drive -SkipSetup alone through the needs-input stage frame; sync zh-Hans doc
Yuan Lie40637dcba05
diff --git a/tests/scripts/install/test_install_ps1_skipsetup_alias.py b/tests/scripts/install/test_install_ps1_skipsetup_alias.pyindex e3c14dfb104..2f3a3721afb 100644--- a/tests/scripts/install/test_install_ps1_skipsetup_alias.py+++ b/tests/scripts/install/test_install_ps1_skipsetup_alias.py@@ -38,3 +38,27 @@ def test_skipsetup_still_binds(tmp_path):"-SkipSetup failed to bind:\n" + result.stderr + result.stdout)report = json.loads(result.stdout)assert report, "expected the resolved-paths JSON report on stdout"+++def test_skipsetup_alone_skips_needs_input_stage(tmp_path):+ """-SkipSetup without -NonInteractive must fold into it (#125371 review).++ Driving ``-Stage setup`` (``needs_user_input = $true``) with only the alias+ proves the fold itself: deleting the ``if ($SkipSetup)`` line makes the+ stage dispatch run interactively instead of emitting the skipped frame.+ """+ powershell = shutil.which("powershell")+ assert powershell+ result = subprocess.run(+ [powershell, "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass",+ "-File", str(INSTALLER), "-SkipSetup", "-Stage", "setup", "-Json",+ "-HermesHome", str(tmp_path / "home"), "-InstallDir", str(tmp_path / "install")],+ capture_output=True, text=True, timeout=120,+ )+ assert result.returncode == 0, (+ "-SkipSetup -Stage setup failed:\n" + result.stderr + result.stdout)+ frame = json.loads(result.stdout.strip().splitlines()[-1])+ assert frame["ok"] is True+ assert frame["stage"] == "setup"+ assert frame["skipped"] is True, frame+ assert frame.get("reason") == "needs user input", framediff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.mdindex 0113251c901..90dedef025d 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md@@ -43,7 +43,7 @@ iex (irm https://hermes-agent.nousresearch.com/install.ps1)| `-Manifest` / `-ProtocolVersion` | 查看引导 GUI 使用的阶段协议。 || `-Stage NAME -Json` | 执行单个阶段并输出结果帧。 |-当前脚本不接受 `-NoVenv`、`-SkipSetup` 或 `-Tag`。+当前脚本不接受 `-NoVenv` 或 `-Tag`;`-SkipSetup` 仍被接受,作为 `-NonInteractive` 的已弃用别名,以便旧的安装包装脚本继续兼容。### MSIX / App Installer 和 Microsoft Store