refactor: update input tools configuration to hide unused tools and set initial collapsed state

This commit is contained in:
kangfenmao 2025-06-08 11:30:50 +08:00
parent 3350f58422
commit c1d753b7fe

View File

@ -14,13 +14,9 @@ export const DEFAULT_TOOL_ORDER: ToolOrder = {
'knowledge_base',
'mcp_tools',
'generate_image',
'mention_models',
'quick_phrases',
'clear_topic',
'toggle_expand',
'new_context'
'mention_models'
],
hidden: []
hidden: ['quick_phrases', 'clear_topic', 'toggle_expand', 'new_context']
}
export type InputToolsState = {
@ -30,7 +26,7 @@ export type InputToolsState = {
const initialState: InputToolsState = {
toolOrder: DEFAULT_TOOL_ORDER,
isCollapsed: false
isCollapsed: true
}
const inputToolsSlice = createSlice({