René's URL Explorer Experiment


Title: Stray "x" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround) · Issue #223 · coder/agentapi · GitHub

Open Graph Title: Stray "x" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround) · Issue #223 · coder/agentapi

X Title: Stray "x" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround) · Issue #223 · coder/agentapi

Description: Summary Every message sent through agentapi to Claude Code produces a visible stray x character in the prompt area. The x comes from a workaround introduced in b732081 almost a year ago, which the commit itself promised to remove "a coup...

Open Graph Description: Summary Every message sent through agentapi to Claude Code produces a visible stray x character in the prompt area. The x comes from a workaround introduced in b732081 almost a year ago, which the ...

X Description: Summary Every message sent through agentapi to Claude Code produces a visible stray x character in the prompt area. The x comes from a workaround introduced in b732081 almost a year ago, which the ...

Opengraph URL: https://github.com/coder/agentapi/issues/223

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stray \"x\" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround)","articleBody":"## Summary\n\nEvery message sent through agentapi to Claude Code produces a visible stray `x` character in the prompt area. The `x` comes from a workaround introduced in [b732081](https://github.com/coder/agentapi/commit/b732081cbbe11a97fcbe1ac772b3a0fd80f36547) almost a year ago, which the commit itself promised to remove \"a couple of days after the new version is released.\"\n\n## Source of the bug\n\n`lib/httpapi/claude.go`, in `formatClaudeCodeMessage`:\n\n```go\n// janky hack: send a random character and then a backspace because otherwise\n// Claude Code echoes the startSeq back to the terminal.\n// This basically simulates a user typing and then removing the character.\nparts = append(parts, st.MessagePartText{Content: \\\"x\\b\\\", Hidden: true})\n```\n\nThe hack was a workaround for a bug in Claude Code 0.2.70 (anthropics/claude-code#803). With current Claude Code versions, the bracketed-paste start sequence is no longer echoed, so the masking `x` is rendered straight into the prompt area and the `\\b` has nothing to erase — net result is a visible `x` on every message.\n\n## Environment\n\n- agentapi **v0.12.1** (latest release as of writing)\n- claude-code **2.1.143**\n\n## Notes\n\n- PR #208 (merged 2026-04-10) touched this same file but only added a doc comment to `formatPaste`; the `x\\b` line was left in place.\n- Possibly related to #207 (\\\"Claude Code 2.1.83 breaks terminal capture\\\") — both look like consequences of Claude Code's rendering pipeline no longer behaving the way the 0.2.70-era workarounds assumed.\n\n## Proposed fix\n\nRemove the `parts = append(parts, st.MessagePartText{Content: \\\"x\\b\\\", Hidden: true})` line. The original Claude Code bug it worked around is long fixed.","author":{"url":"https://github.com/mzihlmann","@type":"Person","name":"mzihlmann"},"datePublished":"2026-05-18T09:00:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/223/agentapi/issues/223"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:59421a49-2786-a831-7afc-d29b1b32d66e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE98E:9E060:E58FE3:14A3AB2:6A4E4FE0
html-safe-nonce7eaac1558aa9e40a3de05c3571027621c54a63896e4e4b5563e8a4d30e40f6c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOThFOjlFMDYwOkU1OEZFMzoxNEEzQUIyOjZBNEU0RkUwIiwidmlzaXRvcl9pZCI6IjcyMDQyMjk2ODg1NDkzMzA5MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb964cafbc43dd76046b0cb9c0d8fb854e32af8330b88398e608f35efea70cb57
hovercard-subject-tagissue:4467723832
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/agentapi/223/issue_layout
twitter:imagehttps://opengraph.githubassets.com/12361ce75dbdec69705b9a28014b70746ef6a51d50036ddccba67e1bf21b3f86/coder/agentapi/issues/223
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/12361ce75dbdec69705b9a28014b70746ef6a51d50036ddccba67e1bf21b3f86/coder/agentapi/issues/223
og:image:altSummary Every message sent through agentapi to Claude Code produces a visible stray x character in the prompt area. The x comes from a workaround introduced in b732081 almost a year ago, which the ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemzihlmann
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/coder/agentapi git https://github.com/coder/agentapi.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id961832048
octolytics-dimension-repository_nwocoder/agentapi
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id961832048
octolytics-dimension-repository_network_root_nwocoder/agentapi
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef344f1eab54fc7dfc02d0d018cda7e158c3db65c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/agentapi/issues/223#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fagentapi%2Fissues%2F223
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fagentapi%2Fissues%2F223
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fagentapi
Reloadhttps://github.com/coder/agentapi/issues/223
Reloadhttps://github.com/coder/agentapi/issues/223
Reloadhttps://github.com/coder/agentapi/issues/223
Please reload this pagehttps://github.com/coder/agentapi/issues/223
coder https://github.com/coder
agentapihttps://github.com/coder/agentapi
Notifications https://github.com/login?return_to=%2Fcoder%2Fagentapi
Fork 130 https://github.com/login?return_to=%2Fcoder%2Fagentapi
Star 1.4k https://github.com/login?return_to=%2Fcoder%2Fagentapi
Code https://github.com/coder/agentapi
Issues 36 https://github.com/coder/agentapi/issues
Pull requests 4 https://github.com/coder/agentapi/pulls
Actions https://github.com/coder/agentapi/actions
Projects https://github.com/coder/agentapi/projects
Security and quality 1 https://github.com/coder/agentapi/security
Insights https://github.com/coder/agentapi/pulse
Code https://github.com/coder/agentapi
Issues https://github.com/coder/agentapi/issues
Pull requests https://github.com/coder/agentapi/pulls
Actions https://github.com/coder/agentapi/actions
Projects https://github.com/coder/agentapi/projects
Security and quality https://github.com/coder/agentapi/security
Insights https://github.com/coder/agentapi/pulse
#224https://github.com/coder/agentapi/pull/224
Stray "x" appears at the end of every prompt (leftover Claude Code 0.2.70 workaround)https://github.com/coder/agentapi/issues/223#top
#224https://github.com/coder/agentapi/pull/224
https://github.com/mzihlmann
mzihlmannhttps://github.com/mzihlmann
on May 18, 2026https://github.com/coder/agentapi/issues/223#issue-4467723832
b732081https://github.com/coder/agentapi/commit/b732081cbbe11a97fcbe1ac772b3a0fd80f36547
anthropics/claude-code#803https://github.com/anthropics/claude-code/issues/803
fix(screentracker): make writeStabilize Phase 1 non-fatal when agents don't echo input #208https://github.com/coder/agentapi/pull/208
Claude Code 2.1.83 breaks terminal capture #207https://github.com/coder/agentapi/issues/207
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.