Skip to content

Commit 947e4b1

Browse files
69ggclaude
andcommitted
fix(webui): 补充 request_type 到 WebUI 会话 extra_context
WebUI AI Chat 会话缺少 request_type 字段,导致 end 工具的 史官上下文构建和 end summary 位置归属均静默失效。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 47c8ec7 commit 947e4b1

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "Undefined-bot"
3-
version = "3.0.0"
3+
version = "3.0.1"
44
description = "A high-performance, highly scalable QQ group and private chat robot based on a self-developed architecture."
55
readme = "README.md"
66
authors = [

src/Undefined/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Undefined - A high-performance, highly scalable QQ group and private chat robot based on a self-developed architecture."""
22

3-
__version__ = "3.0.0"
3+
__version__ = "3.0.1"

src/Undefined/api/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ def send_message_callback(msg: str) -> Awaitable[None]:
850850
scheduler=scheduler,
851851
extra_context={
852852
"is_private_chat": True,
853+
"request_type": "private",
853854
"user_id": _VIRTUAL_USER_ID,
854855
"sender_name": _VIRTUAL_USER_NAME,
855856
"webui_session": True,

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)