Skip to content

Conversation

@celia-oai
Copy link
Contributor

@celia-oai celia-oai commented Dec 10, 2025

Our previous design of cancellation endpoint is not idempotent, which caused a bunch of flaky tests. Make app server just returned a not_found status instead of throwing an error if the login id is not found. Keep V1 endpoint behavior the same.

@celia-oai celia-oai changed the title changes [app-server] make app server not throw error when login id is not found Dec 10, 2025
@celia-oai celia-oai marked this pull request as ready for review December 10, 2025 18:35
@celia-oai celia-oai requested review from jif-oai and removed request for pakrym-oai December 10, 2025 18:35
Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

hopefully two qqs

timeout(DEFAULT_READ_TIMEOUT, mcp.initialize()).await??;

let request_id = mcp
.send_cancel_login_account_request(CancelLoginAccountParams {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just so I'm clear: we're sending a cancel request, but we never send send_login_account_chatgpt_request()? Is that a realistic flow or is this just the best we can do for this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing this test as it causes more confusion than needed haha. it's not a realistic workflow but we don't error out if there's a race condition for login finishes before canceling

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also deleting login_and_cancel_chatgpt v1 test which is flaky. should be safe since all clients have migrated off of this.

@celia-oai celia-oai merged commit 7cabe54 into main Dec 11, 2025
26 checks passed
@celia-oai celia-oai deleted the dev/cc/fix-cancel branch December 11, 2025 00:19
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants