Skip to content

让 Termina 内部登出操作不再携带 nil 占位 - #69

Merged
tiye merged 1 commit into
mainfrom
refine/payload-free-logout
Nov 10, 2026
Merged

tiye merged 1 commit into
mainfrom
refine/payload-free-logout

Conversation

@tiye

@tiye tiye commented Nov 10, 2026

Copy link
Copy Markdown
Member

对使用者的影响

登出操作和旧客户端、服务端之间的 WebSocket 消息保持兼容。页面内部现在派发无参数的具名登出操作,只有发送到旧协议时才补上原来的 nil 占位。登出仍清除现有登录状态。

改动

  • 让 Profile 按钮派发 Op :user/log-out,复用 op-to-wire 编码原消息。
  • 服务端只把会话 ID 传给登出处理函数,去掉未使用的 payload、操作 ID 和时间参数。
  • 在原 Profile 测试中检查按钮派发和编码,原有服务端登出回归继续验证旧协议。

验证

  • 正式 Calcit 0.40.0,Caps、不可变锁文件和前后端完整 strict 通过。
  • 5 项原生测试、25 项 Node 回归和前后端构建通过。

@tiye
tiye merged commit 4406ff7 into main Nov 10, 2026
1 check passed
@tiye
tiye deleted the refine/payload-free-logout branch November 10, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant