You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
修复内容
1. tmux adopt bridge sessionId 回退失败(核心修复)
tmux adopt 发现 pane 时,
readClaudeSessionMeta(panePid)可能拿到的是 wrapper 进程(如 ttadk)的 PID 而非真正 Claude 进程的 PID,导致~/.claude/sessions/<pid>.json找不到 →sessionId = undefined→bridgeJsonlPath = undefined→ bridge 不初始化 → CLI 回复无法回传飞书。修复:将 herdr 专属的 cwd fallback(
findUniqueClaudeSessionByCwd)扩展到所有 claude-code adopt,不限adopted.source === 'herdr'。2. adopt session 重启后 PID 校验误杀
重启后 adopt session 的 PID 不匹配旧进程 → 被误判为 'missing' 并关闭。
修复:adopt session 跳过 PID 匹配校验,保留 session 活跃状态。
3. adopt session re-fork 丢失 bridge 语义
adopt session 的 worker 崩溃后 re-fork 走了普通 forkWorker 路径,丢失 adopt 配置。
修复:re-fork 路径改用
forkAdoptWorker,保留 bridge 初始化。4. persistent-backend 探测误杀 adopt session
adopt session 的 tmux pane 不遵循
bmx-*命名,被探测逻辑误判为孤立并杀掉。修复:adopt session 跳过 bmx-* 探测。
5. 文档评论重复回复
callTenant误加responseType: 'text'导致 SDK 返回原始字符串而非对象 → 自触发过滤失效 → bot 重复回复。修复:移除
responseType: 'text',恢复 SDK 正常返回对象。附带改进
sendText+sendSpecialKeys('Enter')路径加[adopt]前缀诊断日志backend is null兜底日志deliverFinalOutput的 doc-comment marker 检查,避免 botmux send 已发评论后重复发送