feat(KB-007): add manual plan approval setting
- Add requirePlanApproval setting to core types and dashboard config - Add approve-plan and reject-plan API endpoints with handlers - Add approve/reject UI buttons to TaskDetailModal for awaiting-approval tasks - Update triage processor to check requirePlanApproval and set awaiting-approval status - Add comprehensive tests for API endpoints, UI components, and triage logic - Update AGENTS.md with documentation for the new setting
This commit is contained in:
@@ -188,6 +188,11 @@ export interface Settings {
|
||||
* lock files (ours), generated files (theirs), and trivial whitespace conflicts
|
||||
* without spawning an AI agent. Default: true. */
|
||||
smartConflictResolution?: boolean;
|
||||
/** When enabled, AI-generated task specifications require manual approval
|
||||
* before the task can move from triage to todo. Tasks with approved specs
|
||||
* remain in triage with status "awaiting-approval" until a user approves
|
||||
* or rejects the plan. Default: false. */
|
||||
requirePlanApproval?: boolean;
|
||||
}
|
||||
|
||||
export const DEFAULT_SETTINGS: Settings = {
|
||||
@@ -207,6 +212,7 @@ export const DEFAULT_SETTINGS: Settings = {
|
||||
defaultThinkingLevel: undefined,
|
||||
autoResolveConflicts: true,
|
||||
smartConflictResolution: true,
|
||||
requirePlanApproval: false,
|
||||
};
|
||||
|
||||
export interface BoardConfig {
|
||||
|
||||
Reference in New Issue
Block a user