功能: 飞书/Telegram/QQ 旁路提问 (/btw) + 修复会话恢复与代理劫持#194
Closed
Xiaoyuan-Liu wants to merge 7 commits intoriba2534:mainfrom
Closed
功能: 飞书/Telegram/QQ 旁路提问 (/btw) + 修复会话恢复与代理劫持#194Xiaoyuan-Liu wants to merge 7 commits intoriba2534:mainfrom
Xiaoyuan-Liu wants to merge 7 commits intoriba2534:mainfrom
Conversation
1. agent-runner: 新增 isInvalidThinkingSignatureError() 检测,将 thinking block signature 无效错误识别为 sessionResumeFailed,清除旧 session 后自动重试 2. src/index.ts: 进程启动时清除 npm_config_proxy 环境变量,防止 npm run 注入的 代理设置劫持飞书等外部 API 请求(axios 会读取该变量) 3. Makefile: start 目标改为直接调用 node,避免 npm run 注入代理变量 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts: # Makefile # web/src/components/chat/MessageList.tsx
# Conflicts: # Makefile # web/src/components/chat/MessageList.tsx
web-context.ts: 同时保留 executeBtw (PR#194) 和 triggerTaskRun (main) 方法 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
|
将使用干净的 commit 历史重新提交(清理 Git 身份信息) |
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.
问题描述
/btw旁路提问功能,允许用户在 Agent 执行任务期间通过轻量级独立通道提问,不打断主对话流实现方案
/btw旁路提问后端(
src/index.ts、src/web.ts、src/types.ts)handleBtwCommand()+streamBtwAnswer()处理/btw斜杠命令--print模式流式回答,基于最近对话上下文btw_response消息类型广播到 Web 端IM 渠道(
src/feishu.ts、src/telegram.ts、src/qq.ts)/btw命令拦截和回复前端(
web/src/components/chat/、web/src/stores/chat.ts)BtwBubble.tsx组件展示旁路问答气泡btwResponses/btwLoading状态管理工具函数(
src/im-command-utils.ts)buildBtwTranscript()构建对话摘要(纯函数,无副作用)会话恢复修复(
container/agent-runner/src/index.ts)isInvalidThinkingSignatureError()检测 thinking block signature 无效的 400 错误sessionResumeFailed,清除旧 session 后自动重试代理劫持修复(
src/index.ts、Makefile)npm_config_proxy/npm_config_https_proxymake start改为直接调用node dist/index.jsTest plan
/btw命令在飞书中正确拦截和回复make typecheck通过🤖 Generated with Claude Code