Add user_feedback message type; update README; fix colors on other themes

This commit is contained in:
Saoud Rizwan
2024-07-10 07:11:06 -04:00
parent 7d9d2199d2
commit cb985f3ce8
6 changed files with 46 additions and 16 deletions

View File

@@ -487,6 +487,7 @@ ${openDocuments}`
async askFollowupQuestion(question: string): Promise<string> {
const { text } = await this.ask("followup", question)
await this.say("user_feedback", text ?? "")
return `User's response:\n\"${text}\"`
}
@@ -501,6 +502,7 @@ ${openDocuments}`
if (response === "yesButtonTapped") {
return ""
}
await this.say("user_feedback", text ?? "")
return `The user is not pleased with the results. Use the feedback they provided to successfully complete the task, and then attempt completion again.\nUser's feedback:\n\"${text}\"`
}

View File

@@ -17,7 +17,7 @@ export interface ClaudeMessage {
}
export type ClaudeAsk = "request_limit_reached" | "followup" | "command" | "completion_result" | "tool"
export type ClaudeSay = "task" | "error" | "api_req_started" | "api_req_finished" | "text" | "command_output" | "completion_result"
export type ClaudeSay = "task" | "error" | "api_req_started" | "api_req_finished" | "text" | "command_output" | "completion_result" | "user_feedback"
export interface ClaudeSayTool {
tool: "editedExistingFile" | "newFileCreated" | "readFile" | "listFiles"