You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "M4n5ter (via GitHub)" <gi...@apache.org> on 2026/08/29 14:51:05 UTC

[PR] fix(desktop): replace conflicting Local Runtime Host during startup [maka]

M4n5ter opened a new pull request, #4185:
URL: https://github.com/apache/maka/pull/4185

   <details open>
   <summary>English</summary>
   
   ## Summary
   
   When Desktop encounters an incompatible Local Runtime Host, the startup dialog now resolves the conflict instead of requiring users to find and stop an unknown process:
   
   - shows the owning process ID and a cross-platform manual fallback;
   - offers **Stop Host and Continue** only when Desktop has the authority to replace that Local Host;
   - removes **Wait** for system-supervised Hosts because the supervisor would keep restarting them;
   - routes supervised replacement through the exact persisted operator authority, while ephemeral replacement revalidates the complete Host identity before signaling the process;
   - lets a newer exact update package retire an older protocol-incompatible supervised Host without weakening the normal active-work policy.
   
   The replacement preserves durable workspace state and retries the original Desktop connection after the new Host becomes ready.
   
   ## Verification
   
   - Real macOS dogfood against a LaunchAgent-managed incompatible Host: the native dialog replaced PID `16731` with PID `54831`, advanced the deployment revision from 3 to 4, and opened Desktop successfully.
   - Confirmed the supervised-host dialog contains only **Stop Host and Continue**, **Copy Diagnostics**, and **Cancel Startup**.
   - `npm run lint`
   - `npm run format:check`
   - Built the affected Runtime Host, CLI, and Desktop main-process packages.
   - 111 focused lifecycle, service-update, Desktop manager, operator, SSH, replacement, and dialog tests passed.
   
   ## AI use
   
   Select exactly one:
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: OpenAI Codex implemented, reviewed, tested, and dogfooded the change. The commit includes the required `Generated-by` trailer.
   
   ## Checklist
   
   - [x] Tests cover the change and fail without it
   - [x] Lint, format, typecheck and the affected suites pass locally
   
   Does this PR entail a change in behavior?
   
   - [x] Yes — described under Summary above
   - [ ] No
   
   </details>
   
   <details>
   <summary>中文</summary>
   
   ## 概要
   
   Desktop 遇到不兼容的本地 Runtime Host 时,启动弹窗现在可以直接解决冲突,不再要求用户自行寻找并停止未知进程:
   
   - 显示占用进程的 PID,并提供跨平台通用的手动处理提示;
   - 仅在 Desktop 确实拥有替换权限时提供 **停止 Host 并继续**;
   - 系统托管 Host 会被监督器持续拉起,因此不再提供无效的 **等待**;
   - 系统托管 Host 通过持久化的精确 operator authority 替换;临时 Host 则在发送信号前重新验证完整 Host 身份;
   - 新的精确更新包可以淘汰协议不兼容的旧托管 Host,同时不放宽正常的活动工作保护策略。
   
   替换会保留工作区的持久化状态,并在新 Host 就绪后重试原始 Desktop 连接。
   
   ## 验证
   
   - 在 macOS 上针对 LaunchAgent 托管的不兼容 Host 进行了真实 dogfood:原生弹窗将 PID `16731` 替换为 PID `54831`,部署 revision 从 3 升至 4,Desktop 正常进入主界面。
   - 已确认系统托管 Host 的弹窗只包含 **停止 Host 并继续**、**复制诊断信息** 和 **取消启动**。
   - `npm run lint`
   - `npm run format:check`
   - 已构建受影响的 Runtime Host、CLI 与 Desktop 主进程包。
   - 111 个聚焦于生命周期、服务更新、Desktop manager、operator、SSH、替换与弹窗的测试通过。
   
   ## AI 使用
   
   OpenAI Codex 完成实现、审阅、测试和真实 dogfood;提交包含要求的 `Generated-by` trailer。
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] fix(desktop): replace conflicting Local Runtime Host during startup [maka]

Posted by "M4n5ter (via GitHub)" <gi...@apache.org>.
M4n5ter merged PR #4185:
URL: https://github.com/apache/maka/pull/4185


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org