Web UI sends `shutdown` on tab close instead of `restart`

未关闭 适合新手
#256 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
frontend

调研方向

从 serve-mode Web UI 中的 destroyPlayer() 开始,检查关闭标签页与点击显式的 user-stop 按钮时 client/goodbye.reason 的赋值方式。将未作说明的 graceful-disconnect 默认值改为 restart,同时保留显式停止时使用的 user_request,然后验证两个 goodbye 原因都按预期发送。

由索引模型根据 Issue 内容生成。

描述

Severity: 🟠 high

destroyPlayer() in the serve-mode web UI defaults to client/goodbye.reason = 'shutdown'; only the explicit user-stop button sends user_request. A user who simply closes the browser tab is therefore reported to the server as having "shut down permanently", which (per the spec) suppresses server-side auto-reconnect. The spec implies the default for an unexplained graceful disconnect should be restart.


Source: docs/goodbye-and-operational-state.md §divergence
Full audit branch: claude/stream-sync-correction-sdks-AWoNC
Per-SDK digest: sdk-issues digest

Filed from a cross-SDK conformance audit; see digest for the full per-SDK punch list.

主要语言
Python
星标
190
派生
36
平均合并
11 天 19 小时
30 天内合并 PR
2

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Sendspin/sendspin-python-cli 的其他 Issue

查看 Sendspin/sendspin-python-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。