Skip to content

Submit echoed agent prompts using the current keyboard protocol - #1058

Merged
Kuddev merged 1 commit into
mainfrom
fix/deferred-agent-submit-1120
Nov 20, 2026
Merged

Kuddev merged 1 commit into
mainfrom
fix/deferred-agent-submit-1120

Conversation

@Kuddev

@Kuddev Kuddev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

When Claude Code negotiates a new keyboard protocol after receiving pasted text, Pebrel can submit the buffered Enter in the old encoding and leave the prompt in the editor. Both terminal adapters now wait for the existing echo barrier and encode the submission using the active protocol. The Claude path sends one Right key before Enter to end its paste.

Extracted from @yjjheizhu's #919. The regression covers transitions in both directions between legacy VT and CSI u, a subsequent wakeup, and Windows key records. Local Rust formatting and architecture checks passed. The broader worker callback issue remains tracked in #83.

@github-actions github-actions Bot added the size/M 101–500 行 label Nov 20, 2026
@Kuddev
Kuddev merged commit d4a5857 into main Nov 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M 101–500 行

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants