Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/AgentWorkbench/NewTaskView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve folded pastes when switching providers

If a user selects a native agent, pastes long text, and then switches to Kimi before sending, the existing @paste token remains in prompt while this expression changes the backing store from native.pastes to kimi.pastes. KimiConnection.sendPrompt expands only its own store, so it rejects the first message as missing content even though the paste still exists in the native store. Rehome existing folded content when the provider changes, or retain the originating store for each token.

Useful? React with 👍 / 👎.

if !attachments.isEmpty {
ScrollView(.horizontal) {
HStack {
Expand Down
Loading