Skip to content

Revert "hack around a bug in claude code 0.2.70"#224

Open
mzihlmann wants to merge 1 commit into
coder:mainfrom
mzihlmann:remove-janky-x-hack
Open

Revert "hack around a bug in claude code 0.2.70"#224
mzihlmann wants to merge 1 commit into
coder:mainfrom
mzihlmann:remove-janky-x-hack

Conversation

@mzihlmann
Copy link
Copy Markdown

Fixes #223.

The x\b workaround added in b732081 to mask Claude Code 0.2.70's bracketed-paste echo bug now produces a visible stray x at the end of every prompt with current Claude Code (2.1.x). The original commit message promised removal "a couple of days after the new version is released" — almost a year on, the hack is still here and is now actively breaking input (e.g. slash-command argument parsing receives /cmd argx instead of /cmd arg).

The companion removeDuplicateClaude_0_2_70_Output function from the original commit is already gone from the codebase, so this reverts only the lib/httpapi/claude.go portion.

Verified locally against Claude Code 2.1.143: prompts render cleanly without the trailing x, and slash-command arguments parse correctly.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stray "x" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround)

1 participant