Configure agent thinking from the CLI (#2533)
* feat(cli): update agent thinking from the CLI * fix(cli): harden agent thinking updates * feat(cli): configure thinking for schedules * fix(cli): report applied thinking updates * fix(cli): report current agent thinking state
This commit is contained in:
@@ -116,6 +116,25 @@ describe("parseScheduleCreateInput first-run timing", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("parseScheduleCreateInput thinking", () => {
|
||||
test("sets the thinking option for each scheduled new-agent run", () => {
|
||||
const input = parseScheduleCreateInput({
|
||||
...baseOptions,
|
||||
cwd: "/project",
|
||||
thinking: " high ",
|
||||
});
|
||||
|
||||
expect(input.target).toEqual({
|
||||
type: "new-agent",
|
||||
config: {
|
||||
provider: "claude",
|
||||
cwd: "/project",
|
||||
thinkingOptionId: "high",
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("parseScheduleUpdateInput", () => {
|
||||
test("rejects calls with no fields to update", () => {
|
||||
expect(() => parseScheduleUpdateInput({ id: "abc" })).toThrow(
|
||||
|
||||
Reference in New Issue
Block a user