Skip to content

/clear drops custom agent system prompt while keeping agent label in UI #3038

@074cefd2

Description

@074cefd2

Describe the bug

/clear apears to clear the active agent from behaviour but the UI isn't updated to reflect this

Affected version

GitHub Copilot CLI 1.0.39.

Steps to reproduce the behavior

  1. Select a custom agent via /agent
  2. Confirm agent is active — model follows agent-specific workflow instructions
  3. Use /clear to start a new conversation
  4. Note the UI still shows the agent name (e.g. "debug") at the bottom of the chat
  5. Send a message that requires agent-specific behaviour
  6. Note /agent shows the previous custom agent active also but previous behaviour suggests it was reset

Expected behavior

text and /agent menu should reflect active agent. /clear should probably set the agent and the text to default

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:context-memoryContext window, memory, compaction, checkpoints, and instruction loading

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions