Red Hat Developer Hub's intelligent assistant now reads the active browser view on demand, letting developers ask questions about visible resource configurations without manually copying DOM markup into a chat window. The feature, available in developer preview, works in docked and overlay chat layouts and is disabled by default, with administrators opting in through the instance configuration file.
The capture pipeline is event-driven rather than continuous. Screen context is collected only for the currently active page, and only when the user selects Submit. Background screenshot capturing is disabled entirely. Before dispatch, the front end strips sensitive fields and credentials from the DOM tree, so the assistant receives only the data the user actively chose to share.
Front-end extraction and model gating
Two modules handle the front-end work. ScreenContextChip.tsx manages the UI trigger in the message bar, while screen-context-utils.ts handles canvas rendering and DOM extraction. When the user enables the feature via the context chip, the front end attaches a context reader to the submission event. On Send, the application generates a WebP image of the current page, excludes the chat overlay from the capture to avoid visual recursion, and extracts a cleaned DOM tree.
The extraction pipeline uses html2canvas to render the document body into a compressed WebP data URL at 0.8 quality, paired with a structured text representation of the active document. A pulsing animation on the ScreenContextChip component signals that extraction is running. Full-screen chat mode disables context capture because the expanded assistant obscures the workspace view it needs to inspect.
The model selection interface now shows a vision indicator for models capable of processing image attachments, making it clear which models can evaluate both text and images. Red Hat Developer Hub offers three chat layouts: docked alongside the portal view, floating as an overlay, or expanded to full screen.
Back-end latency optimization
Early iterations validated model capabilities synchronously during query handling, which added latency to every user prompt. The back end moved vision capability detection out of the query execution path. The GET /v1/models endpoint now returns a supportsVision property directly, backed by a non-blocking background probe that tests each configured model at initialization. Results are stored in ModelCapabilitiesCache, an in-memory cache with a 24-hour expiration per pod.
With cached model capabilities, the front end knows immediately whether to gate image attachments without waiting for an individual validation round-trip. The POST /v1/query route accepts multipart requests containing the compressed WebP buffer and sanitized DOM text, forwarding both to the inference service.
Administrators must explicitly enable the feature in the instance configuration file by setting the intelligent-assistant screen-context enabled key to true. Once enabled, users can manage screen context sharing in the assistant options menu. The combination of cached vision capabilities and WebP compression keeps the assistant responsive while keeping private data under user control.
Sources & references
Red Hat: On-demand screen context in Red Hat Developer Hub intelligent assistant ↗Source consulted: 2026-11-11



