Conversation
… same underlying task to prevent MCP library from screaming at us
…t takes potential errors in to account in large folders and in the case of inaccessible network drives
Switch Gemini provider authentication from query parameters (`?key=...`) to the `x-goog-api-key` HTTP header in alignment with Google Gemini API guidelines. - Override `build_headers` in `GeminiProvider` to populate `x-goog-api-key` and suppress `Authorization: Bearer`. - Remove `key` query parameter construction in `gemini_complete` and `gemini_stream` domain adapters. - Add test coverage in `tests/helpers/test_llms_gemini_auth.py`. Co-authored-by: cecli (gemini/gemini-3.6-flash)
feat(gemini): authenticate using x-goog-api-key header
When using Gemini models a 429 response often includes a retryDelay in the JSON. This is typically o(10) seconds, sometimes more. cecli uses a blind backoff computation. This can result in denial of service when using Gemini models. To correct this, respect the retryDelay delivered in Gemini model responses. - Add `_extract_gemini_retry_delay` helper to `Model` class in `cecli/models.py` to extract suggested `retryDelay` (in seconds) from 429 error response payloads. - Update `send_completion()` and `simple_send_with_retries()` to prioritize Gemini's suggested retry delay over blind unilateral backoff multipliers when available. - Add unit tests in `tests/unit/test_gemini_retry_backoff.py` covering valid retryDelay extraction, JSON string payloads, non-429 responses, and missing details fields. Co-authored-by: cecli (gemini/gemini-3.6-flash)
Co-authored-by: cecli (gemini/gemini-3.6-flash)
Co-authored-by: cecli (gemini/gemini-3.6-flash)
- extract retry delay via Gemini payload and HTTP headers - add tests for same Co-authored-by: cecli (gemini/gemini-3.7-flash)
feat: extract and use retry delay from Gemini 429 error payloads
CLI-60: Suppress release link auto-open when --yes-always is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses:
Includes:
/open <name> <path>command to open ad-hoc workspace subagentsBroadcasttool to allow for inter-agent communicationwaitparameter toYieldtoolpersistparameter toDelegatetoolGreptoolpip,pipx, anduvaware--max-tool-callsargument--yes-always-commandsto also suppress agent mode command confirmations