v1.3.5: Model-Validated Context Caching & Resilience Fallback
What's Changed
- Model-Validated Context Caching: Prevents
INVALID_ARGUMENT400 errors when switching Gemini models (e.g. fromgemini-3.5-flashtogemini-3.6-flash). Context cache display names are now model-scoped (repo-cache-{repo}-{model}) and existing server cache handles are validated against the requested model before reuse. - Resilient Generation Fallback: If calling
generate_contentwith a cached content handle fails for any reason, the action logs a warning and automatically falls back to direct context generation without interrupting the CI pipeline. - Vertex AI / Publisher Prefix Normalisation: Enhanced
_normalize_model_name()to handle Vertex AI / Agent Platform resource strings (publishers/google/models/...). - Dogfooding Workflows: Upgraded repository GitHub Actions workflow configurations to
gemini-3.6-flash.
Full Changelog: v1.3.4...v1.3.5