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:
Igor Šćekić
2026-02-12 12:50:31 +01:00
parent 03764c4d6a
commit 5454a9202c
@@ -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() {