Skip to content

feat(tui): add Kimi WebBridge install entry to /plugins panel#1494

Merged
wbxl2000 merged 5 commits into
mainfrom
tui/web-bridge-plugin-entry
Jul 9, 2026
Merged

feat(tui): add Kimi WebBridge install entry to /plugins panel#1494
wbxl2000 merged 5 commits into
mainfrom
tui/web-bridge-plugin-entry

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue — this was requested directly. The motivation is described in the next section.

Problem

Kimi WebBridge — the browser extension plus local daemon that lets Kimi Code drive the user's real browser — has no entry point inside the TUI. Users who do not already know it exists have no way to discover or install it from the CLI. The /plugins panel is the natural place to surface it.

What changed

  • Added a hardcoded Kimi WebBridge entry that always leads the Official tab of the /plugins panel, even when the marketplace catalog is still loading or fails to load.
  • WebBridge is a browser extension plus local daemon, not an installable plugin package, so selecting it opens the WebBridge install page in the user's default browser instead of running the normal plugin install-from-source flow.
  • Added component tests for the new entry: it stays visible while the catalog loads and when the catalog errors, Enter opens the install URL rather than installing, regular catalog entries still install, and a catalog entry with the same id is deduped so the row is not shown twice.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Surface a hardcoded Kimi WebBridge entry at the top of the Official tab in the /plugins panel. Selecting it opens the WebBridge install page in the user's browser instead of going through the plugin install flow, since WebBridge is a browser extension plus local daemon rather than an installable plugin package.
@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c862c19

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 8, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@c862c19
npx https://pkg.pr.new/@moonshot-ai/kimi-code@c862c19

commit: c862c19

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0182725b0

ℹ️ 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".

Comment on lines +547 to +548
if (isWebBridgeEntry(entry)) {
this.opts.onSelect({ kind: 'open-url', url: WEB_BRIDGE_URL, label: entry.displayName });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict WebBridge shortcut to the pinned row

When a custom or curated marketplace contains an entry whose id is kimi-webbridge, it lands on the Third-party tab because thirdPartyEntries includes every non-official entry, but this id-only check routes Enter to open-url instead of the normal install selection. That makes such marketplace entries impossible to install or update from the panel; the special case should apply only to the hardcoded pinned WEB_BRIDGE_ENTRY rather than every catalog entry with the same id.

Useful? React with 👍 / 👎.

Match the hardcoded pinned WebBridge entry by object reference instead of by id. A curated or custom marketplace entry on the Third-party tab can legitimately reuse the kimi-webbridge id; routing by id hijacked Enter on those rows and opened the WebBridge page instead of installing. The Official tab still dedupes a same-id official catalog entry so the pinned row is not duplicated.
@wbxl2000

wbxl2000 commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: c14347cb01

ℹ️ 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".

wbxl2000 added 3 commits July 9, 2026 18:55
The previous "webpage" status did not make it clear that selecting this row opens an external page rather than installing in-app. "open in browser" states the action directly and contrasts with the install label on regular plugin rows.
…tests

Two message-flow tests pressed Enter on the Official tab assuming index 0 was the Kimi Datasource entry. The hardcoded Kimi WebBridge row now leads that tab, so move down one row before installing.
@wbxl2000 wbxl2000 merged commit a354803 into main Jul 9, 2026
10 checks passed
@wbxl2000 wbxl2000 deleted the tui/web-bridge-plugin-entry branch July 9, 2026 11:51
@github-actions github-actions Bot mentioned this pull request Jul 9, 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