fix: 修复 TUI 界面 API Key 配置和消息处理问题

1. 修复配置保存问题:config_section.py 现在正确发送 API 配置和工具限制两个消息
2. 修复代理环境变量问题:graph_client.py 自动修正缺少 scheme 前缀的代理 URL
3. 修复响应解析问题:app.py 正确从 data 字段获取 content 和 tool_calls
4. 添加操作日志更新:app.py 处理工具调用信息并更新操作日志

🤖 Generated with CodeArts Agent
This commit is contained in:
2026-04-14 23:46:21 +08:00
parent 8d15624b56
commit ddc84382fd
7 changed files with 38 additions and 326 deletions

View File

@ -141,6 +141,9 @@ class ConfigSection(Vertical):
memory_update_max=int(memory_update.value or 10),
)
# 先发送 API 配置更新is_tool_limits=False
self.post_message(self.ConfigChanged(self._config, is_tool_limits=False))
# 再发送工具限制更新is_tool_limits=True
self.post_message(self.ConfigChanged(self._config, is_tool_limits=True))
except Exception:
pass