Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Computer Use ends browser work with a standalone
`::browser-complete{title="…"}` line. The chat renderers only knew three
Codex directives, so this one rendered and copied as literal text on web,
desktop and mobile. Treat the standalone marker as metadata: the web
renderer and copy drop it, and the shared parser mobile uses splits it out
of the message. Inline and fenced occurrences stay as written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Standalone Codex browser-complete metadata is removed from rendered and copied messages while literal inline forms remain visible. The change is limited to text presentation and does not alter stored messages or external systems. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The mobile Copy message button copied the reply's raw text, so a standalone ::browser-complete line still reached the clipboard. Copy now goes through the shared Codex directive copy adapter, as web does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate b22f794
Splitting the reply at the hidden marker rendered the text around it as separate native Markdown views, which dropped the gap between the paragraphs on iOS. Keep the reply as one document, let the inline pass remove the marker, and skip a segment that is empty without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate b7a3682
|
The automated pipeline stopped on this pull request and will not merge it: the proof could not be captured: the agent's turn was stopped: it was not done after 2h It stays open for a person to finish or close. |
When Codex Computer Use finishes browser work, it sends a standalone
::browser-complete{title="…"}line. The chat showed that line as plain assistant text on web, desktop and mobile, and copying the message included it. Now the standalone marker is treated as metadata: it is not rendered and not copied. Inline and fenced occurrences still show as written.wordsHastlistsbrowser-completeas a Codex directive and drops the leaf (own-line) form.renderCodexDirectivesForCopycopies nothing for it.codexMarkdownDirectivesrecognises the::browser-completeleaf directive.splitCodexArtifactTemplateMarkdowncuts it out of the message, and the inline and copy renderers replace it with nothing.Fixes #45288
Reproduction on main
Commit origin/main 826ca1d. (1) Renderer: wordsHast('::browser-complete{title="Checked rebuild options"}', assistant options) returns
::browser-complete{title="Checked rebuild options"}
, and renderCodexDirectivesForCopy returns the input unchanged. (2) Real app: started the web dev server from a fresh worktree with T3CODE_DEV_SEED=0, paired in a browser, opened a new thread with the Codex provider (GPT-6-Luna, via the real Codex adapter), and asked it to reply with exactly::browser-complete{title="Checked rebuild options"}. Codex's assistant message showed in the chat as the literal line::browser-complete{title="Checked rebuild options"}, including the colons, braces and attribute (DOM:::browser-complete{title="Checked rebuild options"}
). This run had no Computer Use plugin on the Linux VM, so Codex was prompted to emit the exact line the plugin's instructions specify; the Markdown path is the same. Mobile was not run on a device: its ThreadFeed uses the same shared codexMarkdownDirectives helpers, which recognise only codex-file-citation, codex-followup and artifact-template. Failing tests (2) were added to apps/web/src/markdown/wordsHast.test.ts on factory/repro-45288 (commit 5bd21eb).Evidence
Being captured: before and after in the real app. This section is filled in before the pull request can merge.
Tests
vp test run src/markdown/wordsHast.test.ts -t browser-complete(apps/web, before the fix): 2 failed, which reproduces the bugvp test run src/markdown/(apps/web): 89 passed, including the 2 repro tests and a new test for the inline and fenced formsvp test run src/codexMarkdownDirectives.test.ts(packages/shared): 35 passed, including a new browser-complete testvp test run src/components/chat/MessagesTimeline.logic.test.ts src/components/ChatMarkdown(apps/web): 210 passedvp run check:changed: format, lint, knip, typecheck (38 packages), tests and react compiler all passedNot in this change
Done.\n\n\n\nAfter.). They are not collapsed.Who did the work
Run by the t3code factory in T3 Code.