Skip to content

Fix prompt drop when input queue is not yet full at cache reset#484

Merged
leszko merged 1 commit intomainfrom
rafal/fix-prompt-drop
Feb 18, 2026
Merged

Fix prompt drop when input queue is not yet full at cache reset#484
leszko merged 1 commit intomainfrom
rafal/fix-prompt-drop

Conversation

@leszko
Copy link
Copy Markdown
Collaborator

@leszko leszko commented Feb 18, 2026

When reset_cache and lora_scales are popped from self.parameters and the input queue doesn't yet have enough frames, the early return discards those values. On the next iteration init_cache defaults to False (pipeline already prepared), so the pipeline never resets its autoregressive cache and the new prompt has no visible effect from the user's perspective.

Restore reset_cache and lora_scales into self.parameters before the early return so they are applied together with the new prompt once frames are available.

Fixes #476

When reset_cache and lora_scales are popped from self.parameters and
the input queue doesn't yet have enough frames, the early return
discards those values. On the next iteration init_cache defaults to
False (pipeline already prepared), so the pipeline never resets its
autoregressive cache and the new prompt has no visible effect from
the user's perspective.

Restore reset_cache and lora_scales into self.parameters before the
early return so they are applied together with the new prompt once
frames are available.

Fixes #476

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Rafal Leszko <[email protected]>
@leszko leszko merged commit 2ca6a26 into main Feb 18, 2026
6 checks passed
@yondonfu yondonfu deleted the rafal/fix-prompt-drop branch February 18, 2026 16:46
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.

UI prompt box sometimes silently drops promts

1 participant