From f2e67d5579593e2d4f1cb2d9165b851c52a06715 Mon Sep 17 00:00:00 2001 From: "Anderson A. Giacomolli" Date: Sun, 8 Nov 2026 12:59:07 -0300 Subject: [PATCH] Reflow the comments of promptTools and terminal The WhatsApp changes left two doc comments with uneven lines: the comment of promptTools had a line of 100 characters, and the comment of terminal had a line that ended early. Both are reflowed with bin/reflow, with no change of their words. Issue: 6f69ca1 --- prompt.go | 5 +++-- terminal.go | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/prompt.go b/prompt.go index fdcee0f..8210575 100644 --- a/prompt.go +++ b/prompt.go @@ -185,8 +185,9 @@ func promptSubagent(name, instructions string) string { } // promptTools returns the function tools of every call of the agent: the tools -// of promptSubagentTools, then spawn, tell, and the WhatsApp tools. A compaction sends them too and -// never calls them, because a change of the tools ends the shared prompt cache. +// of promptSubagentTools, then spawn, tell, and the WhatsApp tools. A +// compaction sends them too and never calls them, because a change of the tools +// ends the shared prompt cache. func promptTools() []ModelTool { return append(promptSubagentTools(), ModelTool{ Type: "function", diff --git a/terminal.go b/terminal.go index 1982f87..45a1a69 100644 --- a/terminal.go +++ b/terminal.go @@ -21,9 +21,9 @@ var errTerminalDaemonClosed = errors.New("the daemon closed the connection") // terminal runs "onechat chat": the terminal client of the daemon. Each line of // input is a user message, the line /stop interrupts the running turn, the line // /stop NAME stops the subagent NAME, and a line that starts with /whatsapp is -// a WhatsApp command. The client shows the replies, the -// tool calls, and their results as they happen. It ends at the end of the input -// or when the daemon closes the connection. +// a WhatsApp command. The client shows the replies, the tool calls, and their +// results as they happen. It ends at the end of the input or when the daemon +// closes the connection. func terminal(ctx context.Context, in io.Reader, out io.Writer) error { dir, err := dataDir() if err != nil { -- 2.53.0