mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2026-02-05 03:55:23 -05:00
Add user_feedback message type; update README; fix colors on other themes
This commit is contained in:
@@ -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}\"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user