Skip to content

Commit 22e692b

Browse files
authored
fix(frontend): Update in-view run with real-time updates (#10839)
- Resolves #10838 ### Changes 🏗️ - Update `selectedRun` with received graph execution update if applicable ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Agent outputs appear in real-time
1 parent 901e9eb commit 22e692b

File tree

1 file changed

+4
-0
lines changed
  • autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView

1 file changed

+4
-0
lines changed

autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/OldAgentLibraryView.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ export function OldAgentLibraryView() {
290290
}
291291

292292
agentRunsQuery.upsertAgentRun(data);
293+
if (data.id === selectedView.id) {
294+
// Update currently viewed run
295+
setSelectedRun(data);
296+
}
293297
},
294298
);
295299

0 commit comments

Comments
 (0)