Skip to content

feat(codex): Add reset time display for Codex code review limit#581

Merged
ratulsarna merged 2 commits intosteipete:mainfrom
Q1CHENL:qichen/codex-code-review-reset-time
Mar 22, 2026
Merged

feat(codex): Add reset time display for Codex code review limit#581
ratulsarna merged 2 commits intosteipete:mainfrom
Q1CHENL:qichen/codex-code-review-reset-time

Conversation

@Q1CHENL
Copy link
Contributor

@Q1CHENL Q1CHENL commented Mar 20, 2026

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b047704911

ℹ️ 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".

Comment on lines 166 to 168
let patterns = [
#"Code\s*review[^0-9%]*([0-9]{1,3})%\s*remaining"#,
#"Core\s*review[^0-9%]*([0-9]{1,3})%\s*remaining"#,
]

Choose a reason for hiding this comment

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

P2 Badge Restore Core review fallback pattern

parseCodeReviewRemainingPercent used to accept both Code review and Core review, but this commit drops the Core review regex. If the dashboard text still emits that variant (which the previous fallback indicates was seen in practice), codeReviewRemainingPercent becomes nil, and downstream UI/CLI paths that gate on this field stop showing the Code review metric/reset entirely.

Useful? React with 👍 / 👎.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Q1CHENL Q1CHENL force-pushed the qichen/codex-code-review-reset-time branch from b047704 to 952bd58 Compare March 20, 2026 12:58
@Q1CHENL
Copy link
Contributor Author

Q1CHENL commented Mar 20, 2026

Is this Core review just a typo?


private static func isCodeReviewLimitLine(_ line: String) -> Bool {
let lower = line.lowercased()
guard lower.contains("code review") else { return false }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this matcher handle the same label variants as parseCodeReviewRemainingPercent()? I’m wondering what happens if the dashboard text comes through as Core review here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok cool i patched a fix for that since core review is intentional, not a typo

@ratulsarna ratulsarna merged commit 270bd52 into steipete:main Mar 22, 2026
4 checks passed
@ratulsarna
Copy link
Collaborator

Thanks @Q1CHENL !

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.

2 participants