Merge pull request #4987 from fbricon/fix-mode-cycling

Fix Chat mode cycling on VS Code
This commit is contained in:
Nate Sesti 2025-04-04 18:45:03 -07:00 • committed by GitHub
commit 90870bf43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -661,8 +661,8 @@ export const sessionSlice = createSlice({
},
cycleMode: (state, action: PayloadAction<{ isJetBrains: boolean }>) => {
const modes = action.payload.isJetBrains
? ["chat", "edit", "agent"]
: ["chat", "agent"];
? ["chat", "agent"]
: ["chat", "edit", "agent"];
const currentIndex = modes.indexOf(state.mode);
const nextIndex = (currentIndex + 1) % modes.length;
state.mode = modes[nextIndex] as MessageModes;