Skip to content

Fix output and files buttons on interact history#1686

Merged
deep1401 merged 2 commits intomainfrom
fix/interactive-history
Mar 30, 2026
Merged

Fix output and files buttons on interact history#1686
deep1401 merged 2 commits intomainfrom
fix/interactive-history

Conversation

@deep1401
Copy link
Copy Markdown
Member

@deep1401 deep1401 commented Mar 30, 2026

Fixes #1670

@paragon-review
Copy link
Copy Markdown

Paragon Summary

This pull request review identified 1 issue across 1 category in 1 file. The review analyzed code changes, potential bugs, security vulnerabilities, performance issues, and code quality concerns using automated analysis tools.

This PR fixes the output and files buttons in the interactive history view so they behave correctly when users review past interactions. The impact is improved usability and more reliable access to interaction outputs and associated files.

Key changes:

  • Fixed the output button behavior in interact history
  • Fixed the files button behavior in interact history
  • Updated src/renderer/components/Experiment/Interactive/Interactive.tsx
  • Improved interaction/history component handling for these actions

Confidence score: 5/5

  • This PR has low risk with no critical or high-priority issues identified
  • Score reflects clean code review with only minor suggestions or no issues found
  • Code quality checks passed - safe to proceed with merge

1 file reviewed, 1 comment

Severity breakdown: Low: 1


Tip: @paragon-run <instructions> to chat with our agent or push fixes!

Dashboard

taskName={taskToDelete?.name ?? null}
onConfirm={handleConfirmDeleteTask}
/>
<ViewOutputModalStreaming
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Stale modal state can outlive deleted history jobs

Stale modal state can outlive deleted history jobs. Users may open an orphaned modal after the row disappears. Clear modal state when the job is gone.

View Details

Location: src/renderer/components/Experiment/Interactive/Interactive.tsx (lines 1227)

Analysis

Stale modal state can outlive deleted history jobs. Users may open an orphaned modal after the row d

What fails The component keeps modal state even after the referenced job disappears.
Result The modal can stay open even though the underlying job is no longer present in historyJobs.
Expected The modal state should reset or close when the referenced history job no longer exists.
Impact Users can be left viewing output or files for a deleted or missing job, causing a broken interaction and confusing UI state.
How to reproduce
Open a history job's output or file browser, then remove that job from the history list. Observe the modal remains mounted with stale state.
AI Fix Prompt
Fix this issue: Stale modal state can outlive deleted history jobs. Users may open an orphaned modal after the row disappears. Clear modal state when the job is gone.

Location: src/renderer/components/Experiment/Interactive/Interactive.tsx (lines 1227)
Problem: The component keeps modal state even after the referenced job disappears.
Current behavior: The modal can stay open even though the underlying job is no longer present in historyJobs.
Expected: The modal state should reset or close when the referenced history job no longer exists.
Steps to reproduce: Open a history job's output or file browser, then remove that job from the history list. Observe the modal remains mounted with stale state.

Provide a code fix.


Tip: Reply with @paragon-run to automatically fix this issue

@aliasaria aliasaria self-requested a review March 30, 2026 15:38
@deep1401 deep1401 merged commit 7ba72a9 into main Mar 30, 2026
5 checks passed
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.

"Output" and "Files" buttons don't work on Interactive HIstory list

2 participants