Repository navigation
fix(linux): recover disconnected sessions and preserve update delivery - #145355
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 11, 2026, 6:38 PM ET / 22:38 UTC. ClawSweeper reviewWhat this changesThe Linux companion preserves connection and chat ownership during recovery, bounds pending widget updates, repairs sleep cleanup, and introduces an independent updater feed with a legacy mirror. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 7 items remain Keep open: current main still needs the recovery fixes, and this maintainer-owned PR is not eligible for cleanup closure. One introduced navigation defect prevents a clean correctness verdict. Priority: P2 Review scores
Verification
How this fits togetherThe Linux companion connects local or remote Gateways to its dashboard and Quick Chat windows. Its updater consumes signed release metadata published by the Linux and core release workflows. flowchart TD
A[Connection settings] --> B[Gateway connection owner]
B --> C[Dashboard and Quick Chat]
D[Sleep and disconnect events] --> B
E[Linux release bundles] --> F[Canonical update feed]
F --> G[Legacy feed mirror]
F --> H[Installed Linux updater]
G --> H
Decision needed
Why: The branch changes future clients and core publication behavior, while its body explicitly withholds activation and migration authority. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +2482, Docs +219, Config +227, Other +5547. Total +8475 across 36 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep settings reversible without changing the selected Gateway, and stage the feed cutover under release-owner-approved activation and legacy-upgrade qualification. Do we have a high-confidence way to reproduce the issue? Yes, from source: on a local installation, open Connection Settings and then Open Dashboard; the new remote-navigation state suppresses local reconnection while the editor hides Back. This path was not executed during the read-only review. Is this the best way to solve the issue? Partly: generation fencing, bounded recovery, and latest-pending coalescing address the owning boundaries, but settings must preserve a return path and the feed cutover needs separate release qualification. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6b7ec4b7d3e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Replacement Stack
Superseded by these eight draft PRs, in dependency order. Each child targets
the preceding branch; the complete signed stack preserves this PR's original
tree, including file modes. This is an organizational split, not a merge or
release. The original branch and commit remain available.
The known Connection Settings local-navigation P2 remains explicitly unresolved
in layer 3. Public feed activation and signed installed-client migration remain
unperformed in layer 8. Existing platform/proof limitations remain unchanged;
the split does not imply new native validation or green CI.
Original description preserved below.
Related: #127486
Related: #127466
Additional instructions
This PR uses a branch in
openclaw/openclaw, which maintainers with repositorypush access can update. This PR is intentionally a draft.
What Problem This Solves
Fixes issues where Linux companion users can get stuck after a failed remote
connection, lose their selected route when opening the dashboard, or leave
Quick Chat waiting after the Gateway has already completed a retried turn.
It also addresses stale widget access, sleep-listener failure recovery, and
pending UI state accumulating behind a slow update.
Linux update delivery currently depends on the latest core release carrying
Linux metadata, and ordinary SemVer ordering can skip calendar correction
releases.
Why This Change Was Made
Keep connection selection and generation ownership intact through queued
operations, reconnects, dashboard presentation, and Quick Chat retries; recover
only the exact completed turn and prevent retained widgets from using another
Gateway's access. Retire terminal sleep guards without consuming a later wake,
coalesce pending UI state, and reuse the existing calendar-version ordering
contract with the vendor fallback preserved.
Separate Linux update metadata into
linux-stable, retain an ongoingexact-byte legacy mirror, and detach mirror delivery from core finalization.
Publication checks bind the selected source, release and asset identities;
failures remain visible and require reconciliation. Support and first-run docs
now distinguish implemented behavior from unqualified platform capabilities.
User Impact
local Gateway. Opening a healthy dashboard preserves an in-flight Quick Chat
retry's identity.
history permits; unavailable or incomplete history remains an explicit error.
updates retain only the active state and the latest pending state.
independence and legacy compatibility are implemented, but public channel
activation and installed-client migration have not been performed.
No version, dependency, protocol or supported-platform expansion is included.
No release publication, signing, merge or public activation is authorized by
this draft. Existing clients still require separately authorized feed repair
and a signed migration; changing future clients' endpoint does not migrate them.
Evidence
settings/retry, owned SSH failures, and the dashboard/Quick Chat interaction.
The isolated real-Gateway lost-ACK flow recovered the original completed turn
without creating a second provider turn. Captures were inspected.
sleep controls and the calendar comparator regression passed, including
the intended original vendor-ordering failure and four candidate Rust cases.
Shared version vectors passed 70 focused JavaScript tests. Pending-state
recovery also has intended original failures and focused candidate coverage.
fixtures and all 23 finalizer cases. These fixtures do not constitute real
GitHub publication or cryptographic signature verification.
passed on an isolated physical dependency tree. Targeted lint/format checks and the complete workflow-check wrapper
passed, including the approved Linux-only actionlint queue exception.
partitions and returned
scoped-cleanat P0, with final source verificationpassing. This is a P0-scoped result, not a new lower-severity review.
passed ABI checks plus 12 Ubuntu 22.04/Debian 12 loader probes. This is not a
final-candidate package build, install/upgrade, or complete packaged-GUI claim.
Native repair proof used isolated X11/Xvfb with the recorded functional graphics
profile and explicit focus. It does not qualify default graphics, native
Wayland, ARM64, microphone/media output, or macOS/Windows parity. Exact
CachyOS/Fedora blank-window and affected attachment/auth retests remain
incomplete because matching reporter environment/auth inputs are missing;
isolated HTTP evidence does not prove real Tailscale identity or attachment
painting. No claim is made that existing shipped AppImages contain this patch.