Skip to content

Ctrl+d enqueued prompts execute in reverse order (LIFO instead of FIFO) #1407

@mpbarbosa

Description

@mpbarbosa

Describe the bug

When using the Ctrl+d hotkey to enqueue multiple prompts in GitHub Copilot CLI, the execution order is LIFO (Last In, First Out) instead of the expected FIFO (First In, First Out) queue behavior.

COPILOT_CLI_BUG_REPORT_QUEUE_ORDER.md

Affected version

GitHub Copilot CLI 0.0.406.

Steps to reproduce the behavior

Steps to Reproduce

  1. Open GitHub Copilot CLI in terminal
  2. Enter a prompt: Do it: /path/to/file1.log
  3. Press Ctrl+d to enqueue (don't press Enter)
  4. Enter another prompt: Do it: /path/to/file2.log
  5. Press Ctrl+d to enqueue
  6. Enter a third prompt: Do it: /path/to/file3.log
  7. Press Ctrl+d to enqueue
  8. Press Enter to submit and start execution
  9. Observe execution order

Result: Prompts execute in reverse order (3 → 2 → 1)

Expected behavior

Expected Behavior

When enqueuing prompts with Ctrl+d, they should execute in FIFO order:

User actions:
1. Type "Do it: file1.log" + Ctrl+d (enqueue)
2. Type "Do it: file2.log" + Ctrl+d (enqueue)
3. Type "Do it: file3.log" + Ctrl+d (enqueue)

Expected execution order:
1. "Do it: file1.log" (first enqueued)
2. "Do it: file2.log" (second enqueued)
3. "Do it: file3.log" (third enqueued)

This is standard queue behavior (FIFO) as implied by the term "enqueue".

Additional context

Session Context

This behavior was observed during a workflow analysis session where multiple log files needed to be processed in sequence:

Enqueued prompts (in order):

  1. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/EXTRACTED_ISSUES.md
  2. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step0b_copilot_bootstrap_docs_20260210_221430_21936.log
  3. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step2_copilot_consistency_analysis_20260210_222430_24764.log
  4. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step5_copilot_directory_validation_20260210_225028_34118.log
  5. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step8_copilot_test_analysis_20260210_225304_05334.log
  6. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step9_copilot_dependency_analysis_20260210_225759_43390.log
  7. Do it: /home/mpb/Documents/GitHub/guia_turistico/.ai_workflow/logs/workflow_20260210_221410/step3_copilot_script_validation_20260210_223930_74349.log

Expected execution order: EXTRACTED_ISSUES → step0b → step2 → step5 → step8 → step9 → step3

Actual execution order: step3 → step9 → step8 → step5 → step2 → step0b → EXTRACTED_ISSUES

This caused the workflow steps to be executed out of logical order.


Environment

  • OS: Linux
  • Terminal: (user's terminal environment)
  • GitHub Copilot CLI Version: 0.0.406
  • Session ID: b5f10731-c0c9-4d94-a90a-c4a3829ef51f
  • Date: 2026-02-11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions