Skip to content

Async streaming tasks fix#29

Merged
declan-scale merged 3 commits into
mainfrom
declan-scale/streaming-tasks-fix
Oct 31, 2025
Merged

Async streaming tasks fix#29
declan-scale merged 3 commits into
mainfrom
declan-scale/streaming-tasks-fix

Conversation

@declan-scale
Copy link
Copy Markdown
Collaborator

@declan-scale declan-scale commented Oct 31, 2025

Changes

  • Make GET /tasks order by desc instead of asc (got reverted somehow)
  • Remove redundant QueryProvider (already in layout.tsx)
  • Default stale time is infinity to limit redundant calls (open to being a but smarter about this)
  • Added updateTaskInInfiniteQuery to update the relevant caches both onTaskChange for the SSE side and when we create a task
    • This was the cause of a couple issues:
      1. the SSE stream being cut on the FE because of rerenders
      2. fetching the whole task list after landing on a specific task page would throw an error
  • Updated some query keys to distinguish between individual tasks and all

@declan-scale declan-scale requested review from MichaelSun48 and Copilot and removed request for Copilot October 31, 2025 17:52
Comment thread agentex-ui/app/agentex-ui-root.tsx
Copy link
Copy Markdown
Contributor

@MichaelSun48 MichaelSun48 left a comment

Choose a reason for hiding this comment

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

Just that one comment, but I could totally just be missing something

@declan-scale declan-scale merged commit 6560912 into main Oct 31, 2025
3 checks passed
@declan-scale declan-scale deleted the declan-scale/streaming-tasks-fix branch October 31, 2025 19:06
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.

2 participants