From 65416476e3b0ac11d6b1867c70c1a89127764fc0 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 13 May 2026 08:28:01 +0000 Subject: [PATCH] warm-resume: drop "read PLAN.md" from the resume nudge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to bd517f28. When --resume succeeds, claude-code restores the full prior conversation — the agent already has its file reads, tool results, and reasoning in context. Telling it to "read PLAN.md" forces a redundant tool call to re-read a doc it wrote itself. PLAN.md is the cold-start orientation doc (driven by AGENT.md); the resume -p prompt should just be a continuation nudge. Co-Authored-By: Claude Opus 4.7 (1M context) --- server/src/agents/pool/start/spawn.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/src/agents/pool/start/spawn.rs b/server/src/agents/pool/start/spawn.rs index 1dffc363..b53d471e 100644 --- a/server/src/agents/pool/start/spawn.rs +++ b/server/src/agents/pool/start/spawn.rs @@ -267,11 +267,13 @@ pub(super) async fn run_agent_spawn( // resumed session has a deferred-tool marker. Watchdog-killed // sessions don't have one, so an empty -p aborts the CLI with // "No deferred tool marker found... Provide a prompt to continue - // the conversation." We default to a brief "continue from - // PLAN.md" message when no gate-failure context was provided. + // the conversation." When resume succeeds, the agent already has + // its full prior conversation restored (no need to point at + // PLAN.md — that's the cold-start orientation path). A brief + // "continue" nudge is all the CLI needs. let resume_msg = resume_context_owned.filter(|s| !s.is_empty()).unwrap_or_else( || { - "Continue from your prior session. Read PLAN.md for your current state and pick up where you left off.".to_string() + "Continue your prior work.".to_string() }, ); (resume_msg, Some(fallback))