Repository navigation
fix(server): report unreachable state for remote tasks when peer link is down - #220
Open
nullStack65 wants to merge 1 commit into
Open
nullStack65 wants to merge 1 commit into
nullStack65 wants to merge 1 commit into
Conversation
…k drops When a linked peer stops answering, delegated remote tasks previously kept reporting `"running"` indefinitely across `task_status` and thread projections. Track last successful peer contact (`lastSeenAt`) and peer reachability (`peerStatus`) per remote task via a new `delegated_task.remote.peer-status` orchestration command, report non-terminal `status: "unreachable"` with `lastSeenAt` once peer polls fail past the staleness threshold, recover to the real remote status without duplicating the task when the link returns, and surface the unreachable/last-seen marker in web and mobile thread UIs. Model: gemini-4-neon Task: fix Agent: antigravity Lane: CLO-1092
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This branch has not been deployed
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.
Problem
When the peer link to a linked environment goes down, delegated remote tasks continued to report
"running"indefinitely in bothtask_statusand thread UI projections, leaving parents and founders unable to tell a live remote task from a lost peer connection (CLO-1092 / A-P2-06).Fix
packages/contracts): Added optionallastSeenAtandpeerStatus("reachable" | "unreachable") toOrchestrationV2RemoteTaskChild, added the internaldelegated_task.remote.peer-statuscommand, added"unreachable"as a non-terminal status toOrchestratorMcpDelegatedTaskStatus, and exposed optionallastSeenAtonOrchestratorMcpDelegateTaskResult.apps/server):lastSeenAt) per remote task inRemoteDelegation(initialized at launch/follow-up and refreshed on contact) and addedPeerUnreachableThreshold(default 2 minutes).peerStatus: "unreachable"(updating both subagent and timeline turn item projections) once peer polls ortask_statusprobes fail past the threshold, and returnedstatus: "unreachable"withlastSeenAtfromtask_status.peerStatus: "reachable"and real remote status (running/ terminal) automatically when the peer recovers, with no duplicate task launched.packages/client-runtime,apps/web,apps/mobile): AddedisRemoteTaskUnreachableand surfaced distinct warning"Unreachable"badges, lineage summary counts, and last-seen tooltips in web (ThreadRelationshipsControl,ThreadRelationshipIcon,V2LifecycleRow,SubagentTooltipContent) and mobile (threadAgentsPresentation,SubagentStatusDot,thread-subagent-group).Verification
vp run typecheck: 41/41 packages passedvp lint(19 changed files): 0 warnings, 0 errorsapps/server/src/peer/RemoteDelegation.test.ts(-t "unreachable"): 2/2 passed (plus 55/55 existing cases passed)apps/server/src/orchestration-v2/RemoteDelegatedTask.test.ts: 5/5 passedapps/server/src/mcp/OrchestratorMcpService.test.ts(-t "remote"): 7/7 passedapps/web/src/components/chat/ThreadRelationshipsControl.browser.test.tsx: 14/14 passed (Chromium)apps/mobile/src/features/threads/threadAgentsPresentation.test.ts: 28/28 passedDeploy: fleet
Model: gemini-4-neon
Task: fix
Agent: antigravity
Lane: CLO-1092