mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-24 01:24:18 +08:00
fix(vscode): restore optimistic question removal on reply/reject
Without optimistic removal the QuestionDock stays mounted with all buttons disabled until the SSE round-trip completes, making dismiss and answer clicks appear to do nothing. Re-add immediate removal after posting the message, matching the pattern used by permissions.
This commit is contained in:
@@ -546,7 +546,7 @@ export const SessionProvider: ParentComponent = (props) => {
|
||||
requestID,
|
||||
answers,
|
||||
})
|
||||
// Removal handled by SSE question.replied event via handleQuestionResolved
|
||||
setQuestions((prev) => prev.filter((q) => q.id !== requestID))
|
||||
}
|
||||
|
||||
function rejectQuestion(requestID: string) {
|
||||
@@ -554,7 +554,7 @@ export const SessionProvider: ParentComponent = (props) => {
|
||||
type: "questionReject",
|
||||
requestID,
|
||||
})
|
||||
// Removal handled by SSE question.rejected event via handleQuestionResolved
|
||||
setQuestions((prev) => prev.filter((q) => q.id !== requestID))
|
||||
}
|
||||
|
||||
function createSession() {
|
||||
|
||||
Reference in New Issue
Block a user