feat(KB-184): add model presets for task creation
- Add model preset types and settings fields with API validation - Create model preset utility helpers for size-based auto-selection - Add settings UI for managing model presets (create, edit, delete) - Integrate preset selection into NewTaskModal with custom override option - Add inline preset selection to InlineCreateCard component - Persist modelPresetId in task store and preserve through archive/unarchive - Add changeset and update AGENTS.md with feature documentation
This commit is contained in:
@@ -121,6 +121,18 @@ describe("TaskStore", () => {
|
||||
expect(detail.breakIntoSubtasks).toBe(true);
|
||||
});
|
||||
|
||||
it("persists modelPresetId when provided during task creation", async () => {
|
||||
const task = await store.createTask({
|
||||
description: "Preset task",
|
||||
modelPresetId: "budget",
|
||||
});
|
||||
|
||||
expect(task.modelPresetId).toBe("budget");
|
||||
|
||||
const detail = await store.getTask(task.id);
|
||||
expect(detail.modelPresetId).toBe("budget");
|
||||
});
|
||||
|
||||
it("leaves breakIntoSubtasks unset by default", async () => {
|
||||
const task = await store.createTask({
|
||||
description: "Regular task",
|
||||
|
||||
Reference in New Issue
Block a user