Skip to content

Commit 7c15cb0

Browse files
author
Martin Zihlmann
committed
Revert "hack around a bug in claude code 0.2.70"
The `x\b` workaround for the Claude Code 0.2.70 bracketed-paste echo bug now produces a visible stray `x` at the end of every prompt with current Claude Code. reverts: b732081
1 parent 00ff7ff commit 7c15cb0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/httpapi/claude.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ func formatPaste(message string) []st.MessagePart {
2222

2323
func formatClaudeCodeMessage(message string) []st.MessagePart {
2424
parts := make([]st.MessagePart, 0)
25-
// janky hack: send a random character and then a backspace because otherwise
26-
// Claude Code echoes the startSeq back to the terminal.
27-
// This basically simulates a user typing and then removing the character.
28-
parts = append(parts, st.MessagePartText{Content: "x\b", Hidden: true})
2925
parts = append(parts, formatPaste(message)...)
3026

3127
return parts

0 commit comments

Comments
 (0)