fix: 微信 /stop 中止检测 + AuthExpired 处理 + 配置向导改进#434
Open
windcat2333 wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: 微信停止检测 / AuthExpired 处理 / 配置向导改进
变更概要
变更详情
1. 🐛
/stop中止检测 +AuthExpired处理Commit:
f58fdba文件:
frontends/wechatapp.py(+27/-4)/stop命令的可靠中止检测(关联 Bug: WeChat clawbot 中使用 /stop 命令无法真正停止任务,仍继续发送结果 #396)AuthExpired异常处理逻辑(关联 微信前端应正确处理过期 bot_token,避免后台反复弹出登录二维码 #416)2. 🔧 配置向导支持微信 iLink 二维码扫码
Commit:
f44de94文件:
assets/configure_mykey.py(+35)3. 🎨 去除二维码登录的浏览器弹窗
Commit:
0a57a5b文件:
frontends/wechatapp.py(+2/-2)4. 📦 配置向导重构:备份命名 + LLM 配置保留
Commit:
965e391文件:
assets/configure_mykey.py(+91/-17),ga_cli/cli.py(+7)备份逻辑重构:
mykey_模型名_平台ID.pymykey.py.bak.20260519_223023mykey_deepseek-gpt-4_telegram-qq.py_backup_with_name()辅助函数backup→backup_pathNameError({backup}应为{backup_path})LLM 配置保留:
_parse_existing_llm_cfgs()解析现有 mykey.py 的 LLM 配置通用变量解析:
_parse_existing_mykey()重构为支持is_list: true的列表变量PLATFORMS定义自动推导CLI 入口:
ga_cli/cli.py新增tui2命令,启动 TUI v2 增强版测试建议
mykey_模型名_平台ID.py待确认
_backup_with_name防重名(避免与源文件同名为mykey.py)