feat(websearch): Chrome-first browser detection, TUI browser picker & process cleanup - #202
Open
BaSui01 wants to merge 13 commits into
Open
feat(websearch): Chrome-first browser detection, TUI browser picker & process cleanup#202BaSui01 wants to merge 13 commits into
BaSui01 wants to merge 13 commits into
Conversation
# Conflicts: # source/mcp/utils/filesystem/native-edit.utils.ts
重要更新:兼容了 deepseek responses 请求中的 `response.reasoning_text.delta` update dependencies and migrate to @modelcontextprotocol/client - Added @modelcontextprotocol/client and @modelcontextprotocol/node as dependencies. - Refactored imports in notebook.ts and todo.ts to use @modelcontextprotocol/client. - Updated MCPConfigScreen.tsx with protocol notes for MCP server configuration. - Enhanced mcpToolsManager.ts to support the 2026-07-28 MCP protocol, including cache hints and MRTR. - Adjusted tool execution logic to handle input_required responses transparently.
- detectBrowserCandidates(): list all installed Chrome/Edge-family browsers per platform (win32 Chrome first incl. LOCALAPPDATA, darwin, linux, WSL) - findBrowserExecutable() now reuses it, keeping runtime and TUI consistent - Chrome preferred as it avoids Edge's phantom Alt+Tab residue after headless runs
- killBrowserProcess() now uses taskkill /T /F, then sweeps remaining chrome.exe processes holding the per-process profile dir as last resort - bounded CDP Browser.close budget so shutdown cleanup can never hang - WSL error hint now points at Chrome path first
- browserPath editing now offers a selectable list of detected browsers (Chrome/Edge), an auto-detect (clear) option and a manual input fallback - non-editing view shows the actually detected browser path - new i18n key manualInputOption (zh/zh-TW/en)
- exitWithCleanup() in cli.tsx runs global cleanup (browser/MCP/OTEL/Ink) with a bounded 5s wait before process.exit - task executor, loop daemon and agent child worker close the Puppeteer browser they launched instead of orphaning headless Chrome
- native Win32 helper destroys top-level Chromium-family windows whose owning process has exited (EdgeUiInput* classes linger in Alt+Tab) - phantomWindowCleanup.ts exposes the sweep; windows of running browsers are never touched
- Windows auto-detect priority is now Chrome > Edge, with Linux probe order and manual browserPath guidance
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
Improves the web-search browser layer across detection, UI and lifecycle:
Chrome-first auto-detection (cdd1440)
TUI browser path picker (9e4db05)
Browser process lifecycle cleanup
Windows phantom-window sweep (4b2912d)
Docs (3fba7e2) — proxy/browser settings now document the Chrome-first priority and probe order
Commits
Testing