RunGatewayCoderOnce runs the coder ReAct loop one-shot on a raw task for the messaging gateway: same engine and tools (create/edit files, run commands, iterate) but with the gateway persona layered on the system prompt so the answer is concise, chat-friendly prose. The caller is expected to have set
(ctx context.Context, task string)
| 1059 | // cli.unattended so every confirmation auto-approves — the gateway must never |
| 1060 | // block on a stdin prompt the daemon has no way to answer. |
| 1061 | func (cli *ChatCLI) RunGatewayCoderOnce(ctx context.Context, task string) error { |
| 1062 | return cli.runCoderQuery(ctx, task, true) |
| 1063 | } |
| 1064 | |
| 1065 | // runCoderQuery is the shared body for the coder one-shot entries. It runs the |
| 1066 | // AgentMode ReAct loop under the coder profile and system prompt; gatewayPersona |
no test coverage detected