Compare commits

...
Author SHA1 Message Date
Saoud Rizwan fe3e596d83 Simulate partial ask 2025-10-16 20:31:22 -07:00
Saoud Rizwan 3b237e7cf4 Post state to stream after setting plan mode in yolo mode 2025-10-16 20:26:25 -07:00
@@ -73,6 +73,8 @@ export class PlanModeRespondHandler implements IToolHandler, IPartialBlockHandle
if (switchSuccessful) {
// Complete the plan mode response tool call (this is a unique case where we auto-respond to the user with an ask response)
// Create the ask in case it wasn't streamed
await config.callbacks.ask(this.name, JSON.stringify(sharedMessage), true).catch(() => {})
const lastPlanMessage = findLast(config.messageState.getClineMessages(), (m: any) => m.ask === this.name)
if (lastPlanMessage) {
lastPlanMessage.text = JSON.stringify({
@@ -80,6 +82,7 @@ export class PlanModeRespondHandler implements IToolHandler, IPartialBlockHandle
} satisfies ClinePlanModeResponse)
lastPlanMessage.partial = false
await config.messageState.saveClineMessagesAndUpdateHistory()
await config.callbacks.postStateToWebview()
}
// we dont need to process any text, options, files or other content here