Pixels: Add unified_input_surface to unified input action pixels - #9306
Merged
karlenDimla merged 1 commit intoJul 28, 2026
Merged
Conversation
Contributor
|
Privacy Review task: https://app.asana.com/0/69071770703008/1216913713452942 |
Adds a `surface` parameter (address_bar / duck_ai / contextual_chat) to the Unified Toggle Input telemetry pixels so usage in the contextual chat sheet can be told apart from the Duck.ai tab and the address bar. The value is derived from NativeInputState.InputContext at each firing site. Ports the surface changes from apple-browsers#5779. Placeholder pixels are kept (the Android placeholder chip still exists) and voice_tapped is left unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
karlenDimla
force-pushed
the
feature/karl/contextual-nativeinput/new-pixels
branch
from
July 27, 2026 16:24
f8141b0 to
3720d32
Compare
joshliebe
approved these changes
Jul 27, 2026
joshliebe
left a comment
Contributor
There was a problem hiding this comment.
Tested! "surface" sent as expected ✅
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/1/137249556945/task/1216706777618506?focus=true
Tech Design URL (if applicable): N/A
API Proposals URL(s) (if applicable): N/A
Description
Adds a surface parameter (
unifiedInputSurface) to the contextual Unified Input UTI pixels, distinguishing where each pixel was fired from: address_bar, duck_ai, or contextual_chat.Steps to test this PR
surface=address_bar)surface=address_bar(surface=duck_ai)surface=contextual_chat)Note
Low Risk
Analytics-only pixel schema and firing changes with no auth, data handling, or user-facing behavior changes.
Overview
Unified Input analytics now record where an interaction happened by adding a
surfaceparameter (address_bar,duck_ai, orcontextual_chat) to the relevantm_aichat_unified_input_*pixel definitions and wiring it through the app.A
DuckChatPixelSurfaceenum mapsNativeInputState.InputContextto those values;DuckChatPixelsAPIs for tools, prompts, model/reasoning pickers, attachments, stop generation, customize responses, and FE recovery flows now require a surface and send it assurfaceon the wire. ViewModels derive the current surface from native input state when firing pixels.unifiedInputSurfaceis registered inparams_dictionary.json. Unit tests were updated to expect the new parameter.Reviewed by Cursor Bugbot for commit 3720d32. Bugbot is set up for automated code reviews on this repo. Configure here.