Skip to content

fix: report silent Codex turn interruptions - #164

Merged
Pigbibi merged 1 commit into
mainfrom
fix/report-codex-conversation-interruption
Aug 28, 2026
Merged

fix: report silent Codex turn interruptions#164
Pigbibi merged 1 commit into
mainfrom
fix/report-codex-conversation-interruption

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 28, 2026

Copy link
Copy Markdown
Owner

问题

Codex TUI 有时会显示 Conversation interrupted,但 transcript 不产生 task_complete。AgentBot 因此不会向 Telegram 发终态,topic 会一直像卡住,之后还可能进入空闲休眠。

修复

  • 只检查当前 turn 的中断标记,忽略旧 scrollback
  • 清除陈旧 Thinking 状态并通过现有可靠内容队列发送明确中断通知
  • 按当前 topic/window 和中断指纹去重,避免状态轮询刷屏
  • 保留会话和 topic 绑定,用户可继续恢复上下文

验证

  • uv run pytest tests/telegram_agent_bot/test_terminal_parser.py tests/telegram_agent_bot/handlers/test_status_polling.py -q:79 passed
  • uv run ruff check ...:passed

@github-actions

Copy link
Copy Markdown

🤖 Codex PR Review

⚠️ Review skipped: The Codex review could not be completed.

No Codex service URL or API key configured. Set CODEX_AUDIT_SERVICE_URL, ANTHROPIC_API_KEY, or OPENAI_API_KEY.

Please ensure a human reviewer checks this PR before merging.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi force-pushed the fix/report-codex-conversation-interruption branch from 0d7659a to 62af601 Compare August 28, 2026 13:03
@Pigbibi
Pigbibi merged commit b536c91 into main Aug 28, 2026
7 checks passed
@Pigbibi
Pigbibi deleted the fix/report-codex-conversation-interruption branch August 28, 2026 13:10
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