修复聊天状态并完善风控浏览器诊断

修复内容:
- 持久化聊天消息已读状态与未读边界,过滤系统通知红点,修正实时消息 ID、已读回执和前端徽标显示
- 完善账号级任务、商品接口和消息调度联动,补充相关服务端与引擎测试
- 新增 token 风控诊断包,保存页面、截图、Frame、选择器、网络事件和完整指纹信息
- 规范化无头 Chromium 的 User-Agent 与 Client Hints,覆盖 Playwright 主引擎和直接 CDP 备用引擎
- 增加可选证书错误兼容开关、真实 Chromium 指纹集成测试,并同步冻结规范
- 新增 SQLite、MySQL、Postgres 聊天状态迁移并重新构建嵌入式前端
This commit is contained in:
Christ committed 2026-08-17 18:41:49 +08:00
1 parent 1185551018
commit ecfe43b5a4
43 files changed
+2244 -113

No files matched your search

+2 -2
View File
@@ -148,8 +148,8 @@ export const sendChatImage = async (input: {
return postForm('/api/chat/images', form, { timeoutMs: 120_000 });
};
export const markChatRead = async (accountId: string, chatId: string): Promise<ApiResponse> =>
post('/api/chat/read', { account_id: accountId, chat_id: chatId });
export const markChatRead = async (accountId: string, chatId: string, messageIds: Array<{messageId: string; sessionId?: string; cid?: string; conversationType?: number}> = []): Promise<ApiResponse> =>
post('/api/chat/read', { account_id: accountId, chat_id: chatId, message_ids: messageIds });
export interface AccountRuntimeStatus {
state: NonNullable<AccountDetail['runtime_state']>;