Skip to content

Add Lark sender metadata to CLI prompts - #14

Closed
SDGLBL wants to merge 1 commit into
deepcoldy:masterfrom
SDGLBL:codex/sender-tag
Closed

SDGLBL wants to merge 1 commit into
deepcoldy:masterfrom
SDGLBL:codex/sender-tag

Conversation

@SDGLBL

@SDGLBL SDGLBL commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add optional Lark sender metadata and render <sender ... /> in botmux-managed CLI prompts
  • pass sender metadata through new-topic, follow-up, refork, and pending repo-selection paths
  • keep scope minimal: no user cache or contact API lookup; user names remain optional, foreign bot names reuse existing lookup

Closes #13

Tests

  • npx --yes [email protected] vitest run test/prompt-builder.test.ts test/command-handler.test.ts test/card-integration.test.ts
  • npx --yes [email protected] exec tsc --noEmit
  • git diff --check

@SDGLBL SDGLBL closed this May 18, 2026
sensuossss added a commit that referenced this pull request Jun 24, 2026
- #10 daemon-run cold-attach: "一 gate 已自愈 + 另一 gate 仍 pending" 时,resume 重驱
  会自己重发 pending gate 卡,cold-attach 再发一张就重复 → resume 为真时跳过 rec.repost
  (repostBlocked/loopGrant/revisitGrant 恒 resume:false,不受影响)。
- #11 journal: readJournal 原先 mid-file 解析失败也静默跳过 → 丢中间事件会让 replay
  状态失准(丢 nodeSucceeded 节点永远 pending)。改成只容忍"最后一行"半写截断,中间行
  解析失败抛错 fail-loud。
- #13 revisit-grant handler: 补 blocked/loop 都有的幂等恢复——not-budget-blocked
  (已准许、节点不再受阻)时也 driveRun,救回"上次 grant 的 driveRun 没落地"。
- #14 gate handler: already-settled 且 approved 时也 driveRun(幂等恢复),拒绝是终态不重驱。
- #18 architect test: 加注释说明这些是 prompt 教学文案断言、非强制行为;真正强制在
  dag/runtime 套件(含本次新增的 v3-runtime 降权看门测试)。

校验:pnpm build 通过;全量单测(排除 e2e) 6734 passed。
deepcoldy pushed a commit that referenced this pull request Oct 3, 2026
Herdr 的 done/idle 由 CLI 的 stop hook 触发,可能早于 Claude 把本轮最后一条
assistant 行写进转写。此时立刻 drain 会把这一轮当作无回答弹出,稍后落盘的
回答没有可归属的轮次,被合成为本地轮并抑制,依赖转写取最终回复的场景
(HTTP wait/async 触发、转写回复模式)就丢了这一轮的结果。

收尾前按 100ms 轮询等待队首轮次的终止标记,最多 2 秒;Agent 回到 working
或有更新的结束信号时取消。非 Claude 转写、本地键入的轮次不等待。

Co-authored-by: Claude Fable 5.1 <[email protected]>
(cherry picked from commit c26173a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

统一 Lark sender/user 身份缓存,并在注入 CLI 的 prompt 中添加 sender tag

1 participant