Skip to content

[bug]: Clearing intermediates while canvas generations in progress borks canvas #4857

@psychedelicious

Description

@psychedelicious

Is there an existing issue for this?

  • I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

No response

What version did you experience this issue on?

main

What happened?

Clearing intermediates while canvas is generating borks the canvas kinda - it resets the canvas, but the canvas queue items continue to run.

Hard way to fix: When clearing intermediates, cancel any pending canvas related batches.
Easy way to fix: Disable the clear intermediates button while the queue has items in it.

Suggest the easy way.

Good first issue:

  • In invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsClearIntermediates.tsx, use useGetQueueStatusQuery() to get the queue status
  • If there are any in_progress or pending items, disable the button
  • Also do an early return in handleClickClearIntermediates() to be safe

Screenshots

No response

Additional context

No response

Contact Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions