Repository navigation
feat(native): refresh provider status from thread banners - #178
Merged
Merged
Conversation
Open
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.
Thread provider warnings could only be dismissed. Port the refresh action from
pingdotgg/t3code#24861so users can recheck the thread's provider without leaving the conversation.Refreshing...state. Watch the destination session'sorchestration:readgrant and check it again on click.{ instanceId, refreshModels: true, workspaceSnapshotsOnDemand: true }, consistent with native's subscription capabilities. Native keepsusageLimitsCommandomitted because its composer does not intercept/usage-limits; web opts into that additional capability.providerStatusesauthoritative 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.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):
/private/tmp/native-162-evidence/before.png/private/tmp/native-162-evidence/idle.png/private/tmp/native-162-evidence/pending.png/private/tmp/native-162-evidence/review-refreshed.pngproviderStatuses:/private/tmp/native-162-evidence/review-stream-transcript.txt/private/tmp/native-162-evidence/review-red.logTV-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-limitscapability 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