Skip to content

Improve Codex output handling and long-response behavior#2

Open
chaz-working wants to merge 1 commit into
mainfrom
feat/codex-output-cleanup
Open

Improve Codex output handling and long-response behavior#2
chaz-working wants to merge 1 commit into
mainfrom
feat/codex-output-cleanup

Conversation

@chaz-working

@chaz-working chaz-working commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • use Codex CLI --output-last-message in exec mode and read from a temp file to capture the final assistant message cleanly
  • strip terminal control sequences from stdout/stderr fallback output
  • avoid duplicate promise resolution in process finalization
  • replace output truncation in Telegram handler with a clear message when response exceeds MAX_OUTPUT_CHARS

Validation

  • npm run typecheck

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