Skip to content

'Configure Tools' button not showing after start - #278761

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
aeschli/striped-finch
Nov 21, 2025
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
aeschli/striped-finch

Conversation

@aeschli

@aeschli Martin Aeschlimann (aeschli) commented Nov 21, 2025 •

Copy link
Copy Markdown
Contributor

On startup the empty chat view has no tools button.
Workaround is to switch the mode forth and back.

image

Caused by #278683

the chatModeKind context key no longer got initialized.

The fix is to bind it to the _currentModeObservable.

Copilot AI review requested due to automatic review settings November 21, 2025 12:24
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Pasero (@bpasero)

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatInputPart.ts

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.

Pull Request Overview

This PR fixes a regression introduced by PR #278683 where the chatModeKind context key was not being initialized at startup, causing UI elements like the "Configure Tools" button to not appear.

  • The fix moves the chatModeKindKey.set() call from the setChatMode2() method into an autorun that observes _currentModeObservable
  • This ensures the context key is initialized immediately with the default mode value and stays in sync with any observable changes

@aeschli

Martin Aeschlimann (aeschli) commented Nov 21, 2025 •

Copy link
Copy Markdown
Contributor Author

Connor Peet (@connor4312) After the change from #278683 setChatMode is not called on initialization when state is undefined.

setChate set the chatModeKind but also triggers onDidChangeCurrentChatMode.
I suggest to remove onDidChangeCurrentChatMode and clients should use currentModeObs instead. No need to have both APIs

@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/striped-finch branch November 21, 2025 12:43
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jan 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants