Skip to content

fix(kvm): 交互终端不再包 timeout 8,保留 -e 多行值 (#509) - #510

Merged
dofastted merged 2 commits into
mainfrom
cursor/fix-kvm-interactive-shell-509-f8d3
Oct 17, 2026
Merged

dofastted merged 2 commits into
mainfrom
cursor/fix-kvm-interactive-shell-509-f8d3

Conversation

@dofastted

@dofastted dofastted commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Fixes #509

变更

  • docker/kin-kvm/kin-guest-exec

    • 交互式前台(-i 且非 -d)直接执行 ssh,不再用 timeout 8 包裹整段会话;连接建立仍受现有 ConnectTimeout=3 约束。
    • detach 与非交互路径继续使用 timeout 8 ssh,行为与原先短命令场景一致。
    • 每个 -e KEY=VAL 在解析时用 posix_quote 独立生成 export,不再经换行拼接后再拆分,保留值内换行(含面板 KIN_PANEL_RC)。
  • test/unit/kin-guest-exec.test.mjs:mock ssh/timeout 的 harness 测试(交互无 timeout、detach/非交互仍有 timeout、多行 env)。

  • CHANGELOG.md:在 ## 未发布 增加中文条目。

测试

node --test test/unit/kin-guest-exec.test.mjs
node scripts/run-isolated-tests.mjs test/unit slot-shell-rc.test.mjs

未修改 VERSION。

Open in Web Open in Cursor 

Note

Low Risk
Scoped to KVM guest SSH helper script and new unit tests; behavior change is intentional for interactive terminals and env quoting.

Reviewed by Cursor Bugbot for commit 53adcdb. Configure here.

cursoragent and others added 2 commits October 17, 2026 13:26
…-e (#509)

Co-authored-by: ted <kuhlmangarry24@gmail.com>
Co-authored-by: ted <kuhlmangarry24@gmail.com>
@cursor
cursor Bot force-pushed the cursor/fix-kvm-interactive-shell-509-f8d3 branch from 8452045 to 24decaa Compare October 17, 2026 13:26
@dofastted
dofastted merged commit 53a5db4 into main Oct 17, 2026
7 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.

[Bug] KVM 交互终端被 timeout 包装,且多行环境变量被拆分

2 participants