Red HatLucas YoonAnnouncement
On-demand screen context in Red Hat Developer Hub intelligent assistant
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.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.