{"version":"2.1.337","anchor":"main-thread-agent-restore-handles-a-given-up-agent-and-appen","canonical_anchor":"main-thread-agent-restore-handles-a-given-up-agent-and-appen","heading":"Restoring the main agent on resume handles added system prompts","tier":"notice","area":"Resume","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/main-thread-agent-restore-handles-a-given-up-agent-and-appen","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Restoring the main agent on resume handles added system prompts\n\nWhen a session is resumed, Claude Code now strips an agent's added system prompt before re-applying it and handles a given-up agent\n\n**What**\n\nWhen you resume a session that was running as a particular agent, Claude Code restores that agent. The restore step now:\n\n- removes any system prompt (the standing instructions given to the model) that had been appended for the agent, then applies it again\n\n- compares system prompts as plain text\n\n- accepts an option marking the agent as given up\n\n**Why**\n\nThis may stop agent instructions from being duplicated or left stale after resuming.\n\n- Area: Resume\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}