Skip to content

Return failure status for failed personal chat requests - #1750

Draft
keshav55 wants to merge 2 commits into
masterfrom
codex/personal-chat-failure-status-20261105
Draft

keshav55 wants to merge 2 commits into
masterfrom
codex/personal-chat-failure-status-20261105

Conversation

@keshav55

@keshav55 keshav55 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

When the personal chat endpoint returns HTTP 200 with success: false, one-shot atris chat --personal prints the server's failure message but exits zero, so a script can mistake a failed request for success. Return exit 1 after printing that message. Successful replies and legacy responses without a success field still exit zero.

The current personal chat client does not send message_key, so the uncertain keyed-delivery response proposed in backend PR #4839 is not currently reachable through this caller. The loopback test simulates that response to verify presentation and status. Interactive chat continues to display the message and does not retry it automatically. This change does not add idempotency or a JSON output mode; --json remains message text.

Validation: 12 focused CLI/ask tests passed. A real CLI process against a disposable loopback HTTP server showed the old false-success exit and verifies false, successful and legacy responses and interactive no-retry behavior. An independent review passed five focused tests and verified an HTTP 503 remains a displayed nonzero failure. No live service or rollout was tested.

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