Files
Nexus/docs/changelog/2026-06-12-remove-remote-browser.md
T
Nexus Agent ba7c790f38 feat(watch): show probe history in Beijing time and retire remote browser
Monitoring history charts and tables now format UTC timestamps as Asia/Shanghai.
Remove Playwright worker, global browser panel, and related API routes; open site URLs in a new tab instead. Fix chain test Redis pipeline mock.
2026-06-13 16:32:02 +08:00

32 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-12 移除远程内置浏览器方案
## 摘要
整体下线 Playwright Worker + 全局浮动 canvas 浏览器:删前端组件/路由、后端 `/api/browser/*``/ws/browser``browser-worker/` 目录及单测。
## 动机
黑屏与状态机复杂、验证码与 SSRF 未闭环;运维场景下「站点」新标签打开即可。经验沉淀见 `docs/design/specs/2026-06-12-remote-browser-retired-lessons.md`
## 涉及文件(删/改)
- 删:`frontend/src/components/GlobalBrowserPanel.vue``useGlobalBrowser.ts``useRemoteBrowserSession.ts``BrowserPage.vue`
- 删:`server/api/browser.py``browser_session.py``server/infrastructure/browser/*``server/utils/browser_*`
- 删:`browser-worker/``tests/test_browser_*`
- 改:`server/main.py`(已不注册路由)、`server/config.py`(移除 `BROWSER_*`
- 保留:`frontend/src/utils/browserUrl.ts``ServersPage`「站点」→ `window.open`
## 迁移/重启
- 生产可保留 `NEXUS_BROWSER_*``.env``Settings.extra=ignore` 忽略);建议删除 Worker 容器与 8443 规则。
-**重启 Nexus API****前端 build 同步**
## 验证
```bash
venv/bin/pytest tests/test_settings_sound_defaults.py -q
cd frontend && npm run type-check && npx vite build
curl -sf https://api.synaglobal.vip/health
# 404 预期:GET /api/browser/status(需 JWT
```