Skip to content

[BUG] V2.1.195 Entering a queued prompt then cancelling still appears in Claude's work context #72154

Description

@EmilSabri

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

While a previous prompt was being worked on and another prompt is entered it gets added to the work queue. Cancelling that queued prompt still appeared in Claude's context / task list and Claude worked on it.

I might be wrong on the functionality, but I thought before when pressing ESC to cancel a previous queued prompt it would cancel the most recently added prompt.

In the below image we see I have an example prompt entered about ACs. I then followed up about Africa and then pressed ESC which would have removed the Africa AC request.

Image

What Should Happen?

When pressing ESC to cancel a queued prompt it should remove the most recently added prompt from the prompt task queue.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in a terminal
  2. Give it a prompt
  3. While the prompt is being worked on, enter an additional prompt
  4. Press esc

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.195 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions