charmbracelet / charmbracelet/bubbletea

Windows: clipboard paste produces garbled characters that can't be deleted

Open
#1,712 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

## Problem
On Windows, pasting text from clipboard produces garbled/mojibake characters. These corrupted characters get inserted into the text input and cannot be deleted with backspace.

## Screenshot
![garbled-paste](https://user-images.githubusercontent.com/placeholder.png)

## Environment
- OS: Windows
- bubbletea version: latest

## Expected Behavior
Pasted text should appear correctly and be fully editable/deletable.

## Actual Behavior
Pasted content appears as unreadable garbled characters and becomes stuck in the input field.

Contributor guide

Open the contributing guide

Research direction

Reproduce the paste behavior on Windows using the latest bubbletea version, comparing clipboard input with normal typing and deletion. Trace the paste handling from the reproduction and verify that pasted text remains readable and can be fully removed with backspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.