Repository navigation
feat(desktop): scope Runtime Host IPC by Host identity - #2935
Merged
Merged
Conversation
66 tasks done
Bind Desktop Host-backed requests and events to the root identity verified during the handshake, while keeping the existing single-active renderer API unchanged. Namespace Browser and Computer Use resources by Host and Session so target switches cannot collide on raw IDs. Generated-by: Codex
Bind Computer Use stops and diagnostics to the exact Runtime Host generation across target changes. Keep Host identity inside the private main-to-preload wire contract instead of exposing it through renderer profile APIs. Generated-by: Codex
Let a pending Runtime Host transition fence earlier Stop requests without making the Stop RPC part of the transition queue. A later profile switch or shutdown can now close a disconnected target and retire the stale action. Generated-by: Codex
Combine the handshake-verified root identity with the Desktop target epoch so stale requests, events, and native resources cannot cross between profiles that share one Host. Derive the root identity only from the established connection. Generated-by: Codex
Keep renderer observation intent independent of a candidate generation so failed switches and reconnects bind events to the current target epoch. Derive candidate scope from the target IPC authority and keep Desktop diagnostics available while that scoped Host reconnects.\n\nGenerated-by: Codex
Make a restored target generation visible and active before its candidate replays Session observations, so preload accepts the canonical seed under the new epoch. Deactivate that provisional scope if restoration fails.\n\nGenerated-by: Codex
Keep the owner snapshot aligned with the provisionally active rollback epoch while its candidate is being restored, and clear that authority if restoration fails.\n\nGenerated-by: Codex
Capture one Runtime Host scope across attachment preparation, pagination, retries, and read-modify-write operations so a target switch rejects the original action instead of migrating it. Retire Browser views and automation directly from the main-process target lifecycle.\n\nGenerated-by: Codex
Move Session observation release to the persistent Desktop owner so renderer cleanup remains valid while a target is switching or rolling back. Dispatch cancellation without waiting for Host seeding to finish. Generated-by: Codex
Forward scoped renderer events without dropping their payload. Release Session observation leases both immediately and after a reconnect-queued observe settles, covering both existing and late registrations. Generated-by: Codex
Register window, updater, and E2E fixture channels once at the persistent Desktop boundary. Keep only Host-dependent app and project operations inside the active target scope. Generated-by: Codex
M4n5ter
force-pushed
the
feat/runtime-host-scoped-desktop-identity
branch
from
August 13, 2026 04:57
2fe841f to
1776ea5
Compare
Register both Markdown save dialogs at the persistent Desktop boundary. Their payloads are already renderer-formatted and the operation only writes a user-selected local file, so it must remain available independently of the active Runtime Host generation. Generated-by: Codex
M4n5ter
marked this pull request as ready for review
August 13, 2026 06:12
Member
Author
EnglishI have manually reviewed the final contents of this PR, including the fixes produced through the iterative correctness, security, and design reviews. The Host identity and target-generation boundaries, Client-local versus Host-scoped IPC ownership, reconnect/switch/rollback behavior, and resource lifecycles are consistent with the intended architecture. The final independent review found no remaining blocking or important findings, and all required CI checks pass. Approved for merge. 简体中文我已人工审核此 PR 的最终内容,包括多轮 correctness、security 与 design 审查产生的全部修复。 Host identity 与 target generation 边界、Client-local 与 Host-scoped IPC ownership、重连/切换/回滚行为及资源生命周期均符合预期架构。最终独立审查未发现剩余的 blocking 或 important finding,所有必需 CI 检查均已通过。 同意合并。 |
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
Refs #2522
Verification
git diff --checkpassChecklist
Does this PR entail a change in behavior?
简体中文
摘要
关联 #2522
验证
git diff --check通过检查项
此 PR 是否改变行为?
AI disclosure: OpenAI Codex assisted with implementation, tests, documentation, and pull request text under M4n5ter's direction. Human review is required before merge.