{"version":"2.1.283","anchor":"sdk-success-results-with-is-error-now-carry-the-result-text","canonical_anchor":"sdk-success-results-with-is-error-now-carry-the-result-text","heading":"SDK error results now include their message text","tier":"notice","area":"Agents","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283\/e\/sdk-success-results-with-is-error-now-carry-the-result-text","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283","markdown":"### SDK error results now include their message text\n\nWhen a finished result marked as an error is rebuilt for SDK programs, it now keeps its message text instead of an empty string\n\n**Unclear.** It is not clear when Claude Code rebuilds a result this way, for example when resuming or replaying a finished session.\n\n**What**\n\nThe SDK (software development kit) lets other programs drive Claude Code. When Claude Code rebuilds a result message from a stored finished result with subtype \"success\", it now keeps the original result text if the result is marked as an error and has no structured output. Before, that text was always empty.\n\n**Why**\n\nPrograms using the SDK that used to get an empty result on a turn that ended in error now get the error text.\n\n- Area: Agents\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}