From 73f79d528575433a1eb0b98e1207430416906dcb Mon Sep 17 00:00:00 2001 From: chenweigao <19328388+chenweigao@users.noreply.github.com> Date: Thu, 15 Oct 2026 16:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=BB=BA=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=9A=84=E9=A6=96=E6=9D=A1=E9=95=BF=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E4=B8=8D=E5=86=8D=E6=8A=A5"=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=B7=B2=E4=B8=A2=E5=A4=B1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新建任务的编辑器一直把长粘贴存进 Kimi 的粘贴库(pastes-kimi-), 而原生 Agent(Codex/Claude 等)的发送路径用 native 库展开 (pastes-native-),令牌解析不到,首次发送必报丢失。会话已建、 界面切到会话编辑器后重粘,写读才同库,所以"删了重粘就好"。 编辑器按所选 provider 取对应连接自己的粘贴库,写读同库。 --- Sources/AgentWorkbench/NewTaskView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AgentWorkbench/NewTaskView.swift b/Sources/AgentWorkbench/NewTaskView.swift index e18f594..bcec39d 100644 --- a/Sources/AgentWorkbench/NewTaskView.swift +++ b/Sources/AgentWorkbench/NewTaskView.swift @@ -184,7 +184,7 @@ struct NewTaskView: View { referenceBrowser.configure(host: kimi.host, cwd: cwd) referenceBrowser.open(path) showReference = true - }, pastes: kimi.pastes, minimumEditorHeight: 96, referencesBelowEditor: true, files: projectFiles) + }, pastes: provider == .kimi ? kimi.pastes : native.pastes, minimumEditorHeight: 96, referencesBelowEditor: true, files: projectFiles) if !attachments.isEmpty { ScrollView(.horizontal) { HStack {