Skip to content

feat(native): refresh provider status from thread banners - #178

Merged
rynfar merged 2 commits into
nativefrom
nw/162-provider-refresh
Nov 3, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/162-provider-refresh

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Thread provider warnings could only be dismissed. Port the refresh action from pingdotgg/t3code#24861 so users can recheck the thread's provider without leaving the conversation.

  • Add the outline Refresh button, RefreshCw icon, provider-specific tooltip, and disabled Refreshing... state. Watch the destination session's orchestration:read grant and check it again on click.
  • Share a core request builder across banners, settings/onboarding, Usage, and workspace snapshots. The banner sends { instanceId, refreshModels: true, workspaceSnapshotsOnDemand: true }, consistent with native's subscription capabilities. Native keeps usageLimitsCommand omitted because its composer does not intercept /usage-limits; web opts into that additional capability.
  • Keep providerStatuses authoritative for provider models and banners. A unary completion only releases its matching pending ticket. Tickets include connection, thread, instance, and request identity; context changes invalidate pending state, and old completions cannot release a newer refresh. No provider reply is decoded in the banner's UI callback.
  • Preserve the shared decoder's malformed-list rejection for its existing settings/onboarding callers.

Validation: all 1,218 native workspace tests pass. The new context-invalidation and stale-completion tests failed before the fix; stream-driven banner/model coverage verifies provider updates during a refresh. cargo clippy --workspace --all-targets -- -D warnings, theme generation, 42 parity sync tests, conformance generation, and ledger formatting pass. The root changed-file checker expands native paths into repository-wide TypeScript checks, so native gates were used.

Offscreen evidence against a copied smoke home (local paths, no real window):

  • Before: /private/tmp/native-162-evidence/before.png
  • Idle control and tooltip: /private/tmp/native-162-evidence/idle.png
  • Pending/disabled fixture: /private/tmp/native-162-evidence/pending.png
  • Stream-only Refresh click on smoke 14658: /private/tmp/native-162-evidence/review-refreshed.png
  • Probe that discards the unary reply and awaits providerStatuses: /private/tmp/native-162-evidence/review-stream-transcript.txt
  • Failing regressions: /private/tmp/native-162-evidence/review-red.log

TV-BANNERS remains partial. Remaining gaps: compatibility-advisory banners; provider setup action/copy; targeting the composer's selected provider before it is persisted to the thread; and /usage-limits capability opt-in plus its composer handler. Live grant revocation and a network failure were not induced. The pending capture is a render fixture. Some cached transcript glyphs are absent in the idle offscreen capture; the pending and post-refresh captures render the transcript fully. No provider turns were sent.

Closes #162.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar merged commit ff5c5a0 into native Nov 3, 2026
@rynfar rynfar mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant