Skip to content

fix: 修复多个 bug 并优化代码交付 agent#34

Merged
69gg merged 10 commits intomainfrom
bugfix/bugs-3
Feb 17, 2026
Merged

fix: 修复多个 bug 并优化代码交付 agent#34
69gg merged 10 commits intomainfrom
bugfix/bugs-3

Conversation

@69gg
Copy link
Owner

@69gg 69gg commented Feb 17, 2026

主要改动

Bug 修复

  • 修复 @bot 消息被截断的问题,统一转为 [@qq] 格式
  • 修复彩蛋消息污染 message_sent_this_turn 标记的问题
  • 修复多个异步调用和配置问题
  • 修复 AgentToolRegistry 深度限制问题

功能优化

  • 优化代码交付 agent 实现
    • 重构 handler.py,提取 docker_utils.py 模块
    • 新增 init_docker 和 send_text_file 工具
    • 简化 prompt 和工作流程
  • 澄清 prompt 中与 NagaAgent 的关系
  • 优化 config.toml.example 注释表述

测试

  • 添加 AgentToolRegistry 深度限制测试

文件变更

  • 22 个文件修改,新增 761 行,删除 507 行

Open with Devin

69gg and others added 7 commits February 17, 2026 17:41
- 添加缺失的 await 关键字 (ai_coordinator.py)
- 解耦预注册与摘要启用状态 (client.py)
- 保存后台任务引用防止 GC (client.py)
- 修复 inflight_summary_enabled 默认值 (prompts.py, README.md)
- 添加文件系统遍历深度限制 (agent_tool_registry.py)
- 删除无意义的 model 变量代码 (ai_draw_one/handler.py)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
测试 _find_skills_root 方法的文件系统遍历深度限制功能

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
彩蛋通过 sender.send_group_message 发送时会触发
_mark_message_sent_this_turn,导致 end 工具的"未发消息则拒绝"
检查被绕过。给发送链加 mark_sent 参数,彩蛋调用时传 False。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 取消自动初始化docker容器
- 移入单文件发送工具
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

devin-ai-integration[bot]

This comment was marked as resolved.

69gg and others added 2 commits February 17, 2026 22:39
将 _inject_inflight_tasks 的检查标志从 inflight_summary_enabled
改为 inflight_pre_register_enabled,使注入逻辑与预注册逻辑保持一致。
这样预注册功能才能真正防止重复任务。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- 添加名字相关信息(Undefined/undf/udf/心理委员)
- 明确分条发送规则(独立消息、避免换行堆砌)
- 添加知识查证原则(冷门内容必须先搜索)
- 说明工具调用提示彩蛋功能

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@69gg 69gg merged commit 9154aca into main Feb 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments