Repository navigation
fix(plugins): show WebBridge updates in partial state - #5090
Conversation
🦋 Changeset detectedLatest commit: c137a5e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f92ee8d83b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (capability.install.running) return true; | ||
| return row.installedPlugin === undefined || (capability.state === 'ready' && row.updateAvailable); | ||
| return row.installedPlugin === undefined || | ||
| (row.updateAvailable && (capability.id === 'kimi-webbridge' || capability.state === 'ready')); |
There was a problem hiding this comment.
Preserve disabled WebBridge state during updates
When the installed WebBridge wiring plugin is disabled, detection marks its skill step missing, so the capability becomes partial; this new condition now exposes an Update button for that row. Clicking it invokes capability installation, whose WebBridge implementation explicitly calls setPluginEnabled(..., true) (packages/agent-core-v2/src/app/capability/entries/kimiWebbridge.ts:154-162,345-346), silently reversing the user's disable choice. Preserve the prior enabled state during an update, or keep this affordance hidden for disabled wiring.
AGENTS.md reference: AGENTS.md:L117-L117
Useful? React with 👍 / 👎.
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c137a5e324
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (capability.install.running) return true; | ||
| return row.installedPlugin === undefined || (capability.state === 'ready' && row.updateAvailable); | ||
| return row.installedPlugin === undefined || | ||
| (row.updateAvailable && (capability.id === 'kimi-webbridge' || capability.state === 'ready')); |
There was a problem hiding this comment.
Update the daemon binary from partial rows
When partial means the daemon is stopped while its existing binary and wiring are present, this newly exposed update button routes through setupCapability, but kimiWebbridge.install sets installNewBinary to false because readyBefore is false and daemon-binary is already ok (packages/agent-core-v2/src/app/capability/entries/kimiWebbridge.ts:257-279). The flow therefore installs the newer wiring and restarts the old daemon, then clears the catalog update even though the binary was not updated, potentially leaving incompatible component versions. Pass explicit update intent so this path refreshes the binary as ready-state updates do.
AGENTS.md reference: AGENTS.md:L190-L192
Useful? React with 👍 / 👎.
Requirement or Bug
When the browser extension (WebBridge) is in the
partialstate and a newer catalog build is available, the plugins page shows the row as having an update but offers no update button — the user cannot act on the update hint.Bug Reproduction Steps
partialstate (wiring incomplete) while the catalog carries a newer build than the installed one.Root Cause
pluginRowShowsInstallonly offered the update button for capability rows whose state wasready:WebBridge's install/update flow is idempotent and safe to run from the
partialstate, so theready-only gate wrongly hid the button. This is a fundamental fix (widening the gate for the one capability that supports it), not a workaround.Code Changes
packages/app-client/src/composables/usePlugins.ts: the update button is now offered whenrow.updateAvailableand the capability is eitherreadyor WebBridge (capability.id === 'kimi-webbridge'), including itspartialstate. All other capabilities keep theready-only gate.packages/app-client/test/usePlugins.test.ts: two tests — a partial WebBridge row with a newer catalog build offers the update; other partial capabilities still do not.kimi-code-app.Behavior Changes and Affected Users
partialWebBridge row with an update availablereadypartialrows of other capabilitiesAffected users: desktop users with a partially-set-up WebBridge who are prompted that an update exists. Affected modules:
app-clientplugins composable, covered bypackages/app-client/test/usePlugins.test.ts(91 tests passing).Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.