---
title: "On-demand screen context in Red Hat Developer Hub intelligent assistant"
description: "Red Hat Developer Hub’s intelligent assistant now offers on-demand screen and DOM reading in developer preview, eliminating the manual toil of copying and pasting context. The front end captures a WebP screenshot of the viewport and extracts a cleaned DOM tree, excluding the chat overlay to avoid visual recursion. The back end probes each model’s vision support asynchronously at startup, caches the result for 24 hours, and exposes it via the GET /v1/models endpoint. Context capture is strictly event-driven, triggers only on Submit, and strips sensitive fields before dispatch. Administrators must explicitly enable the feature, which is disabled by default, and users can manage sharing in the assistant options menu."
---

# On-demand screen context in Red Hat Developer Hub intelligent assistant

[Red Hat](https://yomu.fyi/company/red-hat) · Lucas Yoon · Nov 9, 2026

**Type:** Announcement

## Summary

Red Hat Developer Hub’s intelligent assistant now offers on-demand screen and DOM reading in developer preview, eliminating the manual toil of copying and pasting context. The front end captures a WebP screenshot of the viewport and extracts a cleaned DOM tree, excluding the chat overlay to avoid visual recursion. The back end probes each model’s vision support asynchronously at startup, caches the result for 24 hours, and exposes it via the GET /v1/models endpoint. Context capture is strictly event-driven, triggers only on Submit, and strips sensitive fields before dispatch. Administrators must explicitly enable the feature, which is disabled by default, and users can manage sharing in the assistant options menu.

## Context

Developers often manually copy and paste screen context (DOM markup, screenshots) into AI assistants when debugging deployment errors or plugin configurations in a developer portal. Red Hat Developer Hub’s intelligent assistant previously lacked the ability to inspect the active browser view automatically.

## Approach / What changed

The front end uses html2canvas to capture a WebP screenshot of the viewport (excluding the chat overlay) and extracts a cleaned DOM tree. The back end probes each model’s vision support asynchronously at startup, caches the result for 24 hours, and exposes it via the GET /v1/models endpoint so the front end can gate image attachments without a synchronous validation round-trip.

## Takeaways

- Screen context capture is strictly event-driven: it triggers only on Submit, captures only the active page, and never runs continuously or in the background.
- The back end caches vision model capabilities for 24 hours after an asynchronous probe, so the front end can gate image attachments without a synchronous validation round-trip.
- Administrators must explicitly opt in by setting intelligent-assistant.screen-context.enabled to true; the feature is disabled by default and users can toggle sharing in the assistant settings menu.

## FAQ

### How does the feature protect sensitive data?

Screen context is captured only for the currently active page, triggers strictly when you select Submit, and continuous or background screenshot capturing is completely disabled. Sensitive fields and credentials are stripped from the DOM tree before dispatch.

### How does the back end avoid latency when checking vision capability?

The back end probes each model's vision support asynchronously at startup and caches the result for 24 hours. The front end reads the cached supportsVision property from the GET /v1/models endpoint, so it knows whether to allow image attachments without waiting for a synchronous validation round-trip.

### In which chat layouts is screen context capture available?

Context capture is disabled in full-screen mode because the expanded assistant obscures the active workspace view it needs to inspect. It works in docked and overlay modes.

**Tags:** [Developer Experience](https://yomu.fyi/topic/developer-experience), [Privacy](https://yomu.fyi/topic/privacy), [Red Hat Developer Hub](https://yomu.fyi/topic/red-hat-developer-hub)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/11/09/how-we-built-privacy-first-screen-reading-red-hat-developer-hub)
- Source URL: https://developers.redhat.com/articles/2026/11/09/how-we-built-privacy-first-screen-reading-red-hat-developer-hub
- Ingested by Yomu: 2026-11-09T18:00:14.029Z

[Read original post](https://developers.redhat.com/articles/2026/11/09/how-we-built-privacy-first-screen-reading-red-hat-developer-hub)
