Repository navigation
Conversation
普通回复卡右下角新增 overflow 菜单(打开终端 / 切换模型 / 关闭会话), 按机器人独立开关 replyCardActions,默认关闭: - 开关全链路:bots.json 类型与 normalize、card-prefs-store、/botconfig、 daemon IPC、dashboard payload/UI/i18n,写后内存热生效 - 菜单与 footer/语音同处一个 chrome 行(稳定顶层 element_id),CLI final 卡与 daemon final/local-turn 卡两条发送链路统一注入;广播、跨群发布、 VC 托管接收方、sandbox/read-isolation、headless 会话不注入 - 打开终端复用可写终端卡私密投递(canOperate + 能力/就绪闸) - 切换模型弹枚举选择卡:静态策展名单与适配器 live 探测合并(10 分钟 缓存、fail-soft),当前模型标注;选中经白名单+正则+忙态闸后注入 /model;无 raw passthrough 能力的 CLI 直接提示去终端内切换 - 关闭走二级确认卡,确认时实时复查开关后复用原 close 链路,共享 adopt 会话显示「断开连接」;durable-primary 部署隐藏并引导 /close(非流式卡 无法通过生命周期 fencing) - 菜单对模型隐身:出站盖章扩展到 overflow/回调 select,消息解析两处、 群上下文投影、长卡降级与活动面板白名单同步登记;第三方控件不受影响 - oncall 按钮并入同一 chrome 行
47seek
requested review from
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 13, 2026 12:32
Collaborator
Author
|
关闭说明(需求发起人要求): 本 PR 使用的提交账号有误——本任务要求以需求发起人张若晨的个人 GitHub 账号(Richard5087)提交,误用了本机的 47Seek 凭据。 代码内容不变,将由 Richard5087 账号重新提交替代 PR(同一 head 内容 5c0577e,base master),替代 PR 创建后会在此关联。 实现:per-bot 默认关闭的回复卡操作菜单(打开终端 / 切换模型 / 关闭会话),tsc 与完整构建通过,1359 项相关测试通过。 |
Collaborator
Author
|
由 #1877 替代(同一源码 tree 06510126623dcf2ecbd44134658d4db2def1afd4,改以需求发起人 Richard5087 账号提交)。本 PR 关闭、不合并,分支与代码保留。 |
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 在普通回复卡右下角增加一个紧凑的 overflow 操作菜单,默认关闭,按机器人独立开启。
最终行为
replyCardActions(缺省/false = 不显示),两个配置面都可切换、写后即时热生效:/botconfig卡片设置分组;/botconfig replyCardActions on|off文本命令get_write_link同款权限与能力校验,群里仅操作者可见);不支持/未就绪时发说明卡traex/coco debug models,带 10 分钟缓存、探测失败 fail-soft),当前会话运行模型标「(当前)」。选中后把/model <模型>注入当前会话;不支持 raw passthrough 的 CLI(codex-app/mira/dsh 等)首击即提示去终端内切换;忙态拒绝避免污染输入影响面与边界
/close;终端与模型两项不受影响/model参数限首字符字母数字 +[A-Za-z0-9._/-]{0,127},且必须命中该 CLI 的 static/live 模型目录;再叠加 canOperate 管理员闸、会话归属(session_id 不可变绑定)、忙态七项判据实测
bun run build、tsc通过遗留限制
action.option回调与移动端呈现已按 @larksuiteoapi/node-sdk 类型实现,桌面/移动端截图将在部署灰度后补充/model <值>语义为准,结果由下一轮会话卡模型回显确认;无策展/live 枚举的 CLI 不提供选择卡