Merge pull request #4987 from fbricon/fix-mode-cycling
Fix Chat mode cycling on VS Code
This commit is contained in:
commit
90870bf43c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue