Repository navigation
fix(feishu): scope sequential queue by group session - #72972
AaronLuo00 wants to merge 1 commit into
Conversation
Greptile SummaryThis PR scopes the Feishu sequential queue key by group session to prevent long-running requests in one topic from blocking unrelated topics or senders in the same group. The new Confidence Score: 5/5Safe to merge — the fix is logically consistent with how conversation routing already scopes sessions, the key format matches test expectations, and backward compatibility (no No P0 or P1 issues found. The logic correctly gates new scoping on group chat types, falls back gracefully when No files require special attention. Reviews (1): Last reviewed commit: "fix(feishu): scope sequential queue by g..." | Re-trigger Greptile |
b21a0b7 to
cb1f8e2
Compare
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep this PR open: the Feishu queue/session direction is valid, but the current head is merge-conflicting, lacks required real Feishu behavior proof, and can still break same-topic FIFO for native topic starters whose thread id is hydrated only after queue selection. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes. Source-level review shows current main computes normal Feishu queue keys at account/chat scope while configured group_topic or group_topic_sender sessions can route by topic/sender identity; I did not run a live Feishu before-fix scenario in this read-only review. Is this the best way to solve the issue? No. Reusing Feishu group-session identity is the right direction, but this branch computes the queue key from the raw event before native topic hydration and lacks real behavior proof, so it is not the safest fix yet. Security review: Security review cleared: No concrete security or supply-chain issue was found; the diff adds no dependencies, workflows, secrets handling, auth, or network execution paths. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against ec737ee74d9b. |
cb1f8e2 to
f70c4ec
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fix Feishu inbound queue scoping so grouped sessions are not still serialized at the whole-chat level.
When
groupSessionScopeis configured asgroup_topicorgroup_topic_sender, Feishu conversations are already routed into separate sessions, butgetFeishuSequentialKeystill returnedfeishu:<accountId>:<chatId>for normal messages. That meant a long-running request in one Feishu group topic could block unrelated topics/senders in the same group.This PR makes the sequential queue key reuse the same group-session peer ID resolution used by conversation routing:
group_senderqueues by sendergroup_topicqueues by topic/root/thread/message idgroup_topic_senderqueues by topic + sendertopicSessionMode: "enabled"and per-groupgroupSessionScopeoverrides are honored/stopand/btwkeep their existing stable per-chat lanesIt also includes a tiny Matrix test fixture update required after rebasing onto latest
main, where the native approval runtime test helper type now requiresplannedTargetandviewfields.Tests
pnpm test extensions/feishu/src/sequential-key.test.tspnpm test extensions/matrix/src/approval-handler.runtime.test.tspnpm test:extension feishu— 60 files / 678 tests passedpnpm check:test-typesnode scripts/run-oxlint.mjs --tsconfig tsconfig.oxlint.extensions.json extensions/feishu/src/monitor.account.ts extensions/feishu/src/sequential-key.ts extensions/feishu/src/sequential-key.test.ts extensions/matrix/src/approval-handler.runtime.test.ts