You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Website citations in assistant responses render as garbled text #30979
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
Open T3 Code and start a conversation with a provider/model that supports web search.
Send a prompt such as: “Search the web for the latest Node.js release and cite the official website in your answer.”
Wait for the assistant to fetch the web results and display its response.
Inspect the website citations and the text displayed alongside their links.
Expected behavior
Website citations in the assistant’s response should render as readable, clickable references. The website links and surrounding text should display correctly without garbled characters or raw citation markup.
Actual behavior
When the assistant fetches web results and includes website citations in its response, the text displayed with the website links renders incorrectly and appears garbled or malformed.
This occurs in the assistant’s generated response, without copying or pasting any citations.
Reproduced on T3 Code desktop 0.1.7 (stable), Linux arm64 (Omarchy/Arch on a MacBook Air M1), local server, Codex provider. This is a fresh install.
Diagnosis: after a web search, Codex's final answer (item/completed, agentMessage, phase: "final_answer") has its private-use citation markers inline in item.text:
…called **"prox."** citeturn262013search1
…including switching when one hits its usage limit. citeturn262013search1turn262013search2
0.1.7 doesn't strip or interpret these: CodexAdapterV2.ts passes item.text through unchanged, and nothing in apps/ or packages/ handles U+E200–U+E202. The private-use characters render invisibly, so the chat shows citeturn262013search1turn262013search2 at the end of the sentence.
Repro: in the desktop app, use Codex and ask a question that makes it search the web (e.g. "search the web for X and tell me what you find"). The final answer ends with cite…turnNsearchM… text.
This confirms the issue is on Linux too, not just macOS. PR #31053 looks like it addresses exactly these markers.
Triage by Claude Code (Claude Opus 5.5) via t3 triage.
Also reproduced on T3 Code desktop 0.1.7 (stable), macOS arm64, local server, Codex provider (gpt-6.1-sol).
The final answer showed citeturn692298search8turn692298search6 inline. The raw item/completedagentMessage (phase: "final_answer") has U+E200 cite U+E202 turn692298search8 U+E202 turn692298search6 U+E201 in item.text. memoryCitation is null, and nothing else in the payload carries citation data.
Two details that may help:
The search did not show up as a webSearch item. It ran as an mcpToolCall on the codex_apps server, tool search_service.web_run. A fix that keys off web-search items would miss this path. fix(shared): hide web-search citation markers in assistant messages #31053 strips the markers from the text, so it covers it.
Codex was using a custom model_provider (an OpenAI-compatible proxy with wire_api = "responses"), not the default OpenAI provider. The markers come from the model either way. This isn't specific to one backend.
#31053's WEB_CITATION_MARKER regex matches the multi-id form above (cite + two turn…searchN ids), so it should fix this case.
Triage by Claude Code (Claude Opus 5.5) via t3 triage.
A reliable way to reproduce this, which may help with the before/after evidence on #36338.
The markers stay raw whenever a client-side tool call sits between the web search and the answer. In my local Codex session logs (162 assistant messages containing markers), every answer whose search ran in an earlier model request of the same turn kept raw markers (85 of 85), with annotations: [] on the message. When the search and the answer were in the same request, the service usually returned resolved links with url_citation annotations (42 of 47).
Prompt that reproduced it on Codex 0.167.0-alpha.4.1 with gpt-6-astra: "Do these steps in order. Step 1: search the web for the current Node.js LTS release line and the current Python stable release, opening the official pages. Step 2: run date -u, then uname -m. Step 3: only after both commands return, write the final answer with a citation for each." The same question without the shell step came back with normal links in 4 of 4 runs.
All 367 markers in those logs fit the pattern #36338 hides (U+E200, cite, U+E202-separated turnNsearchN or turnNviewN ids, U+E201).
I found another marker shape in a Codex final answer on T3 Code desktop v0.1.12 (macOS arm64). This synthetic Markdown reproduces the display and copy behavior. The Unicode escapes stand for literal characters in the input.
constmarkdown="See the documentation. 【0†source】\uE200cite\uE202turn0view0\uE201";
I ran this through both the Markdown remark plugin and the copy helper from #36338 at 225737f6. Both produce:
See the documentation. 【0†source】
The private-use marker is removed. The adjacent numbered 【0†source】 still appears as raw text in the reply and the clipboard. A regression case for this exact combination would cover the version I hit. Ordinary bracketed Chinese text such as 【说明】 and literal marker examples inside code should keep their original spelling.
I also observed this in the iOS client connected to a macOS host. Multiple view IDs in a single Codex citation marker were rendered as text and glyphs after an otherwise readable Chinese paragraph.
A minimal input to the assistant Markdown renderer is below. The escapes represent literal private-use characters in the input.
The expected readable fallback is 示例说明。. The reply can expose a clickable source when the provider supplies its URL. In this case the assistant item contained the internal marker and lacked a URL mapping, so the IDs alone cannot restore the source links.
Here is the reference implementation and regression code, based on 57c1ddc8. It strips complete markers in Markdown prose, preserving literal inline and fenced code and ordinary links. The shared Markdown and web timeline suites passed locally (36 and 133 tests). I exercised the fallback with a synthetic reply in the web client. The iOS observation was on the shipped client, and the patched native client has not been exercised. #36338 already addresses the same fallback and covers additional Markdown cases, so the branch is a reference for that existing PR.
Activity
adner commentedon Nov 6, 2026
Reproduced on T3 Code desktop 0.1.7 (stable), Linux arm64 (Omarchy/Arch on a MacBook Air M1), local server, Codex provider. This is a fresh install.
Diagnosis: after a web search, Codex's final answer (
item/completed,agentMessage,phase: "final_answer") has its private-use citation markers inline initem.text:0.1.7 doesn't strip or interpret these:
CodexAdapterV2.tspassesitem.textthrough unchanged, and nothing inapps/orpackages/handles U+E200–U+E202. The private-use characters render invisibly, so the chat showsciteturn262013search1turn262013search2at the end of the sentence.Repro: in the desktop app, use Codex and ask a question that makes it search the web (e.g. "search the web for X and tell me what you find"). The final answer ends with
cite…turnNsearchM…text.This confirms the issue is on Linux too, not just macOS. PR #31053 looks like it addresses exactly these markers.
Triage by Claude Code (Claude Opus 5.5) via
t3 triage.WolffTech commentedon Nov 8, 2026
Also reproduced on T3 Code desktop 0.1.7 (stable), macOS arm64, local server, Codex provider (
gpt-6.1-sol).The final answer showed
citeturn692298search8turn692298search6inline. The rawitem/completedagentMessage(phase: "final_answer") hasU+E200 cite U+E202 turn692298search8 U+E202 turn692298search6 U+E201initem.text.memoryCitationis null, and nothing else in the payload carries citation data.Two details that may help:
webSearchitem. It ran as anmcpToolCallon thecodex_appsserver, toolsearch_service.web_run. A fix that keys off web-search items would miss this path. fix(shared): hide web-search citation markers in assistant messages #31053 strips the markers from the text, so it covers it.model_provider(an OpenAI-compatible proxy withwire_api = "responses"), not the default OpenAI provider. The markers come from the model either way. This isn't specific to one backend.#31053's
WEB_CITATION_MARKERregex matches the multi-id form above (cite+ twoturn…searchNids), so it should fix this case.Triage by Claude Code (Claude Opus 5.5) via
t3 triage.don4of4 commentedon Nov 22, 2026
A reliable way to reproduce this, which may help with the before/after evidence on #36338.
The markers stay raw whenever a client-side tool call sits between the web search and the answer. In my local Codex session logs (162 assistant messages containing markers), every answer whose search ran in an earlier model request of the same turn kept raw markers (85 of 85), with
annotations: []on the message. When the search and the answer were in the same request, the service usually returned resolved links withurl_citationannotations (42 of 47).Prompt that reproduced it on Codex 0.167.0-alpha.4.1 with gpt-6-astra: "Do these steps in order. Step 1: search the web for the current Node.js LTS release line and the current Python stable release, opening the official pages. Step 2: run
date -u, thenuname -m. Step 3: only after both commands return, write the final answer with a citation for each." The same question without the shell step came back with normal links in 4 of 4 runs.All 367 markers in those logs fit the pattern #36338 hides (U+E200,
cite, U+E202-separatedturnNsearchNorturnNviewNids, U+E201).aishuaikang commentedon Nov 26, 2026
I found another marker shape in a Codex final answer on T3 Code desktop v0.1.12 (macOS arm64). This synthetic Markdown reproduces the display and copy behavior. The Unicode escapes stand for literal characters in the input.
I ran this through both the Markdown remark plugin and the copy helper from #36338 at
225737f6. Both produce:The private-use marker is removed. The adjacent numbered
【0†source】still appears as raw text in the reply and the clipboard. A regression case for this exact combination would cover the version I hit. Ordinary bracketed Chinese text such as【说明】and literal marker examples inside code should keep their original spelling.wangfeng87 commentedon Dec 1, 2026
I also observed this in the iOS client connected to a macOS host. Multiple
viewIDs in a single Codex citation marker were rendered as text and glyphs after an otherwise readable Chinese paragraph.A minimal input to the assistant Markdown renderer is below. The escapes represent literal private-use characters in the input.
The expected readable fallback is
示例说明。. The reply can expose a clickable source when the provider supplies its URL. In this case the assistant item contained the internal marker and lacked a URL mapping, so the IDs alone cannot restore the source links.Here is the reference implementation and regression code, based on
57c1ddc8. It strips complete markers in Markdown prose, preserving literal inline and fenced code and ordinary links. The shared Markdown and web timeline suites passed locally (36 and 133 tests). I exercised the fallback with a synthetic reply in the web client. The iOS observation was on the shipped client, and the patched native client has not been exercised. #36338 already addresses the same fallback and covers additional Markdown cases, so the branch is a reference for that existing PR.