Repository navigation
fix(desktop): preserve completed SSH management results - #3552
Merged
jackwener merged 1 commit intoAug 23, 2026
Merged
Conversation
Treat a fully decoded remote management frame as the operation outcome even when the SSH transport misses its exit deadline. The transport is still terminated and reaped, while operations without a completed frame continue to fail on timeout. Generated-by: Codex
M4n5ter
marked this pull request as ready for review
August 23, 2026 04:52
jackwener
approved these changes
Aug 23, 2026
jackwener
left a comment
Member
There was a problem hiding this comment.
Reviewed exact head 1e225cf. This resolves the shared teardown-timeout shape for both framed management and completed setup by returning a structured timeout outcome from the process waiter, while cleanup and upload remain fail-closed. The exact-head hosted test is terminal green. No P0-P2 findings. Two non-blocking test-shape follow-ups: wait for the fake PTY data listener before emitData for consistency, and consider avoiding a production factory timeout option used only by tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
Summary
Preserve a fully decoded Runtime Host setup or management frame when the SSH process misses its exit deadline. The SSH process is still terminated and reaped within the existing bounds; only the already-known remote operation outcome stops being replaced by a transport timeout.
Unframed upload and deployment-cleanup operations, malformed frames, and calls that time out before receiving a complete frame continue to fail.
Fixes #3546
Verification
npm --workspace @maka/desktop test— 1193 tests passednpm --workspace @maka/desktop run typechecknpm run lintnpm run format:checknpm run check:asf-headersnpx knip --workspace apps/desktopAI use
Tool(s) and scope: Codex implemented and verified the SSH management timeout fix under maintainer direction
Checklist
Does this PR entail a change in behavior?
简体中文
摘要
当 Runtime Host setup 或 management frame 已完整解码后,即使 SSH 进程未能在退出期限内结束,也保留该远端操作结果。SSH 进程仍会按现有边界被终止并回收;本 PR 只防止已知的远端结果被传输收尾超时覆盖。
没有 frame 的上传与 deployment cleanup、畸形 frame,以及在收到完整 frame 前发生的超时仍然失败。
修复 #3546
验证
npm --workspace @maka/desktop test— 1193 项测试通过npm --workspace @maka/desktop run typechecknpm run lintnpm run format:checknpm run check:asf-headersnpx knip --workspace apps/desktopAI 使用
Codex 在维护者指导下实现并验证了 SSH management timeout 修复
检查清单