Skip to content

VS Code: delivered message remains pending locally and replays with the same clientId after reload #50107

Open

Description

@Struder659

What version of the IDE extension are you using?

26.5928.31416 (win32-x64)

What subscription do you have?

Signed in with ChatGPT. Subscription tier not included in this report.

Which IDE are you using?

Visual Studio Code 1.140.0, local Windows workspace.

What platform is your computer?

Windows x64, OS build 26100 (10.0.26100.0).

What issue are you seeing?

Messages sometimes appear to disappear into an invisible queue after the previous assistant answer has finished. Reloading the window can replay a message that was already delivered and answered.

Local inspection confirmed a duplicate with the same clientId, not just identical text:

Time on October 2, 2026 (UTC+05:00) Observation
02:35:19 The original message appeared in the thread history and received an assistant response.
During diagnosis before reload The extension's persisted queued-follow-ups still contained that message as submission.status=pending, submissionIntent=send-now. Its queue ID matched the delivered user item's clientId.
02:40:00 The extension restarted after a window reload.
02:40:08 The same message was delivered in a new turn with the same clientId as the original delivery.
After replay The stale queue entry was no longer present for this thread.

The extension's local pending queue and the already delivered history had diverged. The exact cause of that divergence is not yet established.

What steps can reproduce the bug?

Observed sequence; not yet a deterministic reproduction on a clean installation:

  1. Send normal messages in the Codex sidebar. The initial symptom recurred approximately every one or two messages.
  2. After an assistant answer finishes, send another message. It can remain pending without a visible queue entry.
  3. In the affected case, verify that a message already present in history is still in persisted queued-follow-ups as pending.
  4. Reload the VS Code window.
  5. Observe whether that message starts another turn. Compare the two user items' clientId values.

Important qualification: the confirmed replay occurred during local debugging with modifications to the installed extension. First, the internal bridge serializer was changed to return JSON null for an undefined handler result. Then optimistic local acceptance was disabled for new normal-composer submissions, using the existing direct submission path. Existing persisted queue entries were left unchanged. The original hidden-queue symptom predates these changes, but the replay has not been independently reproduced on an unmodified installation. Please account for this when triaging.

What is the expected behavior?

Before retrying a persisted pending submission after reload, reconcile its client message ID against accepted history. A delivered and answered message should not launch another turn. Unresolved submissions should be visible and recoverable in the UI.

Additional information

A separate error was observed in the internal response bridge:

Failed to release queued message send lock
SyntaxError: "undefined" is not valid JSON

A void handler result was serialized with JSON.stringify, while the webview attempted to parse the missing JSON value. Changing empty responses to JSON null removed that exception, but did not resolve the hidden-queue symptom.

After bypassing optimistic local acceptance, seven short test messages were delivered. This is not a validated complete fix: sent text subsequently reappeared in the composer. That behavior could be a side effect of the modification.

Related: #14127, which is closed and reports stuck-thread recovery after a crash. This report adds evidence of replay of an already delivered client message ID; it does not establish the same root cause.

This report was prepared with Codex assistance from local logs and persisted state. Private message text, account IDs, message IDs, local paths, credentials, raw databases, and extension bundles are intentionally omitted.

Activity

  1. added
    bug
    extension
    windows-os
    session
    on Oct 1, 2026
  2. tranquocthien commented on Oct 3, 2026

    @tranquocthien

    The Codex agent is extremely poor in quality. The team responsible for developing the agent has been pushing bugs into production, which is directly affecting users. I strongly recommend that the team’s development quality and release process be taken seriously and addressed accordingly.

  3. tranquocthien commented on Oct 3, 2026

    @tranquocthien

    The Codex development team is completely ignoring this issue and treating this serious problem as if it were nothing. Even when users directly report it, they act as though it’s not a big deal. A bug this serious has been left unresolved for an entire day without any meaningful response or fix. This is extremely disappointing and unacceptable.

  4. tranquocthien commented on Oct 3, 2026

    @tranquocthien

    The Codex agent is extremely poor in quality. The development team appears to be relying heavily on AI-generated code, yet bugs are still being pushed into production without adequate testing, directly affecting users.

    Are developers simply generating code with AI and not testing it properly? Even if AI is involved, the responsibility still lies with the development team to review, validate, and thoroughly test the code before releasing it to production. At this point, this looks less like an AI problem and more like a lack of proper engineering discipline and quality control.

    Please take the quality of the development team, code review process, testing, and release procedures seriously. Users should not be the ones discovering basic bugs in production.

  5. tranquocthien commented on Oct 3, 2026

    @tranquocthien

    I strongly urge OpenAI’s CEO and leadership team to address this development team directly and reinforce the importance of engineering quality and accountability.

    The team needs to establish and strictly follow a proper development workflow, including code review, testing, QA, regression testing, and production release controls. Users should not have to bear the consequences of bugs that could have been caught before deployment.

    Whether AI is being used to generate code or not, the responsibility ultimately remains with the engineering team to review, test, and validate the code before it reaches production. Please take this issue seriously and ensure that proper engineering and QA processes are put in place so that users are not effectively being used as the final testing layer.

  6. panthernet commented on Oct 3, 2026

    @panthernet

    I completely agree with the previous statements. The quality of VSCode plugin is totally unacceptable. Message bugs have been plagueing this plugin for MONTHS. Tons of different message bugs that literally RUIN dev process with sudden outdated instructions popup in chats and mess the code.

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

    bugextensionsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions