Skip to content

feat(ai): expose Gemini rate-limit retry metadata - #95

Merged
vitorhugo-dotnet merged 6 commits into
mainfrom
feat/87-assistant-rate-limit-errors
Sep 17, 2026
Merged

vitorhugo-dotnet merged 6 commits into
mainfrom
feat/87-assistant-rate-limit-errors

Conversation

@vitorhugo-dotnet

@vitorhugo-dotnet vitorhugo-dotnet commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Implements the backend portion of #87.

What changed

  • maps Gemini 429 RESOURCE_EXHAUSTED / quota failures to a structured RATE_LIMITED SSE error
  • extracts the provider-provided retryAfterSeconds when Gemini includes a retry delay
  • does not invent a retry delay when the provider omits it
  • keeps non-rate-limit failures as PROVIDER_UNAVAILABLE
  • isolates Gemini-specific error inspection in AssistantProviderErrorMapper
  • keeps the controller responsible only for emitting the mapped SSE payload

Verification

  • TDD RED confirmed before implementation
  • mvn -B -ntp clean verify ✅
  • Qodana ✅

Frontend companion: vitorhugo-dotnet/React-JobApplyTracker#115

@github-actions github-actions Bot added the tests label Sep 17, 2026
@github-actions

Copy link
Copy Markdown

Qodana for JVM

3 new problems were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 1
Mismatched query and update of 'StringBuilder' 🔶 Warning 1
Simplifiable conditional expression 🔶 Warning 1
View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.3.2
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@vitorhugo-dotnet
vitorhugo-dotnet marked this pull request as ready for review September 17, 2026 23:56
@vitorhugo-dotnet
vitorhugo-dotnet merged commit 511d4c0 into main Sep 17, 2026
6 checks passed
@vitorhugo-dotnet
vitorhugo-dotnet deleted the feat/87-assistant-rate-limit-errors branch September 17, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant