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:
Mohamed Boudra
2026-07-28 22:30:50 +08:00
committed by GitHub
parent e241e02afb
commit 963d4f9240
13 changed files with 319 additions and 31 deletions
@@ -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(