Skip to content

bug: paste multi-line text into Claude Code removes charactersΒ #207

@JannikWempe

Description

@JannikWempe

Did you check docs and existing issues?

  • I have read all the sidekick.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of sidekick.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.5

Operating system/version

MacOS 26.1

Describe the bug

Copying multi-line text into Claude Code removes some Text.

This is how is looks if I paste (CMD+V) a JSON schema into the input:

Image

This was the full schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "title": "User",
  "required": ["id", "email"],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "age": {
      "type": "integer",
      "minimum": 0
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["admin", "editor", "viewer"]
      },
      "uniqueItems": true,
      "default": ["viewer"]
    },
    "settings": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "theme": { "type": "string", "enum": ["light", "dark"] },
        "notifications": { "type": "boolean", "default": true }
      }
    }
  },
  "additionalProperties": false
}

I can't really paste any multi-line text into Claude Code because it removes arbitrary characters

In the Claude Code CLI itself, it ends up like this:
Image

Steps To Reproduce

  1. Copy multi-line text
  2. open Claude Code inside via Sidekick
  3. paste
  4. see malformed text

Expected Behavior

I'd expect the same behavior as using Claude Code directly via CLI.

Repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a whilewontfixThis issue will not be fixed or implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions