Feat: tool write_append

This commit is contained in:
Grail Finder
2025-12-31 13:38:48 +03:00
parent 1022b099e4
commit 88bf281dd9
2 changed files with 73 additions and 48 deletions

1
tui.go
View File

@@ -1259,6 +1259,7 @@ func init() {
// cannot send msg in editMode or botRespMode
if event.Key() == tcell.KeyEscape && !editMode && !botRespMode {
msgText := textArea.GetText()
// TODO: add shellmode command -> output to the chat history, or at least have an option
if shellMode && msgText != "" {
// In shell mode, execute command instead of sending to LLM
executeCommandAndDisplay(msgText)