Generate images in a new chat too: force_tool on POST /chats (server e0c2332)
CI / check (push) Canceled after 0s

The + option shows in a new chat as well (never an agent chat); the first message makes the
chat and asks for the picture. /me is read on opening any non-agent chat for services.images.
A send that fails gives the picture request back with the words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 14:06:16 +00:00
1 parent a5c4fdc128
commit b5e78d82bd
4 files changed
+12 -9

No files matched your search

@@ -226,6 +226,7 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
mode: String? = null,
agent: AgentTarget? = null,
agents: AgentsSetting? = null,
forceTool: String? = null,
): NewChat = send(
"POST",
"/chats",
@@ -237,6 +238,7 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
mode?.let { put("mode", it) }
agents?.let { put("agents", agentsJson(it)) }
put("temporary", temporary)
forceTool?.let { put("force_tool", it) }
// An agent chat runs on a linked device; an empty directory is the device's first
// allowed one. A device that is no longer linked makes it an ordinary chat on the
// server, rather than losing the message.