Skip to content

parity: feat(web): add refresh to provider status banners (pingdotgg/t3code#24861) #162

Closed

Description

@rynfar

Upstream pingdotgg/t3code#24861 (e27e12d9b4) changed code the native client depends on.

Watched files:

  • apps/web/src/components/ChatView.tsx
  • apps/web/src/components/chat/ChatBannerLane.tsx
  • apps/web/src/components/chat/ProviderStatusBanner.tsx
  • packages/client-runtime/src/state/commandPermissions.test.ts
  • packages/contracts/src/clientRpcPermissions.ts

Activity

  1. added
    parity
    parity:wire
    parity:regression-risk
    parity:new-surface
    on Nov 3, 2026
  2. added this to the M2 Parity core milestone on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Triaged in intake #134: add the refresh control to native provider status banners (crates/app/src/thread_view/status.rs): server.refreshProviders with { instanceId, refreshModels: true }, gated by orchestration-read permission (now guarded in CLIENT_GUARDED_RPC_SCOPES).

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

    @rynfar
    OwnerAuthor

    Implemented the provider-status refresh slice in #178. TV-BANNERS remains partial: compatibility-advisory banners and the provider setup action/copy remain unported. The ledger's Native paths and Issue column now point to this implementation.

    Core tests cover the exact refresh wire payload, destination read grant, provider/model/banner updates, and malformed replies. The offscreen smoke click on 14658 clears the warning. See the PR for local captures, transcript, verification, and unverified cases.

  6. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Review update for #178: provider status now follows the providerStatuses stream; unary replies only finish the matching pending ticket. Pending state is invalidated by connection, thread, or provider changes, and stale completions are ignored. Both new core regressions failed before the fix. All 1,218 Rust tests and the native gates pass. The smoke probe discarded the unary reply and observed a newer provider push clear the warning; the offscreen click also clears it.

    TV-BANNERS remains partial. Remaining gaps are compatibility-advisory banners, provider setup action/copy, targeting the composer's selected provider before persistence, and /usage-limits opt-in plus its composer handler. Native deliberately keeps that capability omitted in both subscription and refresh payloads; its report builder exists, but the composer does not intercept the command. The PR's former exact-web-payload claim has been corrected.

  7. removed
    parity:wire
    status:review
    on Nov 3, 2026
  8. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Refresh control merged in #178 (squash ff5c5a0d17): provider warning/error banners offer Refresh / Refreshing..., gated by orchestration:read, sending server.refreshProviders with {instanceId, refreshModels: true, workspaceSnapshotsOnDemand: true}. As on web, the provider stream updates the banner (the reply is not applied), and pending state is scoped to its connection, thread and provider. parity:wire removed.

    Kept open because TV-BANNERS (still partial) points here for its remaining gaps: compatibility advisories, provider setup action/copy, banner target following the composer's selected provider (web ChatView.tsx), and usageLimitsCommand. Native has no client-side /usage-limits handler yet, so it does not opt in on the subscription or refresh. Unverified: live grant revocation and network-failure UI.

  9. added
    status:in-progress
    on Nov 4, 2026
  10. 8 remaining items

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

    @rynfar
    OwnerAuthor

    PR #259 is merged as f708fe497c59f1180b401335c3c1b779d2d2c2ca. Composer-selected provider banners and Refresh targets now follow the matching main/side transcript composer, including draft restore and target/config changes. Independent review approved; one exact-head root gate passed 1,394 workspace tests plus the focused entity regression. The merged private snapshot build and four bounded offscreen cases passed.

    Keeping #162 OPEN/TV-BANNERS partial for provider setup action/copy and the /usage-limits handler plus capability opt-in. No actual Refresh RPC/provider turn/live grants/network/performance claim. Known #202 limits visual proof; ledger formatting remains inherited RED and check:changed is NOT green. Local integration evidence: /private/tmp/native-factory-2f5f764a/evidence-259-merged.

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

    @rynfar
    OwnerAuthor

    Batch45 is taking one bounded setup action/copy slice after inspecting current web and native sources. The banner will navigate to the exact corresponding provider instance in the active environment/connection, including an already-open Settings modal. Missing/stale targets must not fall back to the first provider, and focused old-provider input must not commit to a new target.

    Scope: banner copy/model, matching-target local navigation, Settings target consumption/lifetime, and indispensable provider-input ownership guards. No automatic environment switch, sign-in/install/Refresh action, new AppState cache, or /usage-limits handler/capability opt-in. TV-BANNERS remains partial and #162 stays open. Compiled failing-first boundary proof and standard native validation are required; verification uses safe fixtures/pre-RPC paths only.

    Fresh worktree nw/162-setup-navigation starts at e45aeb5. Root setup and one private APFS clone must finish before worker/Cargo dispatch. Previous compatibility/selected-provider allocations remain archived and their targets will not be recreated.

  15. rynfar commented on Nov 5, 2026

    @rynfar
    OwnerAuthor

    Review PR: #261

    Provider setup navigation/copy slice is ready for review. Setup availability follows the web capability flags and action/copy; matching main/side composer identities open the exact provider in local Settings. Deferred and already-open navigation reject stale/missing targets, and focused fields preserve their original owner across selection/queued blur.

    TV-BANNERS remains partial and #162 stays OPEN. Remaining excluded work: /usage-limits capability opt-in and handler. The other 130 actual ledger rows are unchanged.

    Strict native workspace Clippy/tests, focused snapshot GPUI tests, theme, 42 parity tests, conformance, and both private builds pass. Actual Rustfmt and exact-base check:changed retain inherited formatting failures. An extra full snapshot-feature run had two untouched theme-import file errors; it is not claimed green.

    Evidence: /Volumes/DevSSD/t3-native-evidence-162-setup-b45/. Before/after generic Settings PNGs are byte-identical and readable. The earlier missing-content returned-image observation is preserved with its correction; neither PNG was recaptured or rewritten. Generic Settings evidence does not reproduce the setup-navigation bug or prove full-frame parity/performance/live grants/relay/multi-device behavior. Known #202 remains separate. No provider/auth/install/refresh/visit writes or paid turns were used for proof.

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

    @rynfar
    OwnerAuthor

    Merged #261 as b955bffd805fc82d3dc48f5e5985e03c73d25ccb.

    Provider banners now offer Open provider setup when supported. The corresponding main or side composer supplies the exact environment/connection/account target; stale or removed targets fail closed. Focused provider inputs retain their owner, and the environment-wide health interval remains editable without a selected account.

    TV-BANNERS and #162 remain partial/open: /usage-limits capability opt-in and its handler remain.

    Independent review approved the exact head/base. The root gate passed 1,402 tests, strict Clippy, theme, parity and conformance; the merged private snapshot built and its generic Providers Settings capture was inspected by byte identity to the readable frame. Compiled production-boundary tests provide bug proof; the generic image is not navigation reproduction. Rustfmt and scoped check:changed remain red, and no live saves, provider turns, full-frame/performance/relay/multi-device proof is claimed.

  18. removed
    status:review
    on Nov 5, 2026
  19. added
    status:review
    on Nov 14, 2026
  20. rynfar commented on Nov 14, 2026

    @rynfar
    OwnerAuthor

    Closed by PR #368 (merged into native at d891b965a99baa491724945557052321896a86b6).

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

    parityparity:new-surfaceparity:regression-riskstatus:review

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions