Commit Graph
13 Commits
Author SHA1 Message Date
Rixuan Shao ee441ff5a1 feat: sync runtime multi-user web and login updates 2026-08-17 23:16:12 +08:00
Rixuan Shao ba94e6ac15 fix: isolate CI tests from runtime user data 2026-07-14 16:13:51 +08:00
Rixuan Shao 16afdcef07 fix: harden scheduler and login desktop runtime 2026-07-14 15:23:29 +08:00
Rixuan Shao e3142cabbf fix: harden scheduling and deployment flow 2026-07-11 14:58:05 +08:00
Rixuan Shao c496d90039 feat: publish refreshed SparkFlow console and send safety 2026-07-11 02:13:14 +08:00
codex 8fe630f356 fix: 私信发送确认误判——用 is-me class + 今日时间截断取代宽泛选择器
问题:snapshot_last_own_message 用 [class*='message']/[class*='bubble'] 等宽泛
选择器扫全页并靠位置猜自己消息,抓到的是整个聊天区容器节点。导致
confirm_message_sent 永远比不上单条气泡文本,100% 误报失败,每条消息
纯浪费 ~80 秒空转 + 进入失败队列反复重试。

改动:
1. snapshot_last_own_message 完全重写——直接用抖音 DOM 结构:
   - 找所有 box-item- 行
   - 从底部往上扫 time- 时间分隔符,碰到 昨天/星期/2026- 就标记今日边界
   - 今日区域内从底部找第一个 is-me 行,从 <pre> 取文本
2. 新增 count_today_own_message_matches——只数今日 is-me 气泡里精确匹配
   指定文本的条数。用于发送前后增量比较,挡住手机并发发消息把最后一条
   顶掉导致主路径漏判的场景。
3. confirm_message_sent 加 count 兜底——主路径(最后一条自己消息==本次
   发送文本)未命中时,回退到 count 增量判断;超时前再兜底一次。
4. 保留 _detect_send_failure_indicator——轮询中一旦发现红色感叹号/
   重试按钮/发送失败文字立即判失败,不写 sentAt。

原文件备份:tasks.py.bak-20260624-snapshot-fix(容器内)
2026-06-25 10:04:55 +08:00
Rixuan Shao b5e61a14ea Sync deployed SparkFlow reliability updates 2026-06-20 01:59:01 +08:00
Rixuan Shao 285db46cd9 Make friend list refresh resilient 2026-06-06 20:44:26 +08:00
Rixuan Shao 11a6c949db Add unsent fallback retry workflow 2026-05-29 18:00:47 +08:00
Rixuan Shao 849731442a Handle stale task lock before scheduled send 2026-05-22 21:59:39 +08:00
Rixuan Shao 0397ec60e9 Update send console workflow and redesign dashboard UI 2026-05-18 22:24:04 +08:00
Rixuan Shao 9e3cc85215 Sync remote sparkflow changes and add send console 2026-05-17 22:48:30 +08:00
Rixuan Shao de4f3aeb74 Import sanitized project structure and GitHub docs 2026-05-17 18:28:25 +08:00