Commit Graph
81 Commits
Author SHA1 Message Date
chengmaandClaude Opus 4.8 979112966e feat: log cmhub download diagnostics in GenerateWorker
GUI 半边配合 ai.py 的 cmhub 下载诊断:格式化「图片下载较慢」warning、
`cover_image_url` 调试行(脱敏 token、debug_only 不写入 SQLite run_log);
`_log_run_event` 增加 persist 开关。tests/test_gui.py 覆盖脱敏与不持久化。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 00:41:44 +08:00
chengmaandClaude Opus 4.8 5a09c6662e feat: cmhub shared Session + connection pool + proxy handling (T-546)
- app/ai.py: 模块级共享 requests.Session + HTTPAdapter 连接池
  (CMHUB_HTTP_POOL_SIZE=32);_apply_cmhub_proxy() 切换 trust_env;
  生成/下载/models/balance 统一复用该 Session。
- app/appconfig.py: ai.cmhub.use_system_proxy 默认 false(绕过系统代理)。
- tests/test_ai.py: 补 Session 复用/代理/连接池测试;原 18 处 cmhub mock
  从模块级 requests 改到共享 Session。
- docs: troubleshooting 加「图片下载很慢」排障节;06-tasks 标 T-546 DONE。

附带:把 app/ai.py 行尾从 CRLF 归一为 LF;并一并纳入工作区中此前未提交、
已在运行构建里的 cmhub 下载诊断代码(调试图片 URL 日志、下载重试事件),
无法与 T-546 在同一文件内拆分单独提交。243 单测全绿。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 00:15:43 +08:00
chengma 3d902d4907 feat: cap cmhub image concurrency 2026-07-07 21:00:43 +08:00
chengma 2928624019 fix: align cmhub image timeout display 2026-07-07 19:13:00 +08:00
chengma 95b180e9cf feat: add startup forced update check 2026-07-07 17:58:28 +08:00
chengma 9ce4d2442e feat: add semantic status bar colors 2026-07-07 15:42:19 +08:00
chengma bb2aa70c54 chore: hide data path settings 2026-07-07 15:24:08 +08:00
chengma 6e2347e1c8 chore: add ruff checks 2026-07-07 15:11:40 +08:00
chengma 862f791fde feat: localize Shopee GUI wording 2026-07-07 14:58:54 +08:00
chengma 7838554c3d feat: add versioned release packaging 2026-07-07 14:21:30 +08:00
chengma 148c4a73eb feat: store packaged user data under data directory 2026-07-07 14:12:32 +08:00
chengma caa04a9aa7 fix: fit main window within screen on startup 2026-07-07 12:06:17 +08:00
chengma fd42814ac0 chore: rebrand display name for T-537 2026-07-07 09:52:51 +08:00
chengma ad75afb8f4 style: unify GUI button radius 2026-07-07 09:21:19 +08:00
chengma 0c2a04b176 fix: set cmhub title read timeout to 600s 2026-07-06 22:51:28 +08:00
chengma 71f8beae57 feat: complete T-534 generated reset enhancements 2026-07-06 20:35:47 +08:00
chengma 46995b301d feat: complete T-533 incremental generation 2026-07-06 17:57:39 +08:00
chengma c42c12ef3e feat: complete T-532 cmhub account prompt 2026-07-06 15:56:28 +08:00
chengma 0dad4151ef feat: complete T-105b account login reuse 2026-07-06 15:01:50 +08:00
chengma 7ac0dcd00e fix: clarify AI generation failure retry states 2026-07-06 11:58:51 +08:00
chengma 19eaa794cf feat: track settings changes and enforce Chinese UI copy 2026-07-06 11:32:02 +08:00
chengma b99019e954 feat: complete T-530 cmhub URL normalization 2026-07-06 10:31:36 +08:00
chengma 60497be557 T-529 default to cmhub gateway 2026-07-04 17:59:23 +08:00
chengma 3dbcbab799 feat: complete T-528 cmhub billing feedback 2026-07-04 17:14:29 +08:00
chengma 27f23a4738 feat: add cmhub settings panel 2026-07-04 16:29:15 +08:00
chengma 1efb095767 feat: add cmhub AI backend 2026-07-04 15:13:15 +08:00
chengma dd2a8e3360 fix: detect shopee accounts login page 2026-07-02 22:38:08 +08:00
chengma b9f614b8e7 fix: capture invalid product toast and close failed tabs 2026-07-02 21:46:32 +08:00
chengma f3e0956cf6 fix: reset visible run logs for new runs 2026-07-02 17:32:51 +08:00
chengma 6e2dcf9954 refactor: split gui into package 2026-07-02 16:47:37 +08:00
chengma 21cd02c167 feat: add optional cover generation toggle 2026-07-02 15:17:11 +08:00
chengma f9c6dd3331 feat: add generate progress and readable logs 2026-07-02 14:02:53 +08:00
chengma 4c7d4fc624 feat: compact cover template actions 2026-07-02 11:26:03 +08:00
chengma 86b931b26d feat: refine settings sections 2026-07-02 10:59:21 +08:00
chengma 820612c3ab feat: align collect filters with workflow tabs 2026-07-02 10:39:29 +08:00
chengma b622925d74 feat: add batch progress overview 2026-07-02 10:21:39 +08:00
chengma d8c3c5d548 feat: add first-run empty state guidance 2026-07-02 09:57:06 +08:00
chengma 9bad70f425 feat: add semantic risk indicators 2026-07-02 09:06:52 +08:00
chengma ba6f3e4af4 feat: apply gui semantic risk colors 2026-07-01 17:56:27 +08:00
chengma f80f00b5a2 feat: expand full-flow diagnostics 2026-07-01 15:32:27 +08:00
chengma 84b35f1cdc feat: polish Shopee update checks 2026-07-01 14:30:49 +08:00
chengma cc277366ed feat: add soft delete for import batches 2026-07-01 09:41:10 +08:00
chengma 483bec427c fix: stabilize Shopee cover replacement 2026-07-01 08:35:46 +08:00
chengma f7ea9ec0fa feat: add selected task reset actions 2026-06-30 11:50:49 +08:00
chengma 580a7a570d fix: handle Shopee update confirmation and upload edge cases 2026-06-30 11:44:27 +08:00
chengma cd1256bc5e feat: add diagnostic logs for generation flows 2026-06-29 17:49:45 +08:00
chengma 94fdae859d ui: 调整设置页AI模型布局 2026-06-29 11:45:10 +08:00
chengma 0e0ed193b6 feat: 完成T-504更新执行增强
- 新增 dry-run、多账号并行和最大并行账号数设置

- 增加 run_logs/run_log_events 运行日志表及读写接口

- ApplyWorker 支持 dry-run 预览、按账号并行、端口冲突阻断和日志展示

- 补充 DB/GUI 单元测试并同步任务、架构、API、路由和当前状态文档

验证: python -m compileall app main.py tests; python -m unittest discover -s tests
2026-06-29 10:25:09 +08:00
chengma 01e319cad8 feat: 完成T-503敏感信息提示与脱敏
- 保存或变更账号密码、AI API Key 前弹出本地明文保存提示

- 新增敏感值打码、结构化日志脱敏和自由文本替换工具

- 补充 GUI/appconfig 单测,覆盖明文提示和脱敏边界

- 同步任务看板、当前状态、架构、API、路由和编码规则文档
2026-06-29 10:05:16 +08:00
chengma 82d390c25a feat: 完成T-502满9张封面替换
实现 replace_cover 满9张时先校验 old_cover_path 本地备份,备份缺失返回 OLD_COVER_BACKUP_MISSING 且不删除线上图片。

备份存在时点击第一张删除按钮并处理可见确认框,删除后继续上传新封面并拖到第一位;apply_task 会把任务 old_cover_path 传入 replace_cover。

补充 editor 单测覆盖备份缺失阻断、删除确认后上传拖首位、删除按钮缺失和 old_cover_path 传递;同步需求、架构、编码规则、任务看板、API、routes、current-state 与 progress。

已在测试商品 29671243750 上验证 9图删除和满9张替换的不提交流程;未点击更新保存线上。
2026-06-29 09:49:53 +08:00