Commit 0b84aa4
ws050: 转人工 handover emoji-ack + synthetic-card placeholder 弹不出 fix
Two fixes from the 1v8 (ws045) trace.
1) 转人工 handover acknowledgement (the customer-flagged requirement).
When a customer transfers to human, Feige auto-greets ("Hi,欢迎光临本店…") and
starts a service-attitude penalty timer. That greeting is the PLATFORM's — it
does NOT count as our reply — so we must send our own. We now send a uniform
ASCII ":)" once per handover:
- frontdesk_dispatch: when first_system_row_match returns a handover-family
reason (store_auto_greeting / smart_cs_auto_greeting / human_handover_notice
/ store_assignment_notice / transfer_to_human_label), record the customer via
placeholder_timer.note_handover_ack_needed (deduped 600s, since the greeting
row re-matches every cycle until the customer types).
- placeholder_timer: the sweep loop drains pending acks and sends the emoji
through the SAME submitter placeholders use (open conversation + type),
inheriting browser_session/worker_loop/tab-pool — no new send plumbing.
Gated ECAN_FEIGE_HANDOVER_ACK (default ON; =0 disables). Detection is DOM/
dispatch-based because the WS fusion-handover frame
(switch_human_triggered_word=人工, verified by decoding the 06-10 capture)
carries no usable talk_id — only shop-side fusion ids.
2) Synthetic-card placeholder 弹不出. A placeholder armed under 'card:<conv>'
failed feige_open_session with "Session not found" (live 1v8: 6x for
card:7650132942676575524 — 半成品男孩's card conv) because the sidebar row is
the real name, not 'card:<conv>'. direct_delivery now de-synthesizes the conv
to the real name (ws_session.name_for_talk) before open AND send, falling back
to the synthetic key if unresolved.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 671566e commit 0b84aa4
3 files changed
Lines changed: 122 additions & 2 deletions
File tree
- agent/ec_skills
- browser_use_extension/hooks/external/feige_chat
- node_runtime
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
321 | 337 | | |
322 | 338 | | |
323 | 339 | | |
| |||
344 | 360 | | |
345 | 361 | | |
346 | 362 | | |
347 | | - | |
| 363 | + | |
348 | 364 | | |
349 | 365 | | |
350 | 366 | | |
| |||
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
210 | 268 | | |
211 | 269 | | |
212 | 270 | | |
| |||
1036 | 1094 | | |
1037 | 1095 | | |
1038 | 1096 | | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1039 | 1110 | | |
1040 | 1111 | | |
1041 | 1112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
1248 | 1259 | | |
1249 | 1260 | | |
1250 | 1261 | | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1251 | 1284 | | |
1252 | 1285 | | |
1253 | 1286 | | |
| |||
0 commit comments