What
An MCP task is a long-running job run by an MCP server, an outside program that gives Claude Code extra tools. How these tasks end has changed:
- When a task finishes, its ending is now saved to a separate file before the notification about it is sent, so a restart does not lose it. If saving fails, Claude Code reports that it "could not save the ending of task".
- The notification now carries a run ID and the origin of the task.
- The list of ending reasons gains
needs_sign_inandanswered_with_errors. Before, a reconnect failure could only end asreconnect_failedorttl_expired. - A server that asks you to sign in while Claude Code is checking on a task is now handled separately from a lost connection.
Why
Long-running MCP tasks are less likely to vanish when Claude Code restarts. When one fails, the reason is more specific, so you can tell "needs sign-in" apart from a dropped connection.