Skip to content

Bug: 守护进程反复重启,扩展无法稳定连接 #202

Description

@ZiffChow

问题描述

bsk 守护进程每隔约 20-30 秒自动重启,导致浏览器扩展断开连接,无法稳定工作。

环境信息

  • OS: Windows 11 x64
  • bsk CLI: v0.1.11 / v0.2.0(均复现)
  • 浏览器: Microsoft Edge
  • 扩展版本: v0.2.0

日志证据

守护进程日志显示 periodic update check failed 后立即重启,形成无限循环。

今天(2026-09-08)守护进程已重启 81 次

根本原因

bsk 的周期性更新检查失败时,会触发整个守护进程重启。重启后扩展断开连接,守护进程再次启动,再次检查更新,再次失败,形成循环。

复现步骤

  1. 安装 bsk CLI 和浏览器扩展
  2. 运行 bsk daemon start
  3. 等待约 20-30 秒,观察守护进程重启
  4. 扩展断开连接,session 丢失

临时解决方案

使用 Playwright + 本地 Chromium 替代 bsk 完成浏览器自动化任务。

期望行为

更新检查失败时不应触发守护进程重启,应记录错误并继续运行。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions