Enhancements: Windows compat, streaming edit, group @-mention filter, first-task preservation, /stop - #1
Open
caoxiaohu7745-bot wants to merge 6 commits into
Open
Conversation
added 6 commits
August 15, 2026 22:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 提案:dsh-im-bridge 增强合集(Windows 兼容 + 流式编辑 + 群聊 @ 过滤等 6 项)
目标仓库:https://github.com/shaobeichen/dsh-im-bridge
基线:v1.0.5(
ef7332e)提交:6 个(见本目录
0001-*.patch~0006-*.patch,可git am直接应用)测试:全套 131 例在 Windows 与 Ubuntu 双平台全绿(无真实凭据/网络)
真实联调:已在一台 Windows 主机上以真实飞书自建应用 + 真实 DeepSeek 模型完成端到端验证
(长连接收发、审批卡片、群聊 @、/stop、流式卡片)。
改动总览
7e09310/bin/bash→ 跨平台demo/shell.mjs(win32 优先 pwsh、回退 powershell.exe);CI 矩阵增加windows-latest645b7e4notifications.streamEdit(默认开)——渠道实现edit()且send()返回 messageId 时,增量首帧发送、后续帧原地编辑;飞书实现im.message.patch卡片更新(文本消息不可 patch,故流式帧渲染为卡片);出站业务失败(code != 0)一律抛出并带平台错误码b78d1bdconnection可选依赖:飞书/微信适配器曾把connection写进inject,裸 Context 运行器(demo)里插件永远 waiting、apply 不执行;web-rpc 改用ctx.get('connection')优雅降级 + 激活回归测试975172bgroupMentionOnly(默认 true)——群聊仅回复手动 @ 机器人的消息;机器人身份经bot/v3/info懒加载缓存,查询失败时失败关闭;@ 占位符清洗(机器人自身移除、他人替换 @昵称)5c7bf3f38cbd83/stop命令:agent.cancel({kind:'user'})中断运行中任务,turn 以 aborted 收尾并推送「任务已取消」卡片;此前任务卡住时 IM 内无法打断测试增量
说明
ctx.im、行 id、存储布局)保持与上游兼容,无破坏性变更应用方式