Registry Mirror
Skip to content

Conversation

@juliusmarminge

Copy link
Copy Markdown
Member

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.

  • Web and desktop: wordsHast lists browser-complete as a Codex directive and drops the leaf (own-line) form. renderCodexDirectivesForCopy copies nothing for it.
  • Mobile and shared: codexMarkdownDirectives recognises the ::browser-complete leaf directive. splitCodexArtifactTemplateMarkdown cuts 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 bug
  • vp test run src/markdown/ (apps/web): 89 passed, including the 2 repro tests and a new test for the inline and fenced forms
  • vp test run src/codexMarkdownDirectives.test.ts (packages/shared): 35 passed, including a new browser-complete test
  • vp test run src/components/chat/MessagesTimeline.logic.test.ts src/components/ChatMarkdown (apps/web): 210 passed
  • vp run check:changed: format, lint, knip, typecheck (38 packages), tests and react compiler all passed

Not in this change

  • Showing a small completion status with the title instead of hiding the marker would be a new visible UI element, so it was left out.
  • When the marker is removed from the middle of a message, the copied text keeps the blank lines around it (for example Done.\n\n\n\nAfter.). They are not collapsed.

Who did the work

  • Written by Claude Opus 5.5, in Claude Code
  • Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
  • Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5

Run by the t3code factory in T3 Code.

juliusmarminge and others added 2 commits November 29, 2026 04:35
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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 29, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 29, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at b7a3682

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.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 826ca1d · PR result: b7a3682 · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared Markdown pipeline and web Words renderer omit standalone ::browser-complete directives from rendered output. Web copy conversion removes standalone markers. Mobile applies directive-aware rendering when checking assistant segments and copying assistant messages. Inline and fenced forms remain visible.

Changes: Browser-complete directive handling

Layer / File(s) Summary
Shared directive parsing and rendering
packages/shared/src/codexMarkdownDirectives.ts, packages/shared/src/codexMarkdownDirectives.test.ts
The shared parser hides standalone browser-complete directives from rendered output. Tests cover standalone and inline rendering, and confirm that the artifact-template splitter leaves standalone and fenced markers in the Markdown segment.
Web rendering and copy handling
apps/web/src/markdown/wordsHast.ts, apps/web/src/markdown/markdownText.ts, apps/web/src/markdown/wordsHast.test.ts
The Words renderer omits standalone browser-complete directives. Copy conversion removes standalone markers and preserves inline markers. Tests also verify that fenced markers remain visible.
Mobile assistant rendering and copy
apps/mobile/src/features/threads/ThreadFeed.tsx
Mobile checks assistant Markdown segments for emptiness after directive rendering. Assistant message copy uses renderCodexDirectivesForCopy; sharing text is unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: iamshadmantaqi

Merge Risk: Minimal · up to b7a36

The change hides standalone browser-complete markers from chat and copied text while leaving inline and fenced forms visible. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: Codex browser-complete markers no longer render as raw text. It follows the conventional commit form, and it matches the main change in the raw summary, objectives, and des…
Description check Passed The description follows the template. It gives the problem, the change, a scope with a link to issue #45288, and a verification section with focused test commands and results. It also lists the open i…
Linked Issues check Passed [#45288] The issue allows hiding the standalone ::browser-complete marker or showing a compact status. The PR hides the marker. Shared and mobile path: the reviewed diff of packages/shared/src/codexMa…
Out of Scope Changes check Passed The readable shared diff touches only the browser-complete directive: its name constant, its leaf syntax entry, the hidden-match handling, the early-exit prefilters for the marker string, and the tran…
Full details: Title check

Explanation

The title names the change: Codex browser-complete markers no longer render as raw text. It follows the conventional commit form, and it matches the main change in the raw summary, objectives, and description. It is specific enough for a teammate to understand the primary change.

Full details: Description check

Explanation

The description follows the template. It gives the problem, the change, a scope with a link to issue #45288, and a verification section with focused test commands and results. It also lists the open items: the evidence section is still marked as pending, and the attribution sections are present. The Problem and Scope sections are brief but complete enough for review. The main gap is that the Evidence section says before-and-after captures are still being collected, so the UI proof is not yet in the description. The template requires before/after screenshots for UI changes.

Resolution

Before merge, attach the before-and-after screenshots of the chat in the Evidence section, as the template requires for UI changes. Optionally, state the Problem in one or two sentences near the top, because the template asks for that section explicitly.

Full details: Linked Issues check

Explanation

[#45288] The issue allows hiding the standalone ::browser-complete marker or showing a compact status. The PR hides the marker. Shared and mobile path: the reviewed diff of packages/shared/src/codexMarkdownDirectives.ts adds a flow leafDirective rule for browser-complete, a transform that converts the node to an empty paragraph with codexHidden, and a match collector that replaces it with empty text. The early-exit checks in renderCodexInlineDirectivesAsMarkdown and renderCodexDirectivesForCopy now recognize the marker. Inline occurrences and other directives keep their existing paths. Web and desktop: the wordsHast.ts and ThreadFeed.tsx diffs could not be read (changed blobs unavailable). The web result rests on the PR summary, which states that browser-complete is registered in CODEX_DIRECTIVES, that the leaf form becomes empty text, and that renderCodexDirectivesForCopy omits it. The author reports that the two wordsHast repro tests failed before the fix and pass after it; this review did not run them. The change since the previous reviewed head could not be read in full, so the earlier PASS is carried forward only where the summary still supports it. Mobile was not run on a device, which the issue permits.

Full details: Out of Scope Changes check

Explanation

The readable shared diff touches only the browser-complete directive: its name constant, its leaf syntax entry, the hidden-match handling, the early-exit prefilters for the marker string, and the transform. Existing artifact-template and file-citation paths are unchanged in the readable hunks. markdownText.ts, wordsHast.ts, and their tests are described in the summary as covering the same directive only. The ThreadFeed.tsx change (+3/-2 per summary) applies the shared copy adapter to the mobile copy path named in the issue. No unrelated change is shown in the available evidence. The wordsHast.ts and ThreadFeed.tsx text diffs could not be read, so this rests on the summary for those files. The retained blank lines around a removed marker are a documented limitation, not an out-of-scope change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b22f794 and b7a3682.

Files selected for processing: 3

  • apps/mobile/src/features/threads/ThreadFeed.tsx
  • packages/shared/src/codexMarkdownDirectives.test.ts
  • packages/shared/src/codexMarkdownDirectives.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

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>
@macroscopeapp
macroscopeapp Bot dismissed their stale review November 29, 2026 05:42

Dismissing prior approval to re-evaluate b22f794

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 29, 2026
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>
@macroscopeapp
macroscopeapp Bot dismissed their stale review November 29, 2026 06:45

Dismissing prior approval to re-evaluate b7a3682

@juliusmarminge

Copy link
Copy Markdown
Member Author

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.

devuterian added a commit to devuterian/t3code-korean that referenced this pull request Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex Computer Use browser-complete directive renders as raw text

1 participant