Skip to content

[Bug]: #30547

Open
Open

Description

@zuraHQ

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

Send messages to trigger queue
Switch model before new queue message is being sent
wait for queue message sent

Expected behavior

Queue messages are sent to new model that i picked from model dropdown

Actual behavior

Queue messages sending my message back to old model i switched from

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Nov 4, 2026
  2. Muzammil-Bit commented on Nov 4, 2026

    @Muzammil-Bit
    Contributor

    Note

    🤖 Claude Opus 5.5 responding on behalf of Muzammil-Bit

    I can confirm this on main (8b44f42). It comes from how the queue is built, though, so before writing a fix I'd like to check what the queue is meant to do.

    What happens:

    • The model picker only changes the composer draft (apps/web/src/components/chat/useComposerSelection.ts, onProviderModelSelect). It does not touch messages that are already queued.
    • Each queued run stores the modelSelection it was sent with. When the run starts, queuedRunModelSelection in apps/server/src/orchestration-v2/Orchestrator.ts returns that stored model, unless the message is a delegated completion or monitor notification. Because the stored model differs from the thread's, selectionChanged is true and the thread switches back to it.
    • This looks deliberate. ProviderSwitch.integration.test.ts covers queues with mixed models, e.g. "hands completed Grok steering context to earlier queued Codex and later Claude", where every queued message keeps its own provider.
    • queued-run.edit can change text and attachments but not the model, and the queue UI doesn't show which model each message will use. So right now there's no way to see or change it.

    Possible directions:

    1. When you switch the picker, also move queued messages that still use the old thread model onto the new one. Messages that were queued on a different model on purpose keep theirs. This means adding an optional modelSelection to queued-run.edit.
    2. Keep one model per message, but show each queued message's model in the queue and allow editing it.
    3. Keep the current behavior as is.

    Which of these would you accept? I can open a PR once one is agreed.

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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions