The GitHub Actions job "Backport Checks" on texera.git/feat/ai-workflow-fixer 
has failed.
Run started by GitHub user pedroreyesalvarado (triggered by pedroreyesalvarado).

Head commit for run:
e35d09725541b84bf983f44fd173b31d0f434c37 / Pedro <[email protected]>
fix(frontend): ask for whole indented lines instead of guessing indentation

@kunwp1: the previous fix only covered a multi-line original. A single-line one
whose suggestion already carried absolute indentation was still indented twice
-- `return` landing at 20 spaces instead of 12 -- because the result depended on
which convention the model happened to use and the prompt never stated one.

So the prompt states one. original_snippet and suggested_snippet must be whole
lines, copied from the start of a line with the leading indentation included,
each already at the column it should have. startsAtLineBoundary refuses a reply
that quotes from mid-line, checking every occurrence rather than the first,
since one mid-line match is enough to make the result depend on a guess.

replaceAllIndented is then just a replacement, and is named replaceAll. The last
heuristic in the file is gone.

Verified against claude-haiku-4.5 through the local LiteLLM proxy, on the three
code-change shapes (KeyError, TypeError cast, NaN guard). The new prompt: 28 of
28 replies accepted. The old prompt, as a control: 11 of 12 -- and the one
refusal is exactly a mid-line snippet with no indentation, the case this is
about. The model's own multi-line guard applies to 0/4/8/12 nesting, valid
Python, nothing doubled.

The test fixture had to change with it, which says the same thing: its
original_snippet was quoted mid-line, so the contract now turns it away.

Co-Authored-By: Claude Opus 5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/39988235356

With regards,
GitHub Actions via GitBox

Reply via email to