Factory: no review loop in planning chats

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Sonnet 5.5 committed 2026-11-16 13:21:34 +01:00
1 parent a9a98a25e7
commit fa6173d224
3 files changed
+31

No files matched your search

+4
View File
@@ -293,6 +293,10 @@ pub async fn run_session(app: Arc<App>, session_id: &str, cancel: CancellationTo
let roots = app.user_roots(session.owner_id.as_deref());
let root = app.root_for(session.owner_id.as_deref(), &cwd);
let mut agent = prompts::find_agent_for(&app, &root, &cwd, &session.agent, session.owner_id.as_deref());
// Chats that plan (spec chat, issue chat) write no code: the mode's review of the work does not apply.
if crate::factory::is_planning_chat(&app, &session) {
agent.refine = None;
}
let clean_room = session.clean_room(app.config().craft.clean_room);
// The craft prompt follows the session's clean room / deep switch.
if agent.name == "craft" && agent.source == "builtin" {