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

Head commit for run:
b3f3606dac0d51e67840995d089d49ab640cb105 / Pedro <[email protected]>
fix(frontend): decide the AI Fix tab from the map, not a remembered key

Found by running the stack, not by the tests.

The tab never came back when an operator failed twice. The console stream fed a
`distinctUntilChanged` keyed on operator + whether the tab is wanted, but
rerenderResultPanel writes to the same map without going through that pipe. So:
the operator fails (key `true`), a new run starts, the rerender drops the tab --
and the pipe still remembers `true`. The next traceback maps to `true` again, is
read as "no change", and the tab stays gone. That is the fix-and-re-run loop
this panel exists for.

The live trace, with the component instrumented in the browser:

    rerenderResultPanel()
    syncAiFixFrame(offer=false)      <- run starts, tab dropped
    STREAM emits -> key=op:true      <- traceback arrives, key is right
                                     <- syncAiFixFrame never called

syncAiFixFrame now compares against the entry that is actually in the map,
including which operator it points at, and reports whether it changed anything
so the caller can skip change detection. Nothing is remembered outside the map,
so it no longer matters which path wrote to it last.

The existing test passed because it drives the stream directly, with no rerender
interleaved -- distinctUntilChanged's first emission always gets through. The
new test follows the live trace instead, and fails without this change.

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

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

With regards,
GitHub Actions via GitBox

Reply via email to