Skip to content

native: sidebar update pills (SB-UPDATES) #100

Closed

Description

@rynfar

Ledger row SB-UPDATES (update pills: server, provider). First slice.

Web source: apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx, SidebarUpdatePill.tsx, UpdateEverythingDialog.tsx, updateEverything.logic.ts, useUpdateEverything.ts, SidebarUpdateCapsule.tsx.

Server-backed pills (provider updates, server/environment updates, Update everything) port; the Electron desktop self-update path does not apply to the native bundle and is recorded as a gap.

Active SB-UPDATES acceptance — batch50, native b955bff

Sidebar sustained milestone baseline 5/16 accepted. Compared current SidebarProviderUpdatePill.tsx, SidebarUpdatePill.tsx, UpdateEverythingDialog.tsx, useUpdateEverything.ts/updateEverything.logic.ts/updateEverythingRun.tsx with native app/updates/{mod,dialog}.rs, core/updates and client/updates.rs. Provider result/recency/dismissal, single-active-environment server/provider plan, managed/grant denial, confirmation/running warnings, keyboard focus and provider-before-server execution with lifecycle handoff already exist. They are not missing just because the row is partial.

  • Collect update targets/skips/restarting/running counts from every connected environment, preserving exact destination identity and CURRENT grants. Native app plan currently passes one Machine and client::updates::run one ClientHandle; fleet dispatch must not send another environment's target through it. Dependency: explicitly scoped multi-environment client/session support.
  • Match per-machine progress and retained final result during restart/reconnect/dialog close, interruption/failure reporting and retry; native currently exposes one Updating… busy message then one toast. Preserve lifecycle ready-outcome proof, provider-before-server sequencing and handoff token generation checks.
  • Match supported release-channel switch/track-only-host behavior and saved results from current web updateEverything paths, respecting managed policy and server capabilities; no self-update execution during tests.
  • Accept provider pill initial-cutoff/result precedence/status-key redisplay/dismiss timeout, Settings navigation and keyboard focus, warning/skip details and per-environment disappearance/reconnect. Static idle indicators/no perpetual repaint; before/after local offscreen proof only.
  • Electron local-bundle download/install/release-note bridge is explicitly inapplicable to this GPUI bundle, as the original issue records. Do not create native distribution/self-update machinery merely to claim parity. Server-hosted desktop handoff IS applicable and stays covered above.

Whole row remains partial until the four applicable requirements and the explicit Electron-only exclusion are reviewed/accepted. No live update/provider/auth/real-window verification or broader permissions authorized. Nine-row checklist #242; grouping #185.

Activity

  1. added this to the M2 Parity core milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    First SB-UPDATES slice is in #102 at fe5b7bf2229afcd1ab425bbf54d34327d26263e9; ledger remains partial.

    Shipped provider available/updating/failed/unchanged/success notices, dismissal and Providers navigation; connected-environment server/provider update planning and confirmation with restart/running-thread warnings; managed update denial; server RPC handoff/lifecycle validation. The sidebar stays cached and indicators do not animate continuously.

    Remaining gaps: fleet execution (native connects to one environment at a time); durable run capsule/popover and per-machine stage/elapsed/slow state; retry/dismiss results; channel switching; progress streams and legacy lost-unary-ack recovery. Electron self-update/download toast/release-note feed are inapplicable to the native bundle and were not implemented. General managed-policy UI belongs to AP-POLICY; existing policy state is used to gate updates here.

    All required native checks passed. Smoke 14658 was probed read-only (config, lifecycle welcome/ready, zero mutating requests). Real update/restart actions were not executed because smoke has no self-update capability and provider updates replace installed binaries. Pure tests and offscreen fixtures verify those states instead. Light/dark PNG paths and the transcript are listed in #102; local evidence directory: /tmp/native100-evidence.

  4. added
    status:review
    and removed
    status:in-progress
    status:review
    on Nov 3, 2026
  5. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Merged in #102 (dcb9a4dbaa). SB-UPDATES stays partial; gaps are in the comment above (fleet-wide execution, durable run capsule/progress/retry UI, channel switching, legacy handoff recovery; Electron self-update doesn't apply). Leaving this open for them.

  6. added
    status:in-progress
    on Nov 6, 2026
  7. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    Current bounded #100 progress (SB-UPDATES remains partial; sidebar 9/16):

    • Captured fleet collection/destination guards and primary-provider notice/Settings routing have meaningful combined-lane proof. No active-client fallback or alternative primary election.
    • Retained result and Retry behavior passed the actual dialog case. The later successful-outcome segment now also passes: 2 provider requests, 3 prepare requests, 2 real fixture lifecycle streams/full matching committed-ready outcomes, no desktop commit. Success A is removed; known-rejected B alone is retried; B success is removed while provider failure remains. Final actual Dismiss/focus and the original stale/disconnect tail pass.
    • An earlier final-Dismiss failure was the small test host missing production SidebarPane's Notice observer. Mirroring that observer in the test host fixed the whole unchanged scenario; no production notification patch was made.
    • Safe server retry remains exact: NotSent or outer ServerSelfUpdateError/direct cause.name ServiceLauncherRejectedError only. Timeout/disconnect/unknown/accepted attempts do not become fresh retries.
    • U3 tests reached the intended private handoff failure: an explicit same-current desktop track save incorrectly waited for lifecycle readiness. The minimal private fix is source-reviewed, but whole-case runtime GREEN is still queued. It is not a guarded planner/UI entry or a landable standalone scaffold. The next approved test-only seam adds the exact channel-switch capability and an explicit borrowed checked guard input; an actual guarded same-current failure must precede its fix.

    Remaining U3/whole-row requirements include guarded authority, migration-aware release planning/lookup and a real entry/confirmation/results flow; retained U2 progress/all-success retirement and whole applicable review remain explicit. No whole checkbox is marked from these slices. All work is synthetic/offscreen under the approved no-live-write/auth/AppKit/AX/clipboard/performance boundaries. No constants changed.

  8. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    The ordered U3 proofs now reach the intended current-version guard failure. The unchanged private track-save algorithm passed its whole case first. The capability decoder then passed its existing exact case, including desktopAppChannelSwitch: true and absent-key handling. With only the reviewed optional checked input shape and test tuple added, the old production guard fails immediately: one actual test, exit 101 at handoff_tests.rs:271, Err("The server update changed; no write was sent.") != Ok(()).

    This is a proper regression assertion before any allow-body change, not a compile failure, timeout or empty selection. The subsequent no-ready and old guard-matrix tail have not executed. A minimal external guard design is being prepared for independent review. It must retain exact current owner/grants/policy/capability checks and ordinary/token behavior; planner, reachable UI, migration and whole-row credit remain separate. Sidebar is still 9/16. No constants changed.

  9. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    The bounded U3 guarded same-version/same-track save slice now has actual GREEN proof, independently reviewed (a1b7007022f1e5656a81bb4b16aafd233e4405b370d5d5771aea65a95c73d4d2). The exact compiler-selected client runs the whole production guard case, own-handoff control and private algorithm case: one pass each. The existing capability decoder case also passes.

    The guard case includes current capture/grants/capability/policy denials, checked-channel binding before send, version drift during the response remaining non-retryable, and a prepared-token host target different from the request followed through own reconnect/current-config change and same-token retry to matching readiness. No timeout or constants changed.

    This is still a private intermediate slice. The production ordinary entry passes None; no planner, registry lookup, reachable About action, migration-safe crossing or whole SB-UPDATES acceptance is claimed. All cross-track moves remain deferred in this save-only seam. Next work is a separately reviewed explicit planner input and test-first same-current track-only intent; it must not relabel ordinary same-current skip as a bug or dispatch unsupported moves.

  10. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The explicit same-version/same-track desktop setting-save planner now passes its actual focused case after the test-only lifetime repair. The case includes target metadata, zero providers/restarts/moving rows, guard denials, nightly policy and migration-option preservation, and the restart-helper control. Existing private guard, own-token reconnect and handoff algorithm cases also pass on exact compiler-selected test binaries.

    This is still an internal staging slice: registry lookup, full migration-safe channel movement, confirmation/retained hidden outcomes and a reachable About action are not complete. No whole SB-UPDATES credit; sidebar remains9/16. Independent final current-artifact review is pending before the next source change. No constants or credentials changed.

  11. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The new source-owned release lookup now passes its whole actor regression. It uses the selected environment's registry and read authority, preserves absent migration metadata as unknown, and rejects a held reply after actual source configuration drift. The fix reuses the same receipt check after the reply. The three existing update handoff cases also pass.

    This is internal, unmerged staging. Current primary selection still needs validation when the app receives and confirms the result. General channel movement, migration-safe confirmation, retained hidden outcomes, dispatch and a reachable action remain incomplete. No whole UPDATES credit; sidebar remains 9/16. Independent current-artifact review is pending. No constants or credentials changed.

  12. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Internal update-planner staging has an independently verified tests-first failure for a newer same-track service release: the existing planner returns zero server targets where one is expected. The existing planner case was extended; compile succeeded and selected exactly one failing test. No production change or UI has been released. A bounded source proposal is in progress. This does not complete fleet updates or expose a partial track-switch action.

  13. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The held public client-run test has now compiled with the proper owning stage t3-client --lib --features test-support compiler artifact. The emitted binary lists 105 tests and exactly one matching selector.

    The first actual failed once (exit 101, one failed, 104 filtered) at handoff_tests.rs:355:84: save-only run ended before its request: The server update changed; no write was sent. This is the source-predicted first None-migration public-run failure, but independent failure classification and current-executable custody are still pending. All six compiler/list/actual records/logs are preserved read-only.

    No production proposal, fix or rerun is authorized before that classification. The Some(7), migration-payload, tokenless-success and joined teardown tails remain masked. This scenario uses a supplied release directly; it performs no release GET. Dirty staged prerequisites are disclosed; no app code was copied into MAIN.

    #340/PR341 is separately accepted with fresh merged FINAL 4b0f34b0…. #342 has only an external test-source proposal allocation. Whole sidebar stays 9/16; no whole UPDATES credit. Constants changed: none.

  14. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The U367 minimal public save-only fix now passes the unchanged held test in its isolated staged client lane. The proper owning t3-client --lib --features test-support compiler succeeded, the emitted binary listed 105 tests with one exact selector, and the actual run passed once (exit 0, one passed, 104 filtered) in a new empty home.

    Sequential completion reaches both None and Some(7) migration iterations, exact update payloads, tokenless success, no Resuming/lifecycle/commit on the save-only path, attempt join/event-channel close, and the preserved later guard assertions. Independent pass/current-executable audit is pending; these are not yet clean-head integration or whole UPDATES acceptance. All six records/logs are frozen. The original first finite equal-version failure remains preserved.

    Only staged client updates.rs changed, after independent exact-source review. The full held test is unchanged. No app code was copied into MAIN; no release GET or actor/AppState/server integration is claimed. Sidebar remains 9/16. Constants changed: none.

  15. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The exact eight-unit standalone prerequisite package has independent source review (b764f3f1, manifest f4542a4a). No additional blocking correctness issue was found for the allocated same-track client path. This is source-only: it does not authorize application, integration or execution.

    The selected staged client test remains a bounded pass (6e8b95c6): None/Some migration payloads, tokenless save success and its existing guard/join tail passed. It is not a clean/current MAIN integration proof. MAIN still calls the old updates API in updates/dialog.rs:162, uses canonical IDs where the new destination API needs saved owners, and lacks complete execution/completion integration. The read-only app audit also confirmed that full window/reconnect verification crosses the retained strict NOINPUT boundary.

    No compatibility shim, broad staged-app copy or window workaround will be applied. Clean tests-first prerequisites and a separately reviewed minimal app integration are still required. SB-UPDATES remains partial; sidebar stays 9/16. Production constants changed: none.

  16. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Bounded tests-first progress: two multi-environment defects

    Internal work label U367 belongs to this issue (it is not GitHub issue367).

    • The actor-backed provider runner test reproduced wrong-owner dispatch: a manual target for saved a reaches unrelated active, even with colliding canonical/provider IDs. The real unary reply is consumed and the owned runner joins before the final assertion fails. Independent phase115 accepted the intended RED. No real provider was contacted.
    • The ordinary app planner test also fails at its intended assertion: eligible watched saved aliases a and b produce no provider targets ([] versus [a,b]). This second result is awaiting independent classification. Later saved-settings continuation is masked by that failure; no full-scenario success is claimed.

    Both tests use proper freshly compiled owning targets, unique exact selectors and isolated new homes. Production code is unchanged. A bounded design review is now working on coherent app planner/confirmation and per-owner runner changes; the app call site must match the runner API. A planner-only fix cannot ship while the wrong-owner runner remains.

    All four applicable requirements above remain open. No per-machine progress/restart result, track-only/channel switch, pill focus/rendering or whole-row credit follows from these two tests. Strict NOINPUT remains; no live updates/provider/auth or real-window permission is inferred. Sidebar stays9/16; constants/dependencies unchanged.

    Separately, PR345/346 are unmerged: required checker failures are unwaived, and PR346's cached app-build source binding is unproven. No tooling repair or forced regeneration is authorized.

  17. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Multi-environment update fix: independent design review

    Both finite regressions are independently accepted: the ordinary planner omits eligible saved aliases, and the actor-backed runner sends a saved-owner target through the active client. Production remains unchanged.

    Independent design review found issues to resolve before implementation:

    • Opening configuration facts must be carried explicitly into the captured runtime request, not reconstructed after waiting for an actor receipt.
    • Routing must not add an installed/status-ready restriction that the existing ordinary candidate policy does not have.
    • Cancelling local observation of an accepted provider update does not prove remote completion. The revised design will suppress server restarts when provider completion is unknown.
    • After an intended server reconnect, terminal acceptance still needs current owner, permission, capability and policy checks without rejecting the operation solely because its own connection generation advanced.

    A bounded revised design is in progress. Independent source research confirmed the existing real socket fixtures can test the ordering and reconnect guards without adding a production helper. No test or network was run in that research.

    Whole SB-UPDATES stays partial. Per-machine progress/results/retry, channel/track-only behavior, provider-pill behavior and integrated UI verification remain separate requirements. Strict NOINPUT and the unwaived checker/build-provenance blockers remain unchanged. No constants or dependencies changed.

  18. rynfar commented on Nov 13, 2026

    @rynfar
    OwnerAuthor

    First slice (U367 captured fleet update targets, replacement/removal/permission guards, SessionStateFetch refresh-while-running fix, and relative-representative materiality) merged via #348 (e5e8c20068ddad9e05162228a72209a7e397ea1e). Keeping #100 open for Wave 2A whole-row SB-UPDATES completion and offscreen proof.

  19. removed
    status:in-progress
    on Nov 13, 2026
  20. rynfar commented on Nov 13, 2026

    @rynfar
    OwnerAuthor

    Whole-row SB-UPDATES parity completed and squash-merged in PR #350 (9879019700eef1e9b5c3a52f9f754019a3414284), with post-merge owning-source verification and offscreen Metal light/dark proof green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions