Repository navigation
fix(feishu): process topic sessions in parallel - #96315
LucienShui wants to merge 4 commits into
Conversation
|
Codex review: found issues before merge. Reviewed July 2, 2026, 3:38 AM ET / 07:38 UTC. Summary PR surface: Source +228, Tests +548, Docs +2. Total +778 across 11 files. Reproducibility: yes. Current main and v2026.6.11 queue normal Feishu messages by account/chat, while configured group-topic sessions are already routed by topic identity and the PR body includes live Feishu output showing topic B completing while topic A was still running after the patch. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land a refreshed Feishu repair that aligns queue keys with configured group-topic session identity, preserves fallback same-topic FIFO, and has maintainer-owned WebSocket ACK behavior. Do we have a high-confidence way to reproduce the issue? Yes. Current main and v2026.6.11 queue normal Feishu messages by account/chat, while configured group-topic sessions are already routed by topic identity and the PR body includes live Feishu output showing topic B completing while topic A was still running after the patch. Is this the best way to solve the issue? No, not yet. Queue/session alignment is the right owner-boundary fix, but the best fix must preserve fallback FIFO and explicitly own or remove the early WebSocket acknowledgement wrapper. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d32c4cf3007f. Label changesLabel justifications:
Evidence reviewedPR surface: Source +228, Tests +548, Docs +2. Total +778 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
What Problem This Solves
Feishu topic group messages were effectively serialized at the WebSocket event boundary. A long-running OpenClaw turn in one topic blocked delivery and processing for messages in other topics in the same Feishu topic group.
Why This Change Was Made
This changes the Feishu monitor path so accepted WebSocket events are handed off asynchronously instead of awaiting the full agent turn before acknowledging the SDK callback. It also aligns Feishu topic session and queue keys around the native topic thread id, so messages inside one topic stay serialized while different topics use distinct sessions and queues.
User Impact
Users can mention OpenClaw in different Feishu topics in the same topic group and get parallel processing across topics. Replies remain scoped to the originating Feishu thread.
Evidence
oc_52005deff2c7d4d4ce67a7871dbe5142:om_x100b6c9218b3dca8b274b250f4ffc70, threadomt_195fedaec30f9c8b, asked OpenClaw to runsleep 90, repliedLIVE3_A_DONE_20260623_185155at 2026-06-23 18:54.om_x100b6c92149e7ca4b12baba2c8ceab1, threadomt_195fed6c190f5cbe, repliedLIVE3_B_DONE_20260623_185155at 2026-06-23 18:53 while A was still running.git diff --check origin/main..HEADnode scripts/run-vitest.mjs extensions/feishu/src/monitor.message-handler.test.ts extensions/feishu/src/sequential-key.test.ts extensions/feishu/src/bot.test.tspassed 103 tests.Known local proof gaps:
pnpm exec oxfmt --check ...was stopped afterpnpm execstarted downloading optional platform packages and repeatedly hit registry download retries. Prior oxfmt on the same file set passed before PR creation..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/mainwas stopped after 30 minutes of healthy heartbeat without a final review result.