shivaam opened a new pull request, #70711:
URL: https://github.com/apache/airflow/pull/70711

   Task try history responses can contain duplicate try numbers, non-attempt 
try `0` records, or records that do not match the task currently displayed. The 
UI previously rendered the response directly, allowing attempts to appear 
duplicated or mixed after navigating between tasks.
   
   This change scopes history to the active Dag run, task, and map index; 
removes nonpositive attempts; deduplicates by try number; and treats the 
current task instance as authoritative. Query keys and caching behavior remain 
unchanged.
   
   A focused component regression test covers repeated task switching, 
duplicate and zero tries, mapped task indices, current-attempt precedence, and 
attempt selection.
   
   Validation:
   
   - Focused Vitest: 2 tests passed
   - UI ESLint: passed
   - UI TypeScript check: passed
   - Airflow pre-commit hooks: passed
   - Real UI verification with the issue's Dag and repeated-run workflow
   
   closes: #70696
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Codex (GPT-5)
   
   Generated-by: Codex (GPT-5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to