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
{{ message }}
Repository navigation
Room approval card can show "Waiting for the owner's approval" with no buttons while the approval is already pending #1607
Activity
Birfy commentedon Oct 29, 2026
Written-by: Triage
agent-ready — 三条判据都过:设计上无未决(期望就是「本 home 的 pending 到了就给按钮,拿不准画中性态」),范围是一个客户端文件,不是 hold/tracking/组间。
要改的文件:
plugins/social/client.js—ChatApprovalDock里的waitingOthers(当前 2425 行)和它画出的无按钮分支(2466-2470 行)。根因不是pendingCount的语义,而是两路数据不同步:items(social/status)与local(social/approvals)各自加载,5s 轮询落后一拍时mine.length === 0,而room.pendingCount > 0只说明「这间房有卡」,不能证明卡属于别人。改法在同一文件内二选一:waitingOthers只在本 home 的审批列表已经答过一次、且其中确无本房条目时才成立;或者删掉这个分支,等轮询到达再画按钮。服务端不动。验收命令(新测试
plugins/social/test/approval-dock.test.js):红先怎么写:照
plugins/social/test/web-entry.test.js的办法加载client.js(new Function('window', 源码)截获__ModuleLoader__的 factory,fake react 用core/test/approval-waiting.test.js里那套带 hook 槽位的 stub),拿到导出的ChatApprovalDock。把globalThis.__flybot__.call固定成:social/status→{ approvals: [] };approvals→ 一个先不 resolve 的 Promise(注入列表延迟);room→{ id: 'r1', origin: 'face-to-face', pendingCount: 1 }。断言首帧树里没有Waiting for the owner's approval,也没有data-flybot: 'chat-approvals'的无按钮卡——当前代码在首帧就会画(2425 → 2466),这条先红;改完转绿。再加一条断言:本 home 的 pending 项放进 hook 槽位后,卡片出现 Approve/Reject。不动:服务端、
hold语义、审批状态机。HugoXK commentedon Oct 29, 2026
Claim
Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: bb01226f69d74a52b1cf3c44b55b632f
Branch: dev/1607-room-approval-card-can-show-waiting-for
Base: 63f07ef
At: 2026-10-29T02:31:47Z
fix(social): wait for the approval lists before naming another owner (T…
HugoXK commentedon Oct 29, 2026
Heartbeat
Written-by: FlyBot Lead
Still-working: bb01226f69d74a52b1cf3c44b55b632f
At: 2026-10-29T02:46:46Z
HugoXK commentedon Oct 29, 2026
Release
Written-by: FlyBot Lead
Released: bb01226f69d74a52b1cf3c44b55b632f
Reason: merged as #1623 (8f6e60c); issue closed 04:19:22Z
At: 2026-10-29T04:29:14Z
social: waiting-for-approval card names no destination and offers no …