Skip to content

fix(cookbook): accept two Codex footer rows below the composer - #656

Merged
umputun merged 1 commit into
masterfrom
codex-two-footer-rows
Sep 25, 2026
Merged

umputun merged 1 commit into
masterfrom
codex-two-footer-rows

Conversation

@umputun

@umputun umputun commented Sep 25, 2026

Copy link
Copy Markdown
Owner

codex-cli 0.157.0 draws a status row and a shortcut hint under its composer. trailing_input_block in cookbook/two-agent-chat/peer-chat.py stripped only the last footer row, so the status row became the whole input block and every send to Codex was refused as an unrecognisable prompt.

the parser now strips both rows when a blank row separates them from the composer, and one row otherwise. Without the blank, the row above the footer can be a wrapped draft's continuation, which the existing wrapped-composer test covers. Three or more trailing indented rows are still refused.

new tests cover the reporter's layout, a wrapped draft above two separated footer rows, and three trailing indented rows. The README sentence on footer handling is updated to match.

Fixed #652

codex-cli 0.157.0 draws a status row and a shortcut hint under its composer. The recipe's `peer-chat.py` stripped only the last footer row, so the status row became the whole input block and every send to Codex was refused.

the parser now strips both rows when a blank row separates them from the composer, and one row otherwise. Without the blank, the row above the footer can be a wrapped draft's continuation.

Fixed #652
Copilot AI lite review requested due to automatic review settings September 25, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit 2f0ba44 into master Sep 25, 2026
7 checks passed
@umputun
umputun deleted the codex-two-footer-rows branch September 25, 2026 16:05
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.

cookbook/two-agent-chat: sends to Codex are refused when two footer rows sit under the composer

2 participants