Skip to content

fix(ci): add fallback JSON extraction to issue triage workflow#19593

Merged
bdmorgan merged 2 commits intomainfrom
fix/triage-json-parsing-fallback
Feb 20, 2026
Merged

fix(ci): add fallback JSON extraction to issue triage workflow#19593
bdmorgan merged 2 commits intomainfrom
fix/triage-json-parsing-fallback

Conversation

@bdmorgan
Copy link
Copy Markdown
Collaborator

Summary

  • The automated issue triage workflow has been failing since ~Feb 18 due to the model returning bare JSON instead of wrapping it in a markdown code block
  • The CLI captures debug output (telemetry init, YOLO mode messages) alongside the model's JSON response, so raw JSON parsing always fails
  • Previously this worked because the model consistently wrapped its JSON in json blocks, which the markdown fallback handled
  • Adds a third parsing fallback that extracts a labels_to_set JSON object directly from the mixed output

Test plan

  • Verify the workflow succeeds on newly opened issues
  • Confirm the fix handles output with debug lines prefixed before bare JSON
  • Confirm existing markdown-block and raw-JSON parsing paths still work

The Gemini CLI outputs debug lines (telemetry init, YOLO mode) to
stdout that get captured alongside the model response. The parsing
logic handled this when the model wrapped JSON in a markdown code
block, but began failing when the model stopped doing so around
Feb 18. Add a third fallback that extracts a raw JSON object from
the mixed output.
@bdmorgan bdmorgan requested a review from a team as a code owner February 20, 2026 00:50
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 20, 2026

Size Change: -5.47 kB (-0.02%)

Total Size: 24.6 MB

Filename Size Change
./bundle/gemini.js 24.5 MB -5.47 kB (-0.02%)
ℹ️ View Unchanged
Filename Size
./bundle/sandbox-macos-permissive-open.sb 890 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB
./bundle/sandbox-macos-strict-open.sb 4.82 kB
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB

compressed-size-action

@bdmorgan bdmorgan merged commit 99fa700 into main Feb 20, 2026
27 checks passed
@bdmorgan bdmorgan deleted the fix/triage-json-parsing-fallback branch February 20, 2026 01:19
tripleyoung pushed a commit to tripleyoung/gemini-cli that referenced this pull request Feb 27, 2026
tripleyoung pushed a commit to tripleyoung/gemini-cli that referenced this pull request Feb 27, 2026
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.

1 participant