Skip to content

caps : recheck typed content if template checks for string - #28511

Merged
CISC merged 1 commit into
masterfrom
cisc/jinja-caps-typed-content-recheck
Sep 7, 2026
Merged

caps : recheck typed content if template checks for string#28511
CISC merged 1 commit into
masterfrom
cisc/jinja-caps-typed-content-recheck

Conversation

@CISC

@CISC CISC commented Sep 6, 2026

Copy link
Copy Markdown
Member

Overview

Fixes #28509

Additional information

A template may check if content is a string before checking for an array, in which case supports_typed_content will never be set even though it may very well support it.

In this case, run another check to see if it will attempt to access the array if content is not a string.

Requirements

@CISC
CISC requested review from aldehir, ngxson and pwilkin September 6, 2026 18:50
@github-actions github-actions Bot added the jinja parser Issues related to the jinja parser label Sep 6, 2026
@CISC
CISC merged commit 5202104 into master Sep 7, 2026
23 of 26 checks passed
@CISC
CISC deleted the cisc/jinja-caps-typed-content-recheck branch September 7, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jinja parser Issues related to the jinja parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eval bug: Gemma 4 26B-A4B Template Misclassified as supports_typed_content = false

3 participants