← Reddit

Copy to Clipboard copies a SCREENSHOT of the code to clipboard -- Download file generates a .HTML instead of the target language

Reddit · sh00ter999 · May 31, 2026
A user reported that the 'Copy to Clipboard' feature copies code as an image screenshot rather than as raw text, a problem reproduced in both Chrome and Vivaldi browsers. The 'Download file' feature generates an HTML wrapper with styling around the source code instead of outputting files in the target programming language, requiring manual removal of unnecessary HTML markup.

Detailed Analysis

A Reddit user on r/ClaudeAI has identified two significant functional bugs in Claude's code-handling interface that appear to have been introduced through a recent update to how longer code snippets are rendered and interacted with. The first and most severe issue involves the "Copy to Clipboard" functionality, which, rather than copying raw source code as plain text, is instead copying a screenshot — a rasterized image — of the code block to the user's clipboard. The poster confirmed this behavior across two Chromium-based browsers, Chrome and Vivaldi, suggesting the issue is not browser-specific. The second bug involves the "Download file" feature, which instead of outputting the code in its native language format (e.g., a `.js` or `.py` file), wraps the source code inside an HTML document complete with inline styling, CSS variables, and structural markup that serves no purpose for a developer intending to use the downloaded code directly.

The technical context behind both bugs appears to be rooted in a change to how Claude's interface renders longer code snippets. The user notes that longer blocks now load dynamically and with animation after a page refresh, suggesting Anthropic recently migrated these elements to a new rendering pipeline — likely one that treats the code block as a styled visual component rather than a selectable text node. This architectural shift, while possibly intended to improve aesthetics or performance, has apparently broken the underlying clipboard and export logic, which may now be interfacing with the rendered DOM element (or a canvas representation of it) rather than the underlying text content. The HTML download issue further corroborates this: the export function appears to be serializing the styled HTML wrapper of the code block rather than extracting the raw code string from the data model.

From a user experience standpoint, these bugs represent a category of regression that disproportionately impacts developers — arguably one of Claude's most important and active user segments. Code copying and downloading are not edge-case features; they are primary interaction patterns for anyone using Claude to assist with programming tasks. The user's frustration is illustrative: what should be a single-click action becomes a multi-step debugging exercise as the user repeatedly attempts to paste code only to find an image in their clipboard. The additional UI change noted — placing copy and download options behind a "..." burger menu rather than displaying them as visible icons — compounds the friction by reducing discoverability.

The incident fits into a broader pattern observable across AI assistant platforms where rapid frontend iteration, often driven by competitive pressure to ship new visual features, introduces regressions in core utility functions. Anthropic has been actively updating Claude's web interface throughout 2025 and into 2026, adding capabilities and refining the chat experience. However, as codebases grow in complexity, changes to rendering pipelines — particularly those that shift from server-rendered or simple DOM text nodes to dynamically loaded, styled components — carry a high risk of silently breaking adjacent functionality like clipboard APIs and file export routines. The fact that the bug affects multiple Chromium-based browsers but was apparently not caught before deployment points to gaps in regression testing coverage for these interaction flows.

The broader implication is that as AI interfaces become more visually sophisticated, the tension between aesthetic dynamism and functional reliability intensifies. Features like animated code block loading may enhance perceived polish, but they introduce complexity that can corrupt fundamental developer workflows. For Anthropic, whose competitive differentiation partly rests on Claude's usefulness as a coding assistant, bugs that degrade code export reliability are particularly costly to user trust. Community-sourced bug reports of this nature — detailed, reproducible across browsers, and accompanied by concrete examples of the malformed output — typically accelerate fixes, but the initial shipping of such regressions underscores the need for more rigorous end-to-end testing of developer-centric UI features before deployment.

Read original article →