{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiaypmpqf32wanm57hs42yp552bgftfdvmmygmsgt7i3zjrwduou5a",
    "uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3moocuztb7b22"
  },
  "path": "/t/code-block-copy-button-drops-first-character-of-last-line/1384161#post_1",
  "publishedAt": "2026-06-19T21:14:24.000Z",
  "site": "https://community.openai.com",
  "textContent": "When clicking the copy button on a multi-line code block, the first character of the **last line** is sometimes omitted from the clipboard contents.\n\n### Example\n\n**Displayed in code block:**\n\n\n\n\n\n    git status\n    git branch --show-current\n    git log --oneline --decorate -5\n    gh pr list --head codex/issue-139-auto-fix\n\n    Expected clipboard contents:\n\n    git status\n    git branch --show-current\n    git log --oneline --decorate -5\n    gh pr list --head codex/issue-139-auto-fix\n\n    Actual clipboard contents:\n\n    git status\n    git branch --show-current\n    git log --oneline --decorate -5\n    h pr list --head codex/issue-139-auto-fix\n\n    Environment\n    Browser: Firefox 151.0\n    OS: macOS 10.15+ (Intel Mac in your screenshot)\n    ChatGPT Web\n    Reproduced multiple times\n    Additional Notes\n    The issue appears to affect the last line only.\n    The rendered code block displays correctly.\n    Only the clipboard contents are incorrect.\n    Manually selecting and copying the text does not exhibit the issue.\n\n\n\n",
  "title": "Code block copy button drops first character of last line"
}