Add memory optimizations, retry failed requests, markdown support

- Move isExpanded state up into ChatView to fix issue where virtualized list would reset ChatRow state
- Add ability to retry failed requests
- Add markdown rendering
This commit is contained in:
Saoud Rizwan
2024-07-25 08:54:29 -04:00
parent 8058d261ba
commit 44a4140486
9 changed files with 1536 additions and 134 deletions

View File

@@ -24,7 +24,14 @@ export interface ClaudeMessage {
text?: string
}
export type ClaudeAsk = "request_limit_reached" | "followup" | "command" | "completion_result" | "tool"
export type ClaudeAsk =
| "request_limit_reached"
| "followup"
| "command"
| "completion_result"
| "tool"
| "api_req_failed"
export type ClaudeSay =
| "task"
| "error"
@@ -34,6 +41,7 @@ export type ClaudeSay =
| "command_output"
| "completion_result"
| "user_feedback"
| "api_req_retried"
export interface ClaudeSayTool {
tool: "editedExistingFile" | "newFileCreated" | "readFile" | "listFiles"