Skip to content

Duplicated welcome and folder trust prompts shown on every run of Copilot CLI #1295

@Dor-bl

Description

@Dor-bl

Describe the bug

On every run of copilot in a folder, the initial welcome prompt ("Describe a task to get started") and the "Confirm folder trust" UI are both shown twice, one after another.

Screenshot:

Duplicated prompts UI on first and second run

Affected version

GitHub Copilot CLI 0.0.402

Steps to reproduce the behavior

  1. mkdir /tmp/copilot-test && cd /tmp/copilot-test
  2. Run copilot
  3. Observe prompts appear twice
  4. Quit and run copilot again
  5. Observe prompts appear twice again (reproduces on every launch)

Expected behavior

The welcome and folder trust prompts should only appear once per launch; the folder trust prompt should not repeat unless trust is required.

Additional context

  • OS: macOS
  • Copilot CLI version: 0.0.402
  • Terminal: Terminal.app (also occurs on iTerm2)
  • Reproduces consistently on every launch (1st, 2nd, 3rd, etc.)
  • See screenshot for UI details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions