You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: provider update advisories with one-click updates
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).
0 commit comments