Skip to content

Commit 35e8f05

Browse files
mzihlmannMartin Zihlmann
andauthored
fix(httpapi): drop x\b workaround for fixed Claude Code 0.2.70 paste-echo bug (#224)
Co-authored-by: Martin Zihlmann <martin.zihlmann@scandit.com>
1 parent 00ff7ff commit 35e8f05

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)