{"version":"2.1.290","anchor":"resume-with-resume-print-drop-turn-guard-adds-an-attach","canonical_anchor":"resume-with-resume-print-drop-turn-guard-adds-an-attach","heading":"Resuming with --resume and --print can append an attachment","tier":"notice","area":"Resume","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/resume-with-resume-print-drop-turn-guard-adds-an-attach","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Resuming with --resume and --print can append an attachment\n\nWhen a resumed non-interactive session drops its last turn, Claude Code can now add an attachment entry instead of only trimming\n\n**Unclear.** What the added attachment contains, and what the extra step does to restored state, is not known.\n\n**What**\n\n`--resume` reopens an earlier session, and `--print` runs Claude Code once without the interactive screen. When a resumed session is set to drop its last turn, Claude Code used to just cut the messages. It can now also add an attachment entry to the resumed conversation. Saved worker state restored through `CLAUDE_CODE_RESUME_FROM_SESSION` also passes through an extra step before it is used.\n\n**Why**\n\nThis affects rewinding and resuming sessions from programs that use the Agent SDK.\n\n- Area: Resume\n- Names: `--resume`, `--print`, `CLAUDE_CODE_RESUME_FROM_SESSION`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}