Skip to content

[Bug]: Task panel: cancelling tasks doesn't immediately remove them #818

@philnash

Description

@philnash

OpenRAG Version

0.2.0

Deployment Method

uvx (uvx openrag)

Operating System

macOS 26.2

Python Version

3.13.11

Affected Area

Frontend (Next.js UI, components)

Bug Description

Clicking on a task to cancel it results in a toast notification to say that it was successfully cancelled. However, the task remains in the task list and you can click "cancel" again (which causes a toast with an error, saying "task not found"). The task only disappears from the list after a short delay.

Steps to Reproduce

  1. Start uploading documents to knowledge
  2. Open the task sidebar
  3. Cancel a task

Expected Behavior

  • The cancel button should not be clickable again while the task is cancelled
  • Once the task is cancelled it is immediately removed from the task list

Actual Behavior

  • You can click the cancel button many times, causing not found errors
  • The task remains on the page for a short while

Relevant Logs

Screenshots

tasks2.mp4

Additional Context

This seems as though the interface is being periodically re-rendered, which is possibly connected to #817.

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported before.
  • I have provided all the requested information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions