Skip to content

Fix/reminderbug 修复定时任务的bug#349

Merged
MaojiaSheng merged 2 commits intomainfrom
fix/reminderbug
Feb 28, 2026
Merged

Fix/reminderbug 修复定时任务的bug#349
MaojiaSheng merged 2 commits intomainfrom
fix/reminderbug

Conversation

@chenjw
Copy link
Collaborator

@chenjw chenjw commented Feb 28, 2026

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

1. 修复 AttributeError: 'function' object has no attribute 'process_direct'
   - 使用 mutable holder pattern 解决 agent 初始化顺序问题
   - 在 prepare_agent_loop 中设置 cron._agent_holder['agent'] 引用

2. 优化 cron 提醒的 agent 行为
   - 给 agent 发送明确的 [CRON TASK] 指令
   - 告知 agent 这是定时任务,不是用户对话输入
   - 避免 agent 把提醒消息当作用户问题来回复
@chenjw chenjw changed the title Fix/reminderbug Fix/reminderbug 修复定时任务的bug Feb 28, 2026
@MaojiaSheng MaojiaSheng merged commit d7712d2 into main Feb 28, 2026
5 of 6 checks passed
@MaojiaSheng MaojiaSheng deleted the fix/reminderbug branch February 28, 2026 07:49
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants