-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Bug Description
When using ask codex to send requests, every response from Codex contains each line/chunk duplicated. The actual content is correct, but each piece appears twice in the captured output.
Reproduction Steps
- Send any request via
ask codex "some message" - Wait for Codex to complete and respond
- Read the captured response — every chunk appears twice
Root Cause Analysis
Traced through the code flow:
- Single send confirmed:
codex.py:handle_task()(line ~111) sends the message exactly once viabackend.send_text(pane_id, prompt) - Double read in CodexLogReader: The
CodexLogReaderreads from Codex's session JSONL file and captures each response chunk twice - Likely cause: The reader is capturing responses from both a primary path and a fallback/duplicate path simultaneously within the JSONL parsing stage
Affected Code
~/.local/share/codex-dual/lib/askd/adapters/codex.py—CodexLogReaderclass- The JSONL session file parsing logic
Impact
- Cosmetic only: The duplicated content doesn't affect Codex's actual processing correctness
- Annoying: Makes it harder to read responses, doubles the output length
- All downstream consumers (hooks,
pend codex, etc.) see duplicated text
Environment
- CCB version: v5.2.4
- Installation:
~/.local/share/codex-dual/ - OS: macOS (Darwin 25.3.0)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels