feat: Add file suggestion edit tool and chat UI (#240)

* feat: Add settings for write to system tool access
This commit is contained in:
Petr Mironychev
2025-10-20 11:48:18 +02:00
committed by GitHub
parent 238ca00227
commit 8a338ecb69
15 changed files with 1400 additions and 22 deletions

View File

@ -102,7 +102,15 @@ ChatRootView {
width: ListView.view.width - scroll.width
sourceComponent: model.roleType === ChatModel.Tool ? toolMessageComponent : chatItemComponent
sourceComponent: {
if (model.roleType === ChatModel.Tool) {
return toolMessageComponent
} else if (model.roleType === ChatModel.FileEdit) {
return fileEditSuggestionComponent
} else {
return chatItemComponent
}
}
}
header: Item {
@ -128,6 +136,7 @@ ChatRootView {
id: chatItemComponent
ChatItem {
id: chatItemInstance
msgModel: root.chatModel.processMessageContent(model.content)
messageAttachments: model.attachments
isUserMessage: model.roleType === ChatModel.User
@ -153,6 +162,16 @@ ChatRootView {
toolContent: model.content
}
}
Component {
id: fileEditSuggestionComponent
FileEditChangesItem {
id: fileEditItem
width: chatListView.width - 10
}
}
}
ScrollView {