From 7c15cb0e1096c35a41b2142a5a2e9fcf5373f7f5 Mon Sep 17 00:00:00 2001 From: Martin Zihlmann Date: Mon, 18 May 2026 11:12:05 +0200 Subject: [PATCH] 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: b732081cbbe11a97fcbe1ac772b3a0fd80f36547 --- lib/httpapi/claude.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/httpapi/claude.go b/lib/httpapi/claude.go index 9ccefdd2..10c5830c 100644 --- a/lib/httpapi/claude.go +++ b/lib/httpapi/claude.go @@ -22,10 +22,6 @@ func formatPaste(message string) []st.MessagePart { func formatClaudeCodeMessage(message string) []st.MessagePart { parts := make([]st.MessagePart, 0) - // janky hack: send a random character and then a backspace because otherwise - // Claude Code echoes the startSeq back to the terminal. - // This basically simulates a user typing and then removing the character. - parts = append(parts, st.MessagePartText{Content: "x\b", Hidden: true}) parts = append(parts, formatPaste(message)...) return parts