[Bug] Cancelled terminal tool calling status will become ongoing again after chat history restoration · Issue #239 · microsoft/copilot-for-eclipse · GitHub
Skip to content

[Bug] Cancelled terminal tool calling status will become ongoing again after chat history restoration #239

Closed

Description

@ethanyhou

Repro:

  1. Let Copilot using run in terminal tool to do some tasks.
  2. Cancel the terminal tool and make sure the icon is updated to cancel icon
  3. New conversation then restore the conversation
  4. The cancel icon will become rotating again:
Image

Activity

  1. ethanyhou commented on May 20, 2026

    @ethanyhou
    ContributorAuthor

    Copilot analyze:

    The bug is caused by the main conversation cancel call from ChatView.onCancel() was removed:

    ls.destroyConversation(this.conversationId);

    So when you cancel, the live UI still flips to the cancel icon because ActionBar posts TOPIC_CHAT_MESSAGE_CANCELLED, and AgentStatusLabel handles that locally. But the persisted chat history is not updated with a cancelled tool status; it keeps the last stored run_in_terminal status, usually running.

    When restoring history, ChatView.restoreCopilotTurnContent() rebuilds from persisted ToolCallData, calls BaseTurnWidget.appendToolCallStatus(), sees status = running, and AgentStatusLabel.setRunningStatus() starts the spinner again.

    So the root mismatch is: live cancel icon is event-driven UI state, but restore is persistence-driven state, and after b303976 cancellation no longer updates persisted tool status for the main conversation.

  2. changed the title [-][Bug] Cancelled terminal tool calling status will become ongoing[/-] [+][Bug] Cancelled terminal tool calling status will become ongoing again after chat history restoration[/+] on May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions