Commit d67e1f7
ws040: deliver name-less card reply by resolving its sidebar row (real fix)
Root cause of the card stall (confirmed via ws038/039 probe + live DOM): a
name-less card dispatches under a synthetic 'card:<conv>' name (ws033c), but
feige_send_message matches the sidebar row BY NAME, and the real row is 'sc'
-> "Session not found" -> requeue loop. There is NO shared id to map the WS
card to its DOM row: the row exposes only name + btm tracking ids + avatar; the
talk_id/uid appear nowhere on it, and the display name is DOM/HTTP-only (the
avatar uid is in an HTTP answerRecommend call, not WS).
Fix: when the synthetic 'card:' name can't be matched, resolve the card's
conversation ROW directly — the UNIQUE sidebar row whose preview starts '[商品'
AND whose class has 'needReply'. If exactly one -> deliver to its real name
(rebind expectedCustomer so all crosstalk guards verify the actual conv). If 0
or >1 -> fall through to not-found + requeue (NEVER guess -> mis-delivery-safe).
Gated to synthetic 'card:' names only; named-customer + text delivery untouched.
Selectors verified against the live sidebar DOM (msgContent '[商品]',
nameLine/newNameContent 'sc', needReply-* class). Needs a live run to confirm
the full send flow (browser JS can't be simulated offline).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent fa2ee0b commit d67e1f7
1 file changed
Lines changed: 27 additions & 0 deletions
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4576 | 4576 | | |
4577 | 4577 | | |
4578 | 4578 | | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
4579 | 4606 | | |
4580 | 4607 | | |
4581 | 4608 | | |
| |||
0 commit comments