Repository navigation
Conversation
Agents get the html_preview and html_render tools only when the user turns on "Visual replies (beta)" in Settings. The setting grants a new "html" MCP capability when the provider session is prepared, like agent browser access; without it both tools refuse with a message that tells the agent to answer in text. The always-on "Showing visuals" prompt section moves into the html_render description, so no adapter needs to know the setting. Pages already in threads keep showing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR changes visual replies from an existing default-on behavior to a new default-off, opt-in beta setting, affecting provider session capabilities and HTML tool availability across web and mobile. The persistent setting and shared-environment propagation warrant human review of the product-default change. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (14)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughA default-off ChangesVisual replies setting and controls
Session capability and HTML tool access
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ServerSettings
participant ProviderSessionManager
participant AgentSession
participant HTMLHandlers
ServerSettings->>ProviderSessionManager: provide enableHtmlRenders
ProviderSessionManager->>AgentSession: include or withhold html capability
AgentSession->>HTMLHandlers: call html_preview or html_render
HTMLHandlers->>AgentSession: return capability_denied when html is absent
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No identified issue blocks merging. The switch has not yet been exercised in a real client. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 12 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🧰 Additional context used📚 Code guidelines (2)Comment |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
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. |
Visual replies (#15968) shipped on for everyone. It is new and only lightly tested in real clients, so it should start as an opt-in beta, like the Working section.
Visual replies (beta) is now a switch in Settings → General (web and desktop) and Settings → Thread behavior (mobile). It is off by default and syncs across environments like the other shared preferences.
htmlMCP capability when T3 prepares the provider session, the same way agent browser access works. A changed value applies when an agent session next starts.html_previewandhtml_renderrefuse. The message tells the agent to answer in text and not to try again.html_renderdescription, so no provider adapter has to know about the setting.Limitation: the tools still appear in every session's tool list, as the
device_*tools do when device access is off. Effect's MCP server lists the same tools for every session. When the setting is off, the agent still sees about 1k tokens of tool descriptions, but it can't use the tools.Verified: focused tests for the capability grant, the refusal, and the shared settings keys pass, and server, web, and mobile typecheck. I have not tested the switch in a real client.
Made by Claude Opus 5.5 in Claude Code, driven through T3 Code.
🤖 Generated with Claude Code