MoonshotAI / MoonshotAI/kimi-code
[Bug / UX] Kimi WebBridge agent navigation steals focus and overwrites the active tab
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
[Bug / UX] Kimi WebBridge agent navigation steals focus and overwrites the active tab
Product
Kimi WebBridge browser extension + local daemon
Environment
- Browsers: Google Chrome latest stable, Microsoft Edge latest stable
- OS: macOS (likely all platforms)
- Setup: local agent mode via the official install script
Current behavior
When an agent asks WebBridge to open a URL, the extension currently navigates the active tab instead of opening a background tab. Commands that include newTab: true also open the new tab in the foreground, stealing focus from the user.
Expected behavior
Agent-driven navigation should open pages in a new, inactive background tab so the user can keep using the browser while the agent works.
Steps to reproduce
- Open Chrome and focus any tab with content.
- From a connected agent, send:
{"action":"navigate","args":{"url":"https://example.com"}} - The active tab is navigated away to
example.com, replacing the user's current page.
For newTab commands, the new tab opens with focus instead of staying in the background.
Impact
- Risk of losing unsaved state in the active tab.
- Constant interruption of the user's workflow.
- Unusable in Agent Swarm scenarios where multiple sub-agents open tabs concurrently.
- Feels intrusive despite the local-first architecture.
Suggested fix
- Default all
chrome.tabs.createcalls toactive: falsefor agent tabs. - Make
navigatecreate a new inactive tab when no explicit target is provided, instead of reusing the active tab. - Optionally group agent tabs under a collapsible
Kimi Agentgroup. - Clean up agent tabs when the session ends.
Why posted here
Kimi WebBridge itself does not appear to have a public issue tracker. I am posting this in the closest public Moonshot AI repository so other users can confirm the behavior and so the team has a public record to reference.
Related
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named, and the report notes that WebBridge lacks a public issue tracker. First verify that this repository contains the extension or daemon, then locate the navigation handler and chrome.tabs.create calls. Done means agent navigation no longer replaces the active tab and new tabs remain inactive, verified using the reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100