docs+milestone updates: finish milestone 2/3 and auth logout#34
docs+milestone updates: finish milestone 2/3 and auth logout#34wauputr4 wants to merge 9 commits into
Conversation
|
@codex review |
There was a problem hiding this comment.
Code Review
This pull request implements the logout functionality by adding a new /auth/logout endpoint and its corresponding handler in auth.rs. It also updates the project documentation and README to reflect the completion of Milestones 2 and 3. Feedback was provided regarding the logout handler's response behavior; it is recommended to return a 401 Unauthorized status instead of a 200 OK when a session token is invalid or already revoked to maintain consistency with other authenticated endpoints.
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
/gemini review |
|
@codex review |
There was a problem hiding this comment.
Code Review
This pull request implements the logout functionality, adding a new API route and database logic to revoke session tokens. It also updates the project documentation and README to reflect the completion of Milestones 2 and 3. Feedback suggests removing hardcoded commit hashes and ephemeral phrases from the documentation to improve maintainability. Additionally, it is recommended to make the logout operation idempotent by returning a success status even if the session has already been revoked, rather than a 401 Unauthorized error.
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64963c0d24
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Update: sudah saya implement perbaikan review yang tersisa.
Commit: Silakan cek review threads; revisi baru sudah di-push sehingga thread lama seharusnya jadi outdated/resolved by context. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2513479da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60d826bf37
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Update: implemented the PR #34 streaming review follow-ups in
Verification is green locally and in CI:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aba5455e67
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7db7f1c070
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let mut content = String::new(); | ||
| if let Some(first_choice) = response.choices.into_iter().next() { | ||
| content = first_choice | ||
| .message | ||
| .and_then(|message| message.content) | ||
| .unwrap_or_default(); | ||
| } |
There was a problem hiding this comment.
Reject chat completions that contain no choices
If the upstream returns HTTP 200 with an empty choices array, this parser falls back to content = "" and the gateway emits a normal successful completion instead of surfacing a provider error. In that scenario clients receive a false-success response (empty assistant message) and cannot distinguish malformed upstream output from a real completion, which can silently corrupt downstream behavior and accounting.
Useful? React with 👍 / 👎.
Summary
POST /auth/logoutendpoint for session revocation.crates/mizan-api/src/auth.rs,crates/mizan-api/src/lib.rs,docs/BACKEND_IMPLEMENTATION_PLAN.md,docs/ISSUE_BACKLOG.md).cargo test --workspace -- --nocapturepass.References
GitHub issues for next milestones