claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

CLI Hangs on Large Text Paste Input

Open brynnjocelyn opened this issue 8 months ago • 3 comments

Bug Description There are instances where the cli becomes unresponsive after trying to paste in text.

Environment Info

  • Platform: macos
  • Terminal: tmux
  • Version: 1.0.7
  • Feedback ID: 72938e49-67ca-4c1f-9b3d-8312b41d987c

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at BZ (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:638:3921)\n    at file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:6930\n    at Q (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at fl (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5949)\n    at YG (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5580)\n    at fq2 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1999:4809)","timestamp":"2025-06-01T21:52:06.345Z"},{"error":"Error: No logs found at /Users/brynnjknight/Library/Caches/claude-cli-nodejs/-Users-brynnjknight-projects-life-health-ai/messages\n    at e$4 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:567:3719)\n    at DQ1 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:567:3468)\n    at V1A.<anonymous> (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:1783)\n    at async V1A.parseAsync (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:517:4184)\n    at async uF5 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2297:5972)\n    at async mF5 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:2293:17456)","timestamp":"2025-06-01T21:52:06.381Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:481:14)\n    at Socket.emit (node:events:518:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-06-01T21:52:06.949Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at YK (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7815)\n    at file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7551\n    at Array.map (<anonymous>)\n    at Rd (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7542)\n    at Kz2 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:11838)\n    at sw (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n    at uO (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n    at mO (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n    at y$ (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n    at KE (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-01T21:52:16.694Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at YK (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7815)\n    at file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7551\n    at Array.map (<anonymous>)\n    at Rd (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:7542)\n    at Kz2 (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:11838)\n    at sw (file:///Users/brynnjknight/.nvm/versions/node/v22.15.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n    at uO (file:///Users/brynnjknight/.nvm/versio

Note: Error logs were truncated.

brynnjocelyn avatar Jun 01 '25 22:06 brynnjocelyn

Thanks for the report. Can you give a rough estimate of how large your paste is? (Number of characters/lines) Also, do you see an error, a flickering screen, a frozen screen, or just that the "Pasting text..." message fails to disappear?

dicksontsai avatar Jun 02 '25 07:06 dicksontsai

I have the same issue. I attach the json I am trying to paste at the end. I see the message "Pasting text.." stuck and I cannot click Enter to continue.

{
  "plot_data": {
    "main": {
      "data": [
        {
          "x": [
            2.9090921623684842, -0.8724540988863349, -1.1410184295207564,
            1.1474190063172367, 1.1405929420714365, 0.5988267791151775,
            0.0910025728116066, -1.4389912771268814, 2.4586607070342383,
            0.7050410629717322, -0.573339720386775, -2.6963676089378907,
            -1.107786368946118, -0.3672543149385785, 1.145682099050238,
            -0.4445344091666375, -0.2231625888892187, -0.5074505382217395,
            2.3462523297763944, 3.430922932964127, 2.7756608736147563,
            0.7001915998328997, 0.3043252990323146, 0.5948305097665553,
            0.3446290395387367, 0.8658648867700754, -0.8661603002237591,
            0.42396517968815955, 1.3026423551431616, 1.1268784089005746,
            1.2978726471082818, -0.41749518623707826, -0.3774581664052209,
            0.2263946351983242, -3.6745191281595084, 0.9824979466178908,
            0.5635192856222571, -1.391686709762701, 2.135279332443499,
            -1.1087452281048025, 0.8212795180177964, 2.1697802915311777,
            3.135412570613333, 1.6431459139632374, -2.4076817229723635,
            1.4096113471238652, 1.3298895360528897, 2.1511362915098102,
            -0.38567179556614073, -2.7005776053066453, 3.431205925149845,
            -0.05294506861128973, -0.32214966361052955, -1.2596247989531202,
            -0.23954696546405232, -0.5393801451396866, -1.9700735762154418,
            -1.3299870092035373, 2.4545557747243816, -1.3163891218200219,
            0.09001724463496492, -1.8576049089349334, -1.5340475405119585,
            3.4367035597956987, 2.046689715062162, -1.953002217581441,
            -0.5769106968873814, 0.31186889001099943, -0.31673212204507234,
            -0.5008412167869656, 1.2775337886388274, 1.6765181038723447,
            -2.298354147298851, -0.276165655507157, 1.4541477052647427,
            1.96879452958575, -1.9653751210535155, -1.656579010171924,
            2.887777555787753, -1.1694685871236787, -1.5000145837598835,
            -0.3748136165067677, 0.5265381794896447, -3.197686810751323,
            -2.5641131382480227, 0.9701745783191652, -1.7435892532923212,
            -1.2719362646749566, -0.3835920617981251, -1.1203597696885501,
            -2.2670237496218983, -0.1962511695688571, 0.49982757996040955,
            -1.4932557515254128, 1.0088711573344762, -2.24237984136724,
            -2.0582047879501233, 0.7444856812193045, -1.7170631373424479,
            -0.2494289270654618, 1.266244309257102, -0.666387794663154,
            1.4878228221775678, 0.8948539392890317, 3.2329797743400746,
            -0.6241411883331651, -1.7675043816382925, 1.365654509756714,
            -0.3019319027211184, -3.358664376256957, 2.2965325287266363,
            -3.6644610181785433, 2.0379399033804195, 0.5600347713129948,
            -2.079762598210808, 0.3696125629994822, -2.375670102184103,
            1.0833934161635768, -0.603309572797097
          ],
          "y": [
            -2.494400801448494, -3.175210856470413, 1.9543056938559578,
            2.992990114249217, -3.5728561918517476, -3.66770420066311,
            1.697431041729253, 1.188257659769955, 2.3375217835441524,
            0.8083351538551827, -0.8969810960134585, -2.8956249968008136,
            -1.9231424846662641, -4.57168579223369, -2.964002558638381,
            -2.256095610669149, 3.721017659471879, -2.392660693421418,
            -4.052980716303723, -2.4875937387475324, -2.739329611490963,
            2.063706221143196, 1.067013915212028, -2.2415722990805733,
            -0.9207727617638051, 1.6192835827426744, 1.938588383600033,
            0.9870597236787455, 3.890377687843075, -2.6284765941103627,
            -2.0028457803822493, 1.174349046431987, -0.9276923282643292,
            2.9458942009896254, 1.5850485524420215, -2.425933051978532,
            0.20011579930969542, 1.7574963884852661, -5.056661394513816,
            -4.1429226477956504, -1.3983080873106881, -3.196100339950151,
            -1.9808282294652941, 0.4380031419044423, -3.0765385767000106,
            -2.453254965485276, 1.0894120185134417, 2.0956933619546128,
            -0.8565432239943146, 1.4044491780659598, -4.504043238404334,
            0.13002780678554543, -1.1744689138084075, 3.777825454351302,
            1.0202135485709503, -4.1900996863582725, 1.695462313309029,
            -2.6469369994826413, 3.724295787481978, 1.025295798379268,
            2.808883078238227, 1.660519529105818, -4.557322243023934,
            -3.618312716137679, -2.4461524739420226, -2.8483226803691046,
            4.8331000521596215, -2.209748168241151, -4.635307581906195,
            0.8746836307528932, -5.278976669194842, 1.6390935605270132,
            -3.323986360664974, 0.012919216079018922, -0.6024148824884301,
            -3.913229162603713, 0.9221286852449907, -1.461583586296269,
            0.2927678408219679, 2.081092570092561, 3.401353417825752,
            2.497319042385451, 6.107920206962091, -0.32607179518293194,
            2.1441567353783424, 3.9044127095108543, 0.33272122742476745,
            0.5839434821485096, -0.37726483995187526, 0.8124687833134172,
            -1.6516889941561974, 3.4995672388682313, 5.568986695842781,
            -2.6376761794599775, 3.918879274012872, -0.8750596723804919,
            -1.3052230918269447, 2.1194069238447075, 3.1509971329729325,
            5.0561848818281865, 4.5275991793910135, 3.284802395779508,
            -4.42554043923762, -0.1329950892740649, -3.795952355513528,
            2.8781325216206364, 2.0375019316609673, 2.6994709831150696,
            3.3135303175568676, -2.153172243795414, -2.462474137400923,
            -0.09431566342925012, -4.915379158433955, 6.119540932743178,
            4.608433325429578, 5.9007721811743, 0.865416874490707,
            4.396429890848674, -3.2221688136426234
          ],
          "mode": "markers",
          "type": "scatter",
          "name": "t-SNE",
          "marker": {
            "size": 10,
            "color": [
              0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
              19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
              35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
              51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
              67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
              83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
              99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
              112, 113, 114, 115, 116, 117, 118
            ],
            "colorscale": "Viridis",
            "showscale": false
          },
          "text": [
            "Sample 1",
            "Sample 2",
            "Sample 3",
            "Sample 4",
            "Sample 5",
            "Sample 6",
            "Sample 7",
            "Sample 8",
            "Sample 9",
            "Sample 10",
            "Sample 11",
            "Sample 12",
            "Sample 13",
            "Sample 14",
            "Sample 15",
            "Sample 16",
            "Sample 17",
            "Sample 18",
            "Sample 19",
            "Sample 20",
            "Sample 21",
            "Sample 22",
            "Sample 23",
            "Sample 24",
            "Sample 25",
            "Sample 26",
            "Sample 27",
            "Sample 28",
            "Sample 29",
            "Sample 30",
            "Sample 31",
            "Sample 32",
            "Sample 33",
            "Sample 34",
            "Sample 35",
            "Sample 36",
            "Sample 37",
            "Sample 38",
            "Sample 39",
            "Sample 40",
            "Sample 41",
            "Sample 42",
            "Sample 43",
            "Sample 44",
            "Sample 45",
            "Sample 46",
            "Sample 47",
            "Sample 48",
            "Sample 49",
            "Sample 50",
            "Sample 51",
            "Sample 52",
            "Sample 53",
            "Sample 54",
            "Sample 55",
            "Sample 56",
            "Sample 57",
            "Sample 58",
            "Sample 59",
            "Sample 60",
            "Sample 61",
            "Sample 62",
            "Sample 63",
            "Sample 64",
            "Sample 65",
            "Sample 66",
            "Sample 67",
            "Sample 68",
            "Sample 69",
            "Sample 70",
            "Sample 71",
            "Sample 72",
            "Sample 73",
            "Sample 74",
            "Sample 75",
            "Sample 76",
            "Sample 77",
            "Sample 78",
            "Sample 79",
            "Sample 80",
            "Sample 81",
            "Sample 82",
            "Sample 83",
            "Sample 84",
            "Sample 85",
            "Sample 86",
            "Sample 87",
            "Sample 88",
            "Sample 89",
            "Sample 90",
            "Sample 91",
            "Sample 92",
            "Sample 93",
            "Sample 94",
            "Sample 95",
            "Sample 96",
            "Sample 97",
            "Sample 98",
            "Sample 99",
            "Sample 100",
            "Sample 101",
            "Sample 102",
            "Sample 103",
            "Sample 104",
            "Sample 105",
            "Sample 106",
            "Sample 107",
            "Sample 108",
            "Sample 109",
            "Sample 110",
            "Sample 111",
            "Sample 112",
            "Sample 113",
            "Sample 114",
            "Sample 115",
            "Sample 116",
            "Sample 117",
            "Sample 118",
            "Sample 119"
          ],
          "hovertemplate": "%{text}<br>Dim1: %{x:.2f}<br>Dim2: %{y:.2f}<extra></extra>"
        }
      ],
      "layout": {
        "title": "t-SNE Plot",
        "xaxis": { "title": "Dimension 1" },
        "yaxis": { "title": "Dimension 2" },
        "hovermode": "closest",
        "showlegend": false
      }
    }
  },
  "metadata": {
    "datasets": ["Metabolomics"],
    "num_variables": 351,
    "n_components": 2,
    "num_observations": 119
  }
}

mcornejo avatar Jun 02 '25 12:06 mcornejo

@mcornejo our next release should fix the problem you observe (with "Pasting text..." remaining).

Leaving this issue open for now if @brynnjocelyn saw a different type of issue here.

dicksontsai avatar Jun 02 '25 15:06 dicksontsai

v1.0.8 has the "Pasting text..." fix. If you see additional issues, please re-open or file a new issue.

dicksontsai avatar Jun 03 '25 16:06 dicksontsai

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 13 '25 14:08 github-actions[bot]