mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:10:43 +00:00
fix(agents): retry empty compatible turns
This commit is contained in:
@@ -109,6 +109,20 @@ describe("registerAgentCommands", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("accepts a model override for one-shot agent runs", async () => {
|
||||
await runCli(["agent", "--message", "hi", "--agent", "ops", "--model", "openai/gpt-5.4"]);
|
||||
|
||||
expect(agentCliCommandMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
message: "hi",
|
||||
agent: "ops",
|
||||
model: "openai/gpt-5.4",
|
||||
}),
|
||||
runtime,
|
||||
{ deps: true },
|
||||
);
|
||||
});
|
||||
|
||||
it("runs agents add and computes hasFlags based on explicit options", async () => {
|
||||
await runCli(["agents", "add", "alpha"]);
|
||||
expect(agentsAddCommandMock).toHaveBeenNthCalledWith(
|
||||
|
||||
@@ -28,6 +28,7 @@ export function registerAgentCommands(program: Command, args: { agentChannelOpti
|
||||
.option("-t, --to <number>", "Recipient number in E.164 used to derive the session key")
|
||||
.option("--session-id <id>", "Use an explicit session id")
|
||||
.option("--agent <id>", "Agent id (overrides routing bindings)")
|
||||
.option("--model <id>", "Model override for this run (provider/model or model id)")
|
||||
.option(
|
||||
"--thinking <level>",
|
||||
"Thinking level: off | minimal | low | medium | high | xhigh | adaptive | max where supported",
|
||||
|
||||
Reference in New Issue
Block a user