Files
electron/buildflags
David Sanders d0c75f90ad feat: implement the Prompt API via localAIHandler (#50659)
* feat: implement the Prompt API via localAIHandler

Assisted-by: Claude Opus 4.6

* docs: address review feedback

* chore: refactor for cppgc managing api::UtilityProcessWrapper

Changed in https://github.com/electron/electron/pull/50955/

* fix: prevent UAF with PromptResponder

* chore: let setPromptAPIHandler return null to reject

* fixup! chore: refactor for cppgc managing api::UtilityProcessWrapper

* chore: use cppgc::WeakMember instead

* chore: store pending BindAIManager calls until utility process calls setPromptAPIHandler

Assisted-by: Claude Opus 4.6

* chore: remove localAIHandler.setPromptAPIHandler(null)

* chore: protect against destroyed LanguageModel

* chore: remove unused include

* chore: drop upstreamed patch

* chore: add missing includes

* chore: reconcile upstream changes

* chore: add patch to prevent dangling promise

* test: add cleanup of utility processes

* chore: remove upstreamed patch

* refactor: rename LanguageModel to LanguageModelUtility

* chore: provide frameToken and renderProcessId to Prompt API handler

Assisted-by: Claude Opus 4.8

* chore: address code review feedback

* fixup! chore: remove localAIHandler.setPromptAPIHandler(null)

* chore: address Copilot code review

* test: update test expectation

* 7896445: [3/3] Pass download progress observers dynamically in WebPlatform APIs

Refs https://chromium-review.googlesource.com/c/chromium/src/+/7896445

* chore: address code review feedback

* chore: fix CHECK

* 7876740: Implement Content Layer Echo for AISemanticEmbedder

Refs https://chromium-review.googlesource.com/c/chromium/src/+/7876740
2026-07-08 21:17:00 -07:00
..