Add plan/draft mode for repo intelligence before coding (#29)#130
Open
Add plan/draft mode for repo intelligence before coding (#29)#130
Conversation
When enabled, Claude first analyzes the repo in read-only mode (write tools blocked via --disallowedTools), produces a structured Markdown plan, and waits for user approval before writing any code. Users can comment to revise the plan, approve to proceed, or reject to cancel. Backend: new plan_mode column, run_claude_plan_streaming (read-only), build_plan_prompt, plan_approval_loop, plan phase in run_task_pipeline. Frontend: plan mode checkbox, planning/awaiting_plan_approval statuses, Plan Review UI with Approve/Reject buttons in TaskChat.
The audit log page has 'Event Type' in both a filter label and a table
column header. At tablet width both are visible, causing Playwright's
strict mode to fail. Use getByRole('columnheader') for an unambiguous
match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Backend (
dashboard/backend/src/):db.rs: Addedplan_mode BOOLEAN NOT NULL DEFAULT falsecolumn migrationmodels.rs: Addedplan_modetoTaskstruct andCreateTaskRequesttasks.rs: Newrun_claude_plan_streaming()(read-only Claude),build_plan_prompt(),plan_approval_loop(), plan phase inrun_task_pipeline(), updated all SELECT queriesFrontend (
dashboard/frontend/src/):lib/api.ts: Addedplan_modeto Task type and createTask paramslib/status.ts: Addedplanning(spinner) andawaiting_plan_approval(blue/Clock) statusespages/Tasks.tsx: "Generate plan before coding" checkbox in task creation formpages/TaskDetail.tsx: Plan statuses in CHAT_STATUSES, passes taskStatus to TaskChatcomponents/TaskChat.tsx: Plan Review header, blue banner, Approve/Reject buttonsTest plan
planning→awaiting_plan_approvalCloses #29