Skip to content

Queued messages can get stuck while an inactive session remains in Running state after completion #3525

Closed

Description

@zahidma-91

Short summary

No response

Affected version or release

v1.1.15

Installation context

GitHub Copilot desktop app for Windows

What happened?

Queued messages intermittently get stuck because the active session continues to show Running even though no work appears to be happening.

The queued message remains visible in the queue and is not sent automatically. Clicking Send now fails with this error:

Queued message was not sent. Check the updated queue and try again.

The session remains in the running state, leaving no working way to dispatch the queued message.

Steps to reproduce

  1. Open a session in the GitHub Copilot desktop app.
  2. While the session is running, queue another message.
  3. Wait until the active session appears to have finished all work.
  4. Observe that the session still shows Running even though nothing is happening, and the queued message is not sent.
  5. Open the queue and click Send now.
  6. Observe the error: Queued message was not sent. Check the updated queue and try again.

The issue occurs intermittently.

Expected behavior

When the active session finishes, its status should change from Running and the next queued message should be sent automatically. If a message remains queued, clicking Send now should dispatch it successfully.

Additional context

  • Platform: Windows
  • Frequency: Intermittent
  • A screenshot of the Send now error is available and will be attached to this issue.
Image

Activity

  1. added theissue type on Sep 4, 2026
  2. likamrat commented on Sep 8, 2026

    @likamrat

    Additional sanitized evidence from Windows Copilot app v1.1.15: this also affects a coordinated worker sending results to an apparently idle coordinator.

    Sender / receiver / host correlation

    • The coordinator emitted a final response, and the host's keep-awake tracker logged Session became idle.
    • Starting about 90 seconds later, a worker sent six progress updates over approximately 32 minutes. Every call explicitly used send_session_message with delivery_mode: "immediate"; the optional mode argument was omitted. All calls succeeded and reported that the message was sent immediately.
    • None of those six updates appeared as input events in the coordinator's session journal during the interval. They appeared in the app's queued-message UI instead.
    • There was no outstanding coordinator tool call spanning this interval. No automatic incomplete-task continuation prompts occurred in the captured interval; recurring coordinator automation was disabled.
    • About 45 minutes after the idle event, a manual Send now attempt failed with the error in this issue. The host log records the send-now request, but the available trace does not expose a specific rejection reason.
    • The six queued progress entries were then manually removed. A subsequent new final handoff reached the coordinator approximately four seconds after being sent. The deleted progress entries are not counted as delivered, and the final handoff was not one of those earlier six entries.

    The worker continued its own work; this was a handoff/delivery stall, not evidence that its implementation process had stopped. The trace locates a discrepancy between accepted/immediate-send acknowledgments, receiver input consumption, and queue state. It does not establish which internal busy/drain flag, stale item, or race is responsible.

    Useful regression coverage / diagnostics

    1. Immediate worker input to an idle coordinator, including when the destination session is not the selected view.
    2. Busy-to-idle transition with pending inputs: automatic drain without manual deletion.
    3. Send now on an existing queued item: either dispatch or return the actual blocking reason while preserving the message.
    4. Distinguish accepted, queued, dispatched, and consumed state rather than reporting queued input as immediately sent.
    5. Repeated delivery/recovery must not lose or duplicate inputs.

    No private repository names, session IDs, filesystem paths, prompts, screenshots, credentials, or raw logs are included here. The current published stable release remains v1.1.15; its related queue-fix release notes do not establish that this recurrence is fixed.

  3. sebastienros commented on Sep 8, 2026

    @sebastienros

    Seeing almost all sub-sessions triggering this state on the parent one now. And the parent get a red icon

    Image

    Seems to have started with 1.1.15

  4. likamrat commented on Sep 8, 2026

    @likamrat

    yeah seeing similar things

  5. voyager163 commented on Sep 10, 2026

    @voyager163

    Seeing the same error "Queued message was not sent. Check the updated queue and try again." in the latest version 1.1.16 and using GPT Astra.

  6. rumukh commented on Sep 11, 2026

    @rumukh

    Additional observed reproduction on Windows, Copilot App 1.1.17 / bundled CLI 1.0.83, on 2026-09-11. This matches the accepted-but-undelivered queue failure here and recurred shortly after a successful targeted runtime restart.

    Environment

    • Windows 11, OS version 10.0.26200.
    • Desktop executable ProductVersion and FileVersion: 1.1.17. The bundled CLI version is a separate value: 1.0.83.
    • Long-lived local sessions: a general-chat coordinator and a folder-backed project session, with cross-session handoffs. The project session was in autopilot mode.
    • Session names, IDs, user paths, project content, and raw conversation logs are omitted below.

    Observed reproduction sequence

    This is a repeatedly observed sequence, not a deterministic minimal trigger.

    1. Let an existing session finish a response or report session.task_complete.

    2. Send a follow-up from the composer, or send a cross-session message with delivery_mode: "immediate".

    3. The sender reports success (Message sent immediately ...), but the receiver records neither a corresponding user.message nor a new assistant turn. In the UI, the input remains queued.

    4. Trying Send now can show:

      Queued message was not sent. Check the updated queue and try again.
      

      This error was captured in the earlier September 9 occurrence; the September 11 recurrence was additionally traced through sender results and receiver journals.

    5. The CLI process remains alive. For the affected project session, get_sessions_status still reported is_running: true, mode: autopilot, awaiting_user_input: false, and awaiting_plan_approval: false, despite its last recorded task having completed hours earlier.

    6. With explicit user approval, restart only the identified affected CLI runtime, reopen/resume the same saved session, and resend one control message. A fresh process starts, the receiver records input and a new turn, and the agent actually responds and executes tools.

    7. After the coordinator subsequently finishes another response, a new immediate message can become stuck again. A second targeted reconnect was required in this case.

    Correlated September 11 timeline (UTC)

    Time Observation
    01:00:36.633 Project session B records session.task_complete, followed by assistant.turn_end.
    09:21:31.208 Coordinator A records its last assistant.turn_end before the first observed stall.
    20:29-20:31 Both old CLI processes are alive; receiver journals still end at the times above. Fresh immediate-send probes report success without appearing in either receiver journal. B is still reported as Running, without a pending user-input or plan-approval request.
    20:49:39.109 / 20:49:40.098 After targeted runtime recovery, A and B respectively record new assistant.turn_start events. Both subsequently send explicit acknowledgements that they are processing again.
    21:01:35.292 A finishes another response. Its agentStop and sessionEnd hooks subsequently finish; the final hook event is at 21:01:35.429.
    Shortly after 21:03 Another immediate message to A reports success, but does not appear in A's journal. Its journal remains at 123,605,533 bytes, with last filesystem write at 21:01:35.5377745 UTC. A's CLI process is still alive and has only its console-host child, not a running task process.
    21:05:04.059 / 21:05:04.069 After reconnecting only A's runtime again, the resent message appears as user.message, followed by assistant.turn_start. The requested action is subsequently performed and persisted.

    The recurrence matters: one successful recovery and acknowledgement did not establish that subsequent queued inputs would drain normally.

    Additional control-plane evidence from September 9

    An earlier occurrence, using bundled CLI 1.0.83-5, showed this distinction in the host log:

    session.send RPC completed ... message_id="<redacted>" elapsed_ms=1
    cross-session chat message accepted ...
    session liveness probe completed ... probe_method="session.mode.get" status="responsive"
    

    Nevertheless, the receiver journal remained unchanged. A mode change did appear as session.mode_changed, but no new input/turn followed. The liveness probe therefore showed that the control/RPC path was responsive, not that the input-processing loop could advance.

    Expected behavior and useful regression coverage

    • A completed session should transition correctly and drain pending input without manual deletion or a runtime restart.
    • Distinguish accepted, queued, delivered, and consumed. A sender should not report immediate delivery when the receiver has not consumed input.
    • Detect a stalled input/turn loop even when session.mode.get succeeds and the process is alive.
    • Exercise repeated idle -> send -> process -> idle cycles after recovery, including cross-session immediate sends and general-chat/folder-backed sessions.
    • Preserve queued input across recovery and make replay/consumption observable, without duplicating operations.

    Scope and workaround caveats

    The observed workaround was a targeted runtime reconnect followed by an explicit resend, not proof that the original queued messages were automatically recovered. This report does not claim permanent message loss, exactly-once replay, a specific lock/network/model cause, or that killing a shared runtime is generally safe. One project CLI process hosted multiple sessions, so blindly killing all Copilot processes is especially inappropriate.

    Related: #3564 was closed as fixed in v1.1.16, but these symptoms persist in the environment above. #3590 contains related accepted-send/receiver-journal evidence; this comment specifically adds the two-session recovery and rapid recurrence on September 11.

    No raw debug bundle or screenshots containing private prompts/paths are attached.

  7. rumukh commented on Sep 12, 2026

    @rumukh

    Additional evidence for this stuck-queue issue, following the September 10 observed repro in #3590: the same affected session remains stalled more than 50 hours later, with the original CLI process still alive. The user currently reports many queued messages visible in the affected session.

    This is newly collected persistence evidence for the same occurrence, not a claim of a second independently triggered incident or a deterministic minimal trigger.

    The visible backlog is user-reported; the available diagnostic status API does not expose its count or contents, so no exact queue length is claimed. This report concerns a queue that is not draining, not a claim that those visible queued messages have disappeared.

    Environment

    • GitHub Copilot desktop app 1.1.17, confirmed from the running desktop executable's ProductVersion.
    • Bundled CLI 1.0.83, confirmed from the running runtime's installation path.
    • Windows 11 Enterprise, version 10.0.26200.
    • Local Git-worktree session, interactive mode.
    • Inspection: 2026-09-12 22:26-22:28 UTC (September 13 locally).

    Observed repro and new evidence

    1. The receiver finishes its assistant response and final external tool request.
    2. Its journal records assistant.turn_end, followed by successful agentStop and sessionEnd hooks with reason complete.
    3. Another session calls send_session_message with delivery_mode: "immediate". The tool returns success and says the message was sent immediately.
    4. The receiver records no corresponding user.message or subsequent assistant turn.
    5. More than two days later, inspect the same receiver: it still reports Running, its original runtime is alive, and its journal has not advanced. The user reports many messages still queued in the UI.

    The original send and completion were independently re-read from the sender journal during this follow-up, rather than inferred solely from the previous issue comment.

    UTC timestamp Evidence
    2026-09-10 19:41:02.076 Receiver's final external tool request completes successfully.
    2026-09-10 19:41:04.848 Final assistant message, with no tool requests.
    2026-09-10 19:41:04.850 assistant.turn_end.
    2026-09-10 19:41:04.866-19:41:04.875 sessionEnd hook starts with reason complete and finishes successfully.
    2026-09-10 21:04:47.210 Sender starts the immediate cross-session send.
    2026-09-10 21:04:48.654 Sender records success: true and Message sent immediately to session '<redacted>'.
    2026-09-12 22:27:09 Receiver journal is still exactly 70,242,310 bytes, with filesystem last-write time 2026-09-10 19:41:04.9879987 UTC. Its final event remains the successful hook completion above.

    A fresh get_sessions_status snapshot reports:

    {
      "is_running": true,
      "mode": "interactive",
      "awaiting_user_input": false,
      "awaiting_plan_approval": false
    }

    A read-only inspection of the app's persisted session row independently shows is_running = 1, was_interrupted = 0, and no interruption reason. The original CLI runtime and its desktop parent are still alive; the CLI's only direct child is its console host, not a task subprocess.

    Diagnosis and expected behavior

    The supported failure boundary is successful sender acknowledgement without observable receiver input/turn ingestion, together with a stale Running state after completed turn hooks. The user-visible backlog is consistent with stalled queue draining. This is not established as a CLI process crash or a pending user/plan approval.

    The app should reconcile completed/stalled sessions, distinguish accepted or queued input from delivered input, and retain a recoverable pending message until consumption can be observed. A regression scenario should cover a long-lived interactive worktree session completing a turn, receiving an immediate cross-session follow-up, and transitioning into a new durable input/turn rather than remaining indefinitely Running.

    No new probe message, restart, cancellation, database edit, queue send/clear, or task execution was performed during this inspection. This report does not establish a source-level locking/network cause, permanent message loss after recovery, or whether pending messages survive restart. Only redacted metadata is included; no private prompts, code, user paths, or raw logs are attached.

  8. Chuxel commented on Sep 30, 2026

    @Chuxel
    Contributor

    Resolved in GitHub Copilot app 1.1.24 by the same queue and session-liveness fixes tracked in #4031 (#4031) and #3590 (#3590).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions