fix(frontend): reconcile pending questions by directory and improve TTS fallback (#204)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-04-28 11:32:19 -04:00
1 parent 1beb353668
commit 62c8a41e01
10 files changed
+582 -26

No files matched your search

+7 -1
View File
@@ -11,6 +11,7 @@ type CommandListResponse = paths['/command']['get']['responses']['200']['content
type CommandRequest = NonNullable<paths['/session/{sessionID}/command']['post']['requestBody']>['content']['application/json']
type ShellRequest = NonNullable<paths['/session/{sessionID}/shell']['post']['requestBody']>['content']['application/json']
type AgentListResponse = paths['/agent']['get']['responses']['200']['content']['application/json']
type PermissionListResponse = paths['/permission']['get']['responses']['200']['content']['application/json']
type QuestionListResponse = paths['/question']['get']['responses']['200']['content']['application/json']
type SendPromptResponse = paths['/session/{sessionID}/message']['post']['responses']['200']['content']['application/json']
type LspStatusResponse = paths['/lsp']['get']['responses']['200']['content']['application/json']
@@ -183,6 +184,12 @@ export class OpenCodeClient {
})
}
async listPendingPermissions() {
return fetchWrapper<PermissionListResponse>(`${this.baseURL}/permission`, {
params: this.getParams(),
})
}
async replyToQuestion(requestID: string, answers: string[][]) {
return fetchWrapper(`${this.baseURL}/question/${requestID}/reply`, {
method: 'POST',
@@ -248,4 +255,3 @@ export class OpenCodeClient {
export const createOpenCodeClient = (baseURL: string, directory?: string) => {
return new OpenCodeClient(baseURL, directory)
}