What happened / 发生了什么
当 AI 在 WebChat 界面中输出一个完整的 HTML 页面时,
WebChat 未能正确识别该内容为 HTML,部分内容在Plain Text内,而部分不在,比如这个例子当中的搜索框
Reproduce / 如何复现?
在webchat中输入:请复述这段代码,不要有其他任何行为:
<title>角色介绍 - 死神模拟器 Wiki</title>
死神模拟器 Wiki
搜索
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
4.19.4 Windows webchat
OS
Windows
Logs / 报错日志
[2026-03-10 19:12:55.271] [Core] [INFO] [core.core_lifecycle:297]: AstrBot 启动完成。
[2026-03-10 19:12:55.280] [Core] [INFO] [utils.temp_dir_cleaner:127]: TempDirCleaner started. interval=600s cleanup_ratio=0.3
[2026-03-10 19:12:57.608] [Core] [INFO] [t2i.network_strategy:56]: Successfully got 2 official T2I endpoints.
[2026-03-10 19:13:01.359] [Core] [INFO] [utils.llm_metadata:63]: Successfully fetched metadata for 2082 LLMs.
[2026-03-10 19:13:16.530] [Core] [INFO] [aiocqhttp.aiocqhttp_platform_adapter:107]: aiocqhttp(OneBot v11) 适配器已连接。
[2026-03-10 19:14:20.665] [Core] [DBUG] [webchat.webchat_queue_mgr:126]: Started listener for conversation: 394b3d61-415c-4e7e-9594-8c95abd724ae
[2026-03-10 19:14:20.669] [Core] [DBUG] [webchat.webchat_adapter:216]: WebChatAdapter: [Plain(type=<ComponentType.Plain: 'Plain'>, text='请复述这段代码,不要有其他任何行为:\n\n\n \n \n <title>角色介绍 - 死神模拟器 Wiki</title>\n \n\t\n\n\n \n
\n
\n
\n

\n
死神模拟器 Wiki
\n
\n
\n \n \n 搜索\n \n
\n
\n \n\n \n \n
\n \n \n
\n
\n \n
\n
快捷栏
\n
\n - 苏醒
\n - 三眼死神
\n - 摸鱼时间
\n\t\t\t\t\t- 为人之日
', convert=True)]
[2026-03-10 19:14:20.675] [Core] [INFO] [core.event_bus:61]: [default] [webchat(webchat)] test/test: 请复述这段代码,不要有其他任何行为:
<title>角色介绍 - 死神模拟器 Wiki</title>
死神模拟器 Wiki
搜索
<!-- 导航栏 -->
<nav>
<div class="container">
<ul>
<li><a href="../index.html">首页</a></li>
<li><a href="introduction.html">游戏介绍</a></li>
<li><a href="gameplay.html">游戏玩法</a></li>
<li><a href="worldview.html">世界观</a></li>
<li><a href="historical-events.html">历史事件</a></li>
<li><a href="characters.html" class="active">角色介绍</a></li>
<li><a href="guide.html">攻略指南</a></li>
<li><a href="download.html">下载链接</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="main-content">
<!-- 侧边栏保持不变 -->
<div class="sidebar">
<h2>快捷栏</h2>
<ul>
<li><a href="#1dress">苏醒</a></li>
<li><a href="#2dress">三眼死神</a></li>
<li><a href="#3dress">摸鱼时间</a></li>
<li><a href="#4dress">为人之日</a></li>
[2026-03-10 19:14:20.679] [Core] [DBUG] [waking_check.stage:157]: enabled_plugins_name: ['*']
[2026-03-10 19:14:20.690] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_session_control_agent
[2026-03-10 19:14:20.691] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_empty_mention
[2026-03-10 19:14:20.693] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_bili
[2026-03-10 19:14:20.694] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_xhs
[2026-03-10 19:14:20.696] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_mcmod
[2026-03-10 19:14:20.697] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - process_direct_video
[2026-03-10 19:14:20.697] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_dy
[2026-03-10 19:14:20.702] [Core] [DBUG] [agent_sub_stages.internal:166]: ready to request llm provider
[2026-03-10 19:14:20.702] [Core] [DBUG] [agent_sub_stages.internal:185]: acquired session lock for llm request
[2026-03-10 19:14:20.769] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-03-10 19:14:20.770] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot-web-searcher - edit_web_search_tools
[2026-03-10 19:14:20.777] [Core] [INFO] [respond.stage:184]: Prepare to send - test/test:
[2026-03-10 19:14:20.777] [Core] [INFO] [respond.stage:200]: 应用流式输出(webchat)
[2026-03-10 19:14:20.778] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.IDLE -> AgentState.RUNNING
[2026-03-10 19:14:20.779] [Core] [DBUG] [runners.tool_loop_agent_runner:297]: [BefCompact] RunCtx.messages -> [12] system,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user
[2026-03-10 19:14:20.780] [Core] [DBUG] [runners.tool_loop_agent_runner:297]: [AftCompact] RunCtx.messages -> [12] system,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user
[2026-03-10 19:14:39.174] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.RUNNING -> AgentState.DONE
[2026-03-10 19:14:39.174] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot - record_llm_resp_to_ltm
[2026-03-10 19:14:39.227] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
[2026-03-10 19:14:39.228] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct
What happened / 发生了什么
当 AI 在 WebChat 界面中输出一个完整的 HTML 页面时,
WebChat 未能正确识别该内容为 HTML,部分内容在Plain Text内,而部分不在,比如这个例子当中的搜索框
Reproduce / 如何复现?
在webchat中输入:请复述这段代码,不要有其他任何行为:
<title>角色介绍 - 死神模拟器 Wiki</title>AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
4.19.4 Windows webchat
OS
Windows
Logs / 报错日志
[2026-03-10 19:12:55.271] [Core] [INFO] [core.core_lifecycle:297]: AstrBot 启动完成。
\n[2026-03-10 19:12:55.280] [Core] [INFO] [utils.temp_dir_cleaner:127]: TempDirCleaner started. interval=600s cleanup_ratio=0.3
[2026-03-10 19:12:57.608] [Core] [INFO] [t2i.network_strategy:56]: Successfully got 2 official T2I endpoints.
[2026-03-10 19:13:01.359] [Core] [INFO] [utils.llm_metadata:63]: Successfully fetched metadata for 2082 LLMs.
[2026-03-10 19:13:16.530] [Core] [INFO] [aiocqhttp.aiocqhttp_platform_adapter:107]: aiocqhttp(OneBot v11) 适配器已连接。
[2026-03-10 19:14:20.665] [Core] [DBUG] [webchat.webchat_queue_mgr:126]: Started listener for conversation: 394b3d61-415c-4e7e-9594-8c95abd724ae
[2026-03-10 19:14:20.669] [Core] [DBUG] [webchat.webchat_adapter:216]: WebChatAdapter: [Plain(type=<ComponentType.Plain: 'Plain'>, text='请复述这段代码,不要有其他任何行为:\n\n\n \n \n <title>角色介绍 - 死神模拟器 Wiki</title>\n \n\t\n\n\n \n
\n- 首页
\n - 游戏介绍
\n - 游戏玩法
\n - 世界观
\n - 历史事件
\n - 角色介绍
\n - 攻略指南
\n - 下载链接
\n
\n快捷栏
\n\n- 苏醒
\n - 三眼死神
\n - 摸鱼时间
\n\t\t\t\t\t- 为人之日
', convert=True)]
死神模拟器 Wiki
搜索
- Yes!
- I have read and agree to abide by the project's Code of Conduct。
[2026-03-10 19:14:20.675] [Core] [INFO] [core.event_bus:61]: [default] [webchat(webchat)] test/test: 请复述这段代码,不要有其他任何行为: <title>角色介绍 - 死神模拟器 Wiki</title>
[2026-03-10 19:14:20.679] [Core] [DBUG] [waking_check.stage:157]: enabled_plugins_name: ['*']
[2026-03-10 19:14:20.690] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_session_control_agent
[2026-03-10 19:14:20.691] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_empty_mention
[2026-03-10 19:14:20.693] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_bili
[2026-03-10 19:14:20.694] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_xhs
[2026-03-10 19:14:20.696] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_mcmod
[2026-03-10 19:14:20.697] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - process_direct_video
[2026-03-10 19:14:20.697] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot_plugin_videos_analysis - auto_parse_dy
[2026-03-10 19:14:20.702] [Core] [DBUG] [agent_sub_stages.internal:166]: ready to request llm provider
[2026-03-10 19:14:20.702] [Core] [DBUG] [agent_sub_stages.internal:185]: acquired session lock for llm request
[2026-03-10 19:14:20.769] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-03-10 19:14:20.770] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot-web-searcher - edit_web_search_tools
[2026-03-10 19:14:20.777] [Core] [INFO] [respond.stage:184]: Prepare to send - test/test:
[2026-03-10 19:14:20.777] [Core] [INFO] [respond.stage:200]: 应用流式输出(webchat)
[2026-03-10 19:14:20.778] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.IDLE -> AgentState.RUNNING
[2026-03-10 19:14:20.779] [Core] [DBUG] [runners.tool_loop_agent_runner:297]: [BefCompact] RunCtx.messages -> [12] system,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user
[2026-03-10 19:14:20.780] [Core] [DBUG] [runners.tool_loop_agent_runner:297]: [AftCompact] RunCtx.messages -> [12] system,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user
[2026-03-10 19:14:39.174] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.RUNNING -> AgentState.DONE
[2026-03-10 19:14:39.174] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot - record_llm_resp_to_ltm
[2026-03-10 19:14:39.227] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
[2026-03-10 19:14:39.228] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct