feat: provider update advisories with one-click updates#75
Merged
Conversation
Ports pingdotgg#2312 by @justsomelegs. Wires version lifecycle + update state for managed providers (Claude, Codex, Cursor, OpenCode): - Each provider snapshot now carries `versionAdvisory` (latest npm version vs installed; computed via TTL-cached registry lookup) plus transient `updateState` (`queued | running | succeeded | failed | unchanged`). - Server-side `providerUpdater` runs provider-specific update commands with concurrency control and broadcasts state transitions through the ProviderRegistry. - New `server.updateProvider` WS RPC, exposed via LocalApi / WsRpcClient. - Toast (`ProviderUpdateLaunchNotification`) prompts when an update is available and lets the user trigger it from the toast. - Sidebar pill (`SidebarProviderUpdatePill`) shows in-progress / final status with auto-dismiss for success and manual dismiss for failure. - Provider settings panel: per-provider advisory detail block with copy command, Update button + spinner, and a deep-link from update entry points (`/settings/general#providers`) that smooth-scrolls to Providers. MarCode adjustments vs upstream: - @t3tools/contracts → @marcode/contracts in providerUpdater.ts, providerVersionLifecycle.ts, providerUpdater.test.ts, and the new ProviderUpdateLaunchNotification* files. - ws.ts kept MarCode's existing ProviderService import (squash-merge had treated it as either-or vs the new makeProviderUpdater); both are needed. - SettingsPanels.tsx: kept MarCode's PROVIDER_DISPLAY_NAMES-based display name (upstream switched to liveProvider.displayName || formatProviderKindLabel; out of scope for this PR), kept MarCode's TurnNotificationSettingsSection helpers (deleted by squash-merge), and made initialScrollTarget optional via `= {}` so existing `<GeneralSettingsPanel />` calls still typecheck. - wsNativeApi.ts: added the new `server.updateProvider` to the native RPC bridge (MarCode-only file).
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.
Summary
Ports t3code#2312 by @justsomelegs.
Wires version lifecycle + update state for managed providers (Claude, Codex, Cursor, OpenCode):
What changed (server)
What changed (web)
What changed (contracts)
MarCode adjustments vs upstream
Test plan
Upstream
Original PR: pingdotgg#2312