{"version":"2.1.336","anchor":"senduserfile-end-of-turn-file-delivery-for-sdk-chats-gated","canonical_anchor":"senduserfile-end-of-turn-file-delivery-for-sdk-chats-gated","heading":"Finished files can be sent to the user automatically in SDK chats","tier":"soon","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/senduserfile-end-of-turn-file-delivery-for-sdk-chats-gated","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Finished files can be sent to the user automatically in SDK chats\n\nIn SDK chats, Claude Code can now send finished files from the outputs folder through SendUserFile; it is off unless switched on remotely\n\n**Unclear.** It is not clear which products reach this path, so readers cannot tell whether they will see it.\n\n**What**\n\nThe SDK lets programs run Claude Code from their own code. In chats started this way, Claude Code can now send finished files from the outputs folder to the user with the SendUserFile tool. It can do this quietly during a turn and again at the end of a turn. If Claude links to a file in its reply without sending it, a reminder tells it to send the file.\n\nThis only happens:\n\n- for chats started through the SDK\n\n- in the main agent, not in helper agents\n\n- when a setting controlled from Anthropic's servers is on; when the server sends nothing, it stays off\n\nIt also stops if the chat says \"In this chat, don't send finished files with SendUserFile.\"\n\n**Why**\n\nFiles can reach chat users without Claude being asked each time, but only where the server turns this on. A chat can opt out with the notice above.\n\n- Flag `tengu_cobalt_satchel`: Not enough to say (read for one account on one subscription tier against v2.1.336; this account: no value returned, anonymous baseline: no value returned, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: SDK\n- Names: `SendUserFile`\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}