This commit is contained in:
Ian Gulliver
2026-10-20 22:28:36 -07:00
parent 5a9a8823fe
commit 6ce3ef99fa
14 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ func (m *Manager) terminalTypeTool(l *live) mcp.Tool {
func (m *Manager) wakeOnPrompt(l *live) func(string, []byte) {
return func(exit string, out []byte) {
text := fmt.Sprintf("The line you left unsent in the terminal was run, and the shell is back at its prompt with exit status %s (130 means it was cancelled with Ctrl-C). The terminal's output since you typed it:\n\n%s", exit, terminal.Text(out))
text := fmt.Sprintf("The line you left unsent in the terminal was run, and the shell is back at its prompt with exit status %s (130 means it was canceled with Ctrl-C). The terminal's output since you typed it:\n\n%s", exit, terminal.Text(out))
_, _, err := m.Message(context.Background(), l.id, "byre", text, "", "")
if err != nil {
slog.Error("wake agent on terminal prompt", "session", l.id, "task", l.taskID, "err", err)