WebPanel final-review fix: truthful browser fallback, focus gate, docs

- Creation-failure fallback sets OpenedInBrowser and says "opened" only
  when the system browser actually opened; otherwise chat says the
  browser did not open. Harness check CreateFailureBrowserFails.
- FocusPage follows the same in-process foreground rule as
  SetForegroundWindow (Show and controller creation). Harness check
  NoFocusFromAnotherProcess; posted-key checks report UNVERIFIED when
  another process holds the foreground.
- PermissionRequested: SavesInProfile = false.
- WEB_PANEL.md: allowlist empty-entry rule, GetState -4, AOT renumber
  caveat, softened focus claim (also in the Changelog).
- Formatting: ChatCommandReplyTests brace, /rc layout comment,
  PluginContract blank line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-07 16:14:57 -08:00
commit 537a40a430
7 changed files with 116 additions and 21 deletions

View file

@ -24,8 +24,8 @@ Branch `up/web-panel`, from upstream `main` 418d80b. Not deployed. The API numbe
## How it behaves
- The panel never takes focus from another program. It takes the foreground only if the foreground window already
belongs to the game, and it hides while another program is in front.
- The panel is designed never to take focus from another program; confirm in game. It takes the foreground (and
page focus) only if the foreground window already belongs to the game, and it hides while another program is in front.
- Logs and chat never carry a URL's query, fragment or user info (the launch code rides in the query).
- Failures: the panel fails only when the WebView2 browser process or the main renderer exits, or the renderer is
reported unresponsive 3 times in 30 s. Other process failures are logged. `RuntimeMissing` / `CreateFailed` fall back to