新会话默认连接agent列表里面的第一个agent,不再固定使用codex

This commit is contained in:
xintaofei
2026-03-22 22:35:01 +08:00
parent b5b7073584
commit 49760ccb58
5 changed files with 26 additions and 19 deletions

View File

@@ -151,7 +151,7 @@ export function FolderTitleBar() {
if (matchShortcutEvent(e, shortcuts.new_conversation)) {
if (!folderPath) return
e.preventDefault()
openNewConversationTab("codex", folderPath)
openNewConversationTab(folderPath)
return
}
if (matchShortcutEvent(e, shortcuts.open_folder)) {

View File

@@ -21,7 +21,7 @@ export function Sidebar() {
const handleNewConversation = useCallback(() => {
if (!folder) return
openNewConversationTab("codex", folder.path)
openNewConversationTab(folder.path)
}, [folder, openNewConversationTab])
if (!isOpen) return null