Note the dialog wrapping trap in AGENTS.md

This commit is contained in:
raucao committed 2026-11-13 20:51:44 +04:00
1 parent 30de699da5
commit bbe32b3c96
1 file changed
+5
+5
View File
@@ -132,6 +132,11 @@ UI lives in `data/resources/ui/*.blp` (Blueprint) and is compiled to `.ui` by
markup — a client must not be able to forge formatting that looks like Regent's
own UI. The approval dialog deliberately has **no default response**, so Enter
cannot approve; Escape (and the timeout) deny.
- Set `wrap_mode(gtk::pango::WrapMode::WordChar)` on labels that show client
text. The default `Word` mode will not break a long token (an `npub`, a URL),
so the label's **minimum** width becomes the whole token and the dialog grows
wider than the window. Since libadwaita ≥1.5 dialogs are an overlay **inside**
the window (not a separate OS window), that shows up as a clipped dialog.
## Verified API traps (do not rediscover these)