Skip to content

Hide model picker in the floating omni chat input window - #331333

Closed
Megan Rogge (meganrogge) with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-model-picker-from-omni-chat
Closed

Hide model picker in the floating omni chat input window#331333
Megan Rogge (meganrogge) with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-model-picker-from-omni-chat

Conversation

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Removes the model picker as we don't need that here.

Description

  • Gate the model picker menu item: Added ChatContextKeys.inChatInputWindow.negate() to the when clause of OpenModelPickerAction's MenuId.ChatInput contribution in chatExecuteActions.ts. The floating window's scoped context sets inChatInputWindow to true, so the picker is hidden there while remaining available in all other chat surfaces (main chat view, editor inline, notebook, terminal).
when:
    ContextKeyExpr.and(
        // Hide the model picker in the floating chat input window
        ChatContextKeys.inChatInputWindow.negate(),
        // Hide the model picker while a delegation (continue in) target is pending
        ChatContextKeys.hasPendingDelegationTarget.negate(),
        ...
    )

The change is a declarative context-key gate consistent with the existing conditions in the same when block, reusing the inChatInputWindow key already bound in the omni window's scoped context service.

Copilot AI balanced review requested due to automatic review settings August 17, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove model picker from omni chat Hide model picker in the floating omni chat input window Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants