Debug issues in Copex, especially streaming, content display, and event handling bugs. Use this when investigating bugs, unexpected behavior, or errors.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Debug issues in Copex, especially streaming, content display, and event handling bugs. Use this when investigating bugs, unexpected behavior, or errors.
Debugging Guide for Copex
Common Issues
Stale/Wrong Content Displayed
Symptoms: Response shows previous turn's content, or old message appears instead of new one.
Root Cause: History fallback triggered during streaming mode.
Investigation:
Check if streaming (on_chunk provided)
Verify received_content flag is set when content arrives
Check if history fallback is being used incorrectly
Fix Pattern:
# In client.py - only use history when NOT streamingifnot received_content and on_chunk isNone:
# History fallback OK here
messages = await session.get_messages()
In CLI - prefer streamed content:
final_message = ui.state.message if ui.state.message else response.content
Empty or Missing Content
Symptoms: Response is empty, reasoning missing, or incomplete.