]> git.giacomolli.uk - onechat/commitdiff
Reflow the comments of promptTools and terminal
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 15:59:07 +0000 (12:59 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 15:59:07 +0000 (12:59 -0300)
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
terminal.go

index fdcee0fadac2700566f0054684dedd7ec708b0b2..8210575e99ce2e4db0926cacc6075fa5e322ce6a 100644 (file)
--- 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
 }
 
 // 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",
 func promptTools() []ModelTool {
        return append(promptSubagentTools(), ModelTool{
                Type:        "function",
index 1982f87bd621658c57a83f7c348c8c7c1ac6403a..45a1a69dec7cef489dabead041b4f1e6a6ac51fa 100644 (file)
@@ -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
 // 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 {
 func terminal(ctx context.Context, in io.Reader, out io.Writer) error {
        dir, err := dataDir()
        if err != nil {