{"version":"2.1.337","anchor":"workspace-diff-reply-adds-paging-cursor-next","canonical_anchor":"workspace-diff-reply-adds-paging-cursor-next","heading":"Workspace diffs can be sent live and in pages","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/workspace-diff-reply-adds-paging-cursor-next","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Workspace diffs can be sent live and in pages\n\nget_workspace_diff can now send a live-only reply in pages capped near 56 KiB, with a reply_too_large error code\n\n**What**\n\n`get_workspace_diff` is the request a remote app uses to ask Claude Code which files changed in the working folder, for example to show the \/diff screen.\n\n- It takes two new optional fields, `liveReply` and `from`.\n\n- A live reply goes only to apps currently attached and is not stored. It is capped at about 56 KiB and sent in pages.\n\n- The reply gains a nullable `next` field, the number of the first text left for a later request, so a large diff can be fetched in several requests.\n\n- Live replies need the worker to list the capability `workspace_diff_live_reply_v1`. Without a normal reply path, the diff goes through a queued sender; otherwise the request is refused with 'get_workspace_diff with this liveReply'.\n\n- A new `reply_too_large` value for `error_code` covers requests answered live only.\n\n**Why**\n\nApps that show changes from a remote session can fetch large diffs in pieces instead of in one reply, and get a clear code when a reply is too big.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}