fix(plugin): preserve question state compatibility

This commit is contained in:
Aiden Cline 2026-07-03 17:37:04 -05:00
commit bfa959847f
3 changed files with 5 additions and 4 deletions

View file

@ -196,6 +196,9 @@ function stateApi(sync: ReturnType<typeof useSync>, data: ReturnType<typeof useD
tool: request.source?.type === "tool" ? { messageID: request.source.messageID, callID: request.source.callID } : undefined,
}))
},
question(sessionID) {
return sync.data.question[sessionID] ?? []
},
},
part(messageID) {
return sync.data.part[messageID] ?? []