Repository navigation
refactor(web): move agent-opened browser and device surfacing out of ChatView - #20312
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a contained refactor that extracts existing preview-surfacing effects from ChatView without changing product defaults or introducing a new runtime capability. The Vite update only places the extracted hook under React Compiler checks and does not suppress static analysis. No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
fd2501d to
0fda0fb
Compare
Dismissing prior approval to re-evaluate 0fda0fb
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: 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. |
…ChatView useAgentOpenedPreviews holds the three effects that show a browser tab or device an agent or another client opened, and close a floating device once its session ends, with their baseline refs. The effect bodies are unchanged. The hook compiles and joins the compile-required list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0fda0fb to
41c4e00
Compare
Part of the ChatView split so the React Compiler can compile it.
useAgentOpenedPreviewsnow holds three effects, with the baseline refs they use:The effect bodies are unchanged; only the inputs were renamed. The hook compiles and goes on the compile-required lint list (#20292). Preview mini-player and right-panel store tests pass (93).
Stack progress
Measured with the native React Compiler (
oxc-transform-react) on each layer'sChatView.tsx. "Crashes" means it hit an internal codegen error and left ChatView uncompiled; "skips" means it reported reasons it could not compile it. Strict files must compile with no bailouts, no manual memoization and no effect-rule violations; lint andreactCompiledFiles.test.tsenforce it.🤖 Generated with Claude Code (Claude Opus 5.5)