fix(desktop): stop polling unavailable collaboration authority - #4527
Open
testikun wants to merge 5 commits into
Open
fix(desktop): stop polling unavailable collaboration authority#4527testikun wants to merge 5 commits into
testikun wants to merge 5 commits into
Conversation
6 tasks
Phoenix500526
left a comment
Contributor
There was a problem hiding this comment.
The capability-based direction looks sound. I found three merge-readiness items below; I am leaving this as comments only, not an approval or merge request.
added 5 commits
September 3, 2026 09:55
Generated-by: Codex
Generated-by: Codex
Generated-by: Codex
Generated-by: Codex
testikun
force-pushed
the
codex/issue-4522-collab-polling
branch
from
September 3, 2026 02:01
1cf44b4 to
b325755
Compare
Contributor
Author
|
Addressed in b325755 (rebased onto the latest apache/main):
Biome checks and the focused polling/cache tests pass locally. The full workspace build remains affected by pre-existing cross-package type drift under the available Node/npm environment. |
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.
Summary
Fixes #4522
Desktop now learns whether each Runtime Host exposes collaboration authority from the authenticated
host.statusboundary. The global turn-request inbox skips Owner Hosts that explicitly report no collaboration authority, while legacy/unknown Hosts are probed once and then remembered as unavailable when they return the expected unavailable result. Transient reconnect failures retain the existing retry behavior. Expected backgroundoperation_unavailableresults are projected as an empty inbox so Electron does not log repeated rejected IPC handlers.Implementation
collaborationAuthoritycapability to Runtime Host status/diagnostics and propagated it through Desktop target identities.Verification
npm --workspace @maka/runtime-host run buildnpm --workspace @maka/runtime-host run typechecknpm --workspace @maka/desktop run build:testnpx biome checkandnpx biome lintpassed for all changed files.apps/desktop/src/preload/runtime-host-session-catalog.tsand unrelated@maka/uitype drift under the available Node/npm environment.Platform limitations
Hosts built against an older compatibility epoch must complete the normal upgrade/reconnect path before collaborating with this Desktop build. Legacy Hosts on the current epoch that omit the optional capability remain compatible: Desktop probes them once and remembers an expected unavailable collaboration result until a fresh Host identity/status observation says otherwise.
AI use
Tool(s) and scope: OpenAI Codex authored the implementation and regression tests.
Checklist
Does this PR entail a change in behavior?