From 22d7ef08fedbb9bb61876dec0aa396af8d8fd0ed Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 14 Oct 2026 23:49:20 +0800 Subject: [PATCH] gui: the model picker opened from a provider's editor takes clicks, not the editor's fields beneath it (#2188, Deja-vuuu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a provider's editor, the Agents row's chip opens that agent's model picker over the dialog. Nothing in the picker could be clicked: a provider in the rail or a model in the list sent the click through to the editor's fields underneath. Cause: 2cc663d0a (#820) has modalBackground make every child except #modal inert while the editor is open. The picker, #pop, is another child, so it was made inert too. #pop is now left out with #modal. The only other static children are the views and the footer, and popups created later aren't in the list it takes at open. editor-picker-clicks.test.cjs (chromium + webkit; en, zh, zh-TW, ja, de; 1100 and 420 wide; API faked): opens the editor and the chip's picker, checks #pop has no inert ancestor, clicks Zhipu in the rail (the list narrows to it), picks GLM-5.2, and checks one /api/set for claude/model=zhipu/glm-5-2 while the editor stays open. Broken by hand (origin's modalBackground put back): it fails on the inert assertion in every variant. With that assertion dropped, the rail click times out in both engines on " from