From df75c791f5eff0888ac755878fe9b29c8c76448b Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:27:05 +0100 Subject: [PATCH 1/7] D120 2d oracle: ME asks an export's success of the toast, never in place; its failure stays in place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Criterion 4 of D120: a success is said by the window's toast. « Exporté : « … ». » was still said in #share-said (#1252); ME now asks it of the toast, once, nowhere in place, the long name whole in the window at 1100 and 420 px; the dialog closed and a file refused say nothing by the toast. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/scripts/e2e_window.py | 55 +++++++++++++++++------------ 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/modules/shell/scripts/e2e_window.py b/modules/shell/scripts/e2e_window.py index c0302e76..e6acc7ef 100644 --- a/modules/shell/scripts/e2e_window.py +++ b/modules/shell/scripts/e2e_window.py @@ -7984,9 +7984,10 @@ def meeting_actions_bar(now: dt.datetime) -> None: def meeting_exported(now: dt.datetime) -> None: """ME. D121, criterion 2: « Partager » offers « Exporter en PDF » and « Exporter en Markdown », each the file `exporting/v1` writes where the user chooses in the system's dialog: the summary alone (PDR-0007 sends never the - transcript), its first bytes the format's own; said once, in place; nothing when the dialog is closed; a file - refused said, nothing else. A confidential meeting is exported too, explicitly, its menu saying so in a line - (PDR-0007, amended 2026-11-24); an ordinary one has no such line. French light, English dark.""" + transcript), its first bytes the format's own; said once, by the toast, never in place (D120, criterion 4); + nothing when the dialog is closed; a file refused said in place, nothing else. A confidential meeting is exported + too, explicitly, its menu saying so in a line (PDR-0007, amended 2026-11-24); an ordinary one has no such line. + French light, English dark.""" print("ME. « Partager »: « Exporter en PDF » and « Exporter en Markdown », the summary alone, where the user chooses (D121)") meetings = WORK / "exported" plain, private = meetings / "2026-11-24_15-00", meetings / "2026-11-23_09-00" @@ -8051,10 +8052,11 @@ def meeting_exported(now: dt.datetime) -> None: for kept in ("export-args", "export-input"): (WORK / kept).unlink(missing_ok=True) browser.execute_script(stub, str(to)) + browser.execute_script(TOAST_WATCH) press(browser, "share-open") wait_for(browser, lambda b: b.execute_script(menu), 3) press(browser, opener) - written = wait_for(browser, lambda b: to.is_file() and (b.execute_script(said) or "") != "", 10) + written = wait_for(browser, lambda b: to.is_file() and (toast_said(b)[:1] or (b.execute_script(said) or "") != ""), 10) args = (WORK / "export-args").read_text().split() if (WORK / "export-args").is_file() else [] given = json.loads((WORK / "export-input").read_text()) if (WORK / "export-input").is_file() else {} first = to.read_bytes()[:len(head)] if to.is_file() else b"" @@ -8062,33 +8064,35 @@ def meeting_exported(now: dt.datetime) -> None: check(f"{short}, {folder.name}, {kind}: written where chosen, the summary alone, its first bytes the format's (exporting/v1 l. 39-40, 95)", written and args[1:] == ["--format", kind, "--lang", short, "--without-transcript"] and given.get("to") == str(to) and first == head, [written, args[1:], given.get("to"), first]) - check(f"{short}, {folder.name}, {kind}: said once, in place: « {words['done'].format(to.name)} » (#1252)", - browser.execute_script(said) == words["done"].format(to.name) + # A success is said by the toast, never in place (D120, criterion 4): the toast its one voice. + done = words["done"].format(to.name) + check(f"{short}, {folder.name}, {kind}: said once, by the toast: « {done} », never in place (D120)", + [t for t, _ in toast_said(browser)] == [done] and said_in_place(browser, done) == [] and browser.execute_script(said) == "" and browser.execute_script("return [...document.querySelectorAll('[role=status], [aria-live]')].filter((e) => e.textContent.includes(arguments[0])).length", to.name) == 1, - browser.execute_script(said)) + [toast_said(browser), said_in_place(browser, done), browser.execute_script(said)]) if kind == "pdf" and not confidential: shot_themed(browser, f"me-said-{short}-{theme}", theme) browser.execute_script("window.restore()") - # A long sentence said (the audit of #1320 against v5): on its own line under the bar, never pushing it; the - # whole bar in sight and the meeting's name there, at 1100 and 420 px. + # A long name said (the audit of #1320 against v5): by the toast, whole in the window, never pushing the bar; + # the whole bar in sight and the meeting's name there, at 1100 and 420 px. long = WORK / ("exported-" + "un-nom-de-fichier-tres-long-pour-une-reunion-" * 2 + f"{short}.pdf") - browser.execute_script(stub, str(long)) - press(browser, "share-open") - wait_for(browser, lambda b: b.execute_script(menu), 3) - press(browser, "share-pdf") - wait_for(browser, lambda b: long.name in (b.execute_script(said) or ""), 10) - browser.execute_script("window.restore()") - placed = ("const bar = document.getElementById('meeting-actions').getBoundingClientRect(), s = document.getElementById('share-said').getBoundingClientRect()," - " h = document.querySelector('#meeting h1').getBoundingClientRect(), buttons = [...document.querySelectorAll('#meeting-actions button')].filter((b) => b.getClientRects().length);" + placed = ("const h = document.querySelector('#meeting h1').getBoundingClientRect(), buttons = [...document.querySelectorAll('#meeting-actions button')].filter((b) => b.getClientRects().length);" " return [innerWidth, buttons.every((b) => { const r = b.getBoundingClientRect(); return r.left >= 0 && r.right <= innerWidth + 0.5 && r.width > 0; })," - " h.width > 40 && h.right <= innerWidth + 0.5, s.top >= bar.bottom - 0.5]") + " h.width > 40 && h.right <= innerWidth + 0.5]") for width, height in ((1100, 800), (420, 900)): browser.set_window_size(width, height) wait_for(browser, lambda b: abs(b.execute_script("return innerWidth") - width) < 40, 3) time.sleep(0.3) - got = browser.execute_script(placed) - check(f"{short}, {width} px: a long « {words['done'].split(' ')[0]} » line under the bar, the whole bar in sight, the meeting's name there", - got[1:] == [True, True, True], got) + long.unlink(missing_ok=True) + browser.execute_script(stub, str(long)) + press(browser, "share-open") + wait_for(browser, lambda b: b.execute_script(menu), 3) + press(browser, "share-pdf") + wait_for(browser, lambda b: long.name in toast_now(b)[1], 10) + browser.execute_script("window.restore()") + got = browser.execute_script(placed) + toast_now(browser)[2:] + [browser.execute_script(said)] + check(f"{short}, {width} px: a long « {words['done'].split(' ')[0]} » said by the toast, whole in the window, the whole bar in sight, the meeting's name there", + got[1:] == [True, True, True, True, ""], got) if theme == "light": shot(browser, f"me-said-long-{short}") browser.set_window_size(1100, 800) @@ -8096,22 +8100,27 @@ def meeting_exported(now: dt.datetime) -> None: browser.execute_script("const real = window.__TAURI__.core; window.__TAURI__.core = {...real, invoke: (asked, ...rest) =>" " asked === 'export_file_chosen' ? Promise.resolve(null) : real.invoke(asked, ...rest)}; window.restore = () => { window.__TAURI__.core = real; };") (WORK / "export-args").unlink(missing_ok=True) + wait_for(browser, lambda b: not toast_now(b)[2], 7) + browser.execute_script(TOAST_WATCH) press(browser, "share-open") wait_for(browser, lambda b: b.execute_script(menu), 3) press(browser, "share-pdf") time.sleep(1) - check(f"{short}: the dialog closed, nothing written, nothing said", not (WORK / "export-args").exists() and browser.execute_script(said) == "", browser.execute_script(said)) + check(f"{short}: the dialog closed, nothing written, nothing said", not (WORK / "export-args").exists() and browser.execute_script(said) == "" and toast_said(browser) == [], + [browser.execute_script(said), toast_said(browser)]) browser.execute_script("window.restore()") # Refused by the program: said, one action, the file not there. to = WORK / f"refused-{short}.pdf" (WORK / "export-refuse").write_bytes(b"") try: browser.execute_script(stub, str(to)) + browser.execute_script(TOAST_WATCH) press(browser, "share-open") wait_for(browser, lambda b: b.execute_script(menu), 3) press(browser, "share-pdf") refused = wait_for(browser, lambda b: (b.execute_script(said) or "").startswith(words["failed"]), 10) - check(f"{short}: a file refused is said, what to do with it, nothing written", refused and not to.exists(), browser.execute_script(said)) + check(f"{short}: a file refused is said in place, what to do with it, nothing written, no toast", refused and not to.exists() and toast_said(browser) == [], + [browser.execute_script(said), toast_said(browser)]) browser.execute_script("window.restore()") finally: (WORK / "export-refuse").unlink(missing_ok=True) From 1d12c9ee7f96a2ca48a31464e92a7a4437d0830d Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:42:40 +0100 Subject: [PATCH 2/7] =?UTF-8?q?D120=202d=20oracle:=20every=20success=20sai?= =?UTF-8?q?d=20by=20the=20toast,=20never=20in=20place=20=E2=80=94=20export?= =?UTF-8?q?,=20.ics,=20send,=20destination,=20service,=20freed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Criterion 4 of D120, everywhere (the decider, through the coordinator: one rule, nothing exotic). said_by_toast() reads what the toast said and where else the page shows it; each success asked of it: ME (export), dates_mentioned (.ics), summary_sent and confidential_sent (sent), destinations_kept (destination kept), service_named and transcription_guided (service saved), and FD, new (space freed). Failures stay asked in place, unchanged. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/scripts/e2e_window.py | 87 +++++++++++++++++++++++------ 1 file changed, 69 insertions(+), 18 deletions(-) diff --git a/modules/shell/scripts/e2e_window.py b/modules/shell/scripts/e2e_window.py index e6acc7ef..03cbd745 100644 --- a/modules/shell/scripts/e2e_window.py +++ b/modules/shell/scripts/e2e_window.py @@ -492,6 +492,17 @@ def said_in_place(browser, words: str) -> list: " && e.textContent.trim() === arguments[0] && e.getClientRects().length).map((e) => e.id || e.className)", words) +def said_by_toast(browser, start: str) -> list: + """A success said (D120, criterion 4): what the toast said beginning with `start` since TOAST_WATCH, and where + else the page shows words beginning so — said once by the toast and never in place is [[its words], []].""" + toasted = [t.replace("\xa0", " ") for t, _ in toast_said(browser) if t.replace("\xa0", " ").startswith(start)] + shown = browser.execute_script( + "const start = arguments[0], of = (e) => e.textContent.trim().replace(/\\u00a0/g, ' ');" + " return [...document.querySelectorAll('body *')].filter((e) => !e.closest('#toast, .gallery') && e.getClientRects().length" + " && of(e).startsWith(start) && ![...e.children].some((c) => of(c).startsWith(start))).map((e) => e.id || e.className)", start) + return [toasted, shown] + + def free(browser, element_id: str, case: str) -> None: """A Tester's button offered again before the next case's click: a click on it disabled is lost without an error, its code never asked, the last sentence read again (#799).""" @@ -1704,9 +1715,13 @@ def log_message(self, *_): one = browser.execute_script(shown_of, saves) check("« Avancé » unfolded: one « Enregistrer » shown, one agreement at most (#860)", len(one) == 1 and len(browser.execute_script(shown_of, agreements)) <= 1, [one, browser.execute_script(shown_of, agreements)]) + browser.execute_script(TOAST_WATCH) if one: press(browser, one[0]) - kept = wait_for(browser, lambda b: "cet ordinateur transcrira" in b.execute_script(said), 5) + kept = wait_for(browser, lambda b: said_by_toast(b, "Enregistré : cet ordinateur transcrira")[0], 5) + check("saved: « Enregistré : cet ordinateur transcrira… » said by the window's toast, never in place (D120)", + len(said_by_toast(browser, "Enregistré : cet ordinateur transcrira")[0]) == 1 + and said_by_toast(browser, "Enregistré")[1] == [], said_by_toast(browser, "Enregistré")) check("nothing typed under « Avancé »: that « Enregistrer » saves the service chosen above, the model chosen in its list (#860)", kept and 'transcription_model = "vendor/scribe"' in window.file.read_text() and f'transcription_provider = "{stand}"' in window.file.read_text(), (browser.execute_script(said), window.file.read_text())) @@ -2020,6 +2035,7 @@ def log_message(self, *_): # No agreement asked where none is owed: the address is this computer's (#859). agreement_shown = browser.execute_script("const a = document.getElementById('transcription-agreed'); return !!a && a.getClientRects().length > 0") check("the service on this computer: no agreement to send the sound asked (#859)", not agreement_shown, agreement_shown) + browser.execute_script(TOAST_WATCH) press(browser, "transcription-save") saved = wait_for(browser, lambda b: 'transcription_model = "openai/whisper-large-v3-turbo"' in window.file.read_text(), 5) text = window.file.read_text() @@ -2027,8 +2043,10 @@ def log_message(self, *_): saved and 'engine = "service"' in text and f'transcription_provider = "{stand}"' in text and "transcription_agreed" not in text and "sk-stand-in" not in text, text) host = stand.split("/")[2] - told = browser.execute_script("return document.getElementById('transcription-said')?.textContent || ''") - check("saved on this computer: said so, not as an address and a port (#775)", "cet ordinateur" in told and host not in told, told) + wait_for(browser, lambda b: said_by_toast(b, "Enregistré :")[0], 5) + told = said_by_toast(browser, "Enregistré :") + check("saved on this computer: said so by the window's toast, never in place, not as an address and a port (#775, D120)", + len(told[0]) == 1 and "cet ordinateur" in told[0][0] and host not in told[0][0] and told[1] == [], told) logged = [str(f) for f in (WORK / "state").rglob("*") if f.is_file() and "sk-stand-in" in f.read_text(errors="ignore")] check("the key never logged", logged == [], logged) # Drawn again: the service and its model said as chosen, no address shown. @@ -5863,6 +5881,7 @@ def page(folder): described = [] def send(name, confirm=True): + browser.execute_script(TOAST_WATCH) press(browser, "send-open") wait_for(browser, lambda b: b.find_elements(By.CSS_SELECTOR, "#send-panel button.send-to"), 5) browser.execute_script("[...document.querySelectorAll('#send-panel button.send-to')].find(b => b.dataset.destination === arguments[0]).click()", name) @@ -5875,8 +5894,8 @@ def send(name, confirm=True): if shown is not None and confirm: press(browser, "send-confirm") if confirm: - # Its outcome, not « Envoi vers … », which is said while kitokey-send runs. - wait_for(browser, lambda b: b.execute_script(said_now) and not b.execute_script(said_now).endswith("…"), 15) + # Its outcome, not « Envoi vers … », which is said while kitokey-send runs: by the toast, or in place. + wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) return shown first = send("#équipe") @@ -5888,10 +5907,10 @@ def send(name, confirm=True): check("« Envoyer » is described by the notice: a screen reader says what leaves before it is pressed", described[:1] and described[0][0] == "send-notice" and "ne peut pas être repris" in (described[0][1] or ""), described) # Selenium's text gives U+00A0 as a space: each read below compares with spaces. - # Said once (#1252): the send listed under the summary is the line the eye reads; the outcome still told to a - # screen reader by its status, never shown a second time above that same line. - said = browser.execute_script("return document.getElementById('send-said')?.textContent ?? ''") - check("sent: told to a screen reader by its status, the destination by its name", said.replace("\xa0", " ").startswith("Envoyé à « #équipe »"), said) + # Said once (#1252): by the window's toast, never in place (D120, criterion 4); the send listed under the + # summary is the line the eye keeps. + said = said_by_toast(browser, "Envoyé à « #équipe » à") + check("sent: said by the window's toast, the destination by its name, never in place (D120)", len(said[0]) == 1 and said[1] == [], said) # innerText keeps a line clipped for screen readers alone (.unseen): that one is not shown, and is set aside. shown_lines = browser.execute_script( "const card = document.querySelector('#meeting .card.minutes'); if (!card) return null;" @@ -5932,9 +5951,10 @@ def send(name, confirm=True): beside.mkdir() try: send("#équipe") - said = browser.find_element(By.ID, "send-said").text.replace("\xa0", " ") - check("the record unwritable: a send that left is still said sent, never « n'a pas pu partir »", - said.startswith("Envoyé à « #équipe »") and len(calls.read_text().splitlines()) == 8, said) + said = said_by_toast(browser, "Envoyé à « #équipe » à") + check("the record unwritable: a send that left is still said sent, by the toast, never « n'a pas pu partir »", + len(said[0]) == 1 and said[1] == [] and "n’a pas pu" not in browser.find_element(By.ID, "send-said").text + and len(calls.read_text().splitlines()) == 8, said) finally: beside.rmdir() page_text = browser.execute_script("return document.body.innerText") @@ -6057,9 +6077,11 @@ def choose(): # « Envoyer » is before « Annuler »: Shift+Tab, then Enter. ActionChains(browser).key_down(Keys.SHIFT).send_keys(Keys.TAB).key_up(Keys.SHIFT).perform() on = browser.execute_script("return document.activeElement.id") + browser.execute_script(TOAST_WATCH) ActionChains(browser).send_keys(Keys.ENTER).perform() - wait_for(browser, lambda b: b.execute_script(said_now) and not b.execute_script(said_now).endswith("…"), 15) - said = browser.execute_script(said_now).replace("\xa0", " ") + wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) + told = said_by_toast(browser, "Envoyé à « #équipe » à") + said = told[0][0] if len(told[0]) == 1 and told[1] == [] else repr(told) got = made() check(f"fr: send {round_}: confirmed, kitokey-send started once more, `confirmed_confidential: true` on its input, the address there alone", on == "send-confirm" and len(got) == round_ and json.loads(got[-1]["input"]).get("confirmed_confidential") is True @@ -6070,10 +6092,11 @@ def choose(): # Not confidential: sent as before — no question, no such field on the input. page(open_one) wait_for(browser, lambda b: b.execute_script(offered), 10) + browser.execute_script(TOAST_WATCH) press(browser, "send-open") wait_for(browser, lambda b: b.find_elements(By.CSS_SELECTOR, "#send-panel button.send-to"), 5) browser.execute_script("document.querySelector('#send-panel button.send-to').click()") - wait_for(browser, lambda b: b.execute_script(said_now) and not b.execute_script(said_now).endswith("…"), 15) + wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) got = made() check("fr: a meeting not confidential: no question, sent at once, no `confirmed_confidential` on its input (D119, criterion 2)", browser.execute_script(asked) is None and len(got) == 3 and "confirmed_confidential" not in json.loads(got[-1]["input"]), @@ -6267,12 +6290,16 @@ def add(kind, name, address): said = wait_for(browser, lambda b: "https" in b.find_element(By.ID, "destination-said").text, 10) check("an address not https: is refused, said why, nothing kept (PDR-0007 §6)", said and browser.execute_script(rows) == [], browser.find_element(By.ID, "destination-said").text) + browser.execute_script(TOAST_WATCH) add("slack", "#équipe", good) kept = wait_for(browser, lambda b: len(b.execute_script(rows)) == 1, 10) row = browser.execute_script(rows)[0] if kept else "" check("checked, the destination is listed: its name, its kind, its address as its host and the end of its path", kept and "#équipe" in row and "Slack" in row and "hooks.example" in row and secret not in row and secret[-4:] in row, row) check("the address field is emptied once kept", browser.find_element(By.ID, "destination-address").get_attribute("value") == "") + wait_for(browser, lambda b: said_by_toast(b, "Destination #équipe ajoutée")[0], 5) + told = said_by_toast(browser, "Destination #équipe ajoutée") + check("kept: « Destination #équipe ajoutée. » said by the window's toast, never in place (D120)", len(told[0]) == 1 and told[1] == [], told) # For an eye (lina's): the card with one destination, at the two widths, in both looks. for width in (1100, 420): browser.set_window_size(width, 800) @@ -8127,6 +8154,26 @@ def meeting_exported(now: dt.datetime) -> None: shot_themed(browser, f"me-exported-{short}-{theme}", theme) +def freed_said(now: dt.datetime) -> None: + """FD. D120, criterion 4: « Faire de la place » done is said by the window's toast, « C’est fait : tout est dans + la corbeille. », never in place; a meeting's audio freed, as P frees it.""" + print("FD. « Faire de la place »: done, said by the window's toast, never in place (D120)") + roomy = WORK / "freed" + session(roomy / "old", now - dt.timedelta(days=60), 30, {"local.wav": 3_000_000, "minutes.md": 50}) + with Window(roomy, "fr_FR.UTF-8") as browser: + browser.execute_script("location.hash = '#/free'") + wait_for(browser, lambda b: b.find_elements(By.CSS_SELECTOR, "#free .freeable input"), 10) + if not browser.execute_script("return document.querySelector('#free .freeable input[value=old]')?.checked"): + browser.execute_script("document.querySelector('#free .freeable input[value=old]').click()") + wait_for(browser, lambda b: b.execute_script("return document.getElementById('free-do')?.disabled === false"), 5) + browser.execute_script(TOAST_WATCH) + press(browser, "free-do") + gone = wait_for(browser, lambda b: not (roomy / "old" / "local.wav").exists() and said_by_toast(b, "C’est fait")[0], 10) + told = said_by_toast(browser, "C’est fait") + check("freed: « C’est fait : tout est dans la corbeille. » said by the window's toast, never in place (D120)", + gone and len(told[0]) == 1 and told[1] == [], told) + + def meeting_trashed(now: dt.datetime) -> None: """BT. D100, D121: a meeting moved to the trash from its own page — « Plus », then « Mettre à la corbeille », asked in a dialog (MA holds its words, « Annuler » focused and Escape); confirmed, the folder goes to the system's trash @@ -10591,16 +10638,19 @@ def dates_mentioned(now: dt.datetime) -> None: browser.execute_script( "const real = window.__TAURI__.core; window.__TAURI__.core = {...real, invoke: (asked, ...rest) =>" " asked === 'dates_file_chosen' ? Promise.resolve(arguments[0]) : real.invoke(asked, ...rest)}", str(ics)) + browser.execute_script(TOAST_WATCH) press(browser, "dates-ics") - written = wait_for(browser, lambda b: ics.is_file() and b.execute_script("return document.getElementById('dates-saved').textContent") != "", 10) + done = {"fr": "Enregistré dans", "en": "Saved in"}[language[:2]] + written = wait_for(browser, lambda b: ics.is_file() and said_by_toast(b, done)[0], 10) given = json.loads((WORK / "export-input").read_text()) if (WORK / "export-input").is_file() else {} args = (WORK / "export-args").read_text().split() if (WORK / "export-args").is_file() else [] check(f"{language}: saved as an .ics: kitokey-export asked for ics, the ticked date alone on its input, its id the action's row, said done", written and args[1:5] == ["--format", "ics", "--lang", language[:2]] and given.get("dates") == [{"id": "a1", "date": "2026-12-03", "what": "Envoyer le devis", "who": "Inès", "passage": "Inès, tu envoies le devis jeudi ?\nOui, jeudi."}] - and ics.name in browser.execute_script("return document.getElementById('dates-saved').textContent"), - [written, args, given.get("dates"), browser.execute_script("return document.getElementById('dates-saved').textContent")]) + and len(said_by_toast(browser, done)[0]) == 1 and ics.name in said_by_toast(browser, done)[0][0], + [written, args, given.get("dates"), said_by_toast(browser, done)]) + check(f"{language}: the .ics saved said by the window's toast, never in place (D120)", said_by_toast(browser, done)[1] == [], said_by_toast(browser, done)) press(browser, "dates-close") wait_for(browser, lambda b: b.execute_script("return !document.getElementById('dates')"), 5) # A meeting whose actions name no date: nothing offered. @@ -16918,6 +16968,7 @@ def aside(folder): store_shots(now) actions_rows(now) dates_mentioned(now) + freed_said(now) keys_taught(now) confidential_locked(now) bar_stop_neutral(now) From 765426e4e44e028fe25d0444028b5af12678fbf5 Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:43:58 +0100 Subject: [PATCH 3/7] D120 2d oracle: in a modal dialog, the toast seen over it and inside it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit « Ajouter au calendrier » is a modal dialog: the page under it is inert, so a toast left in the body would be hidden behind it and unheard. dates_mentioned asks the toast at its centre on top, inside the open dialog. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/scripts/e2e_window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/shell/scripts/e2e_window.py b/modules/shell/scripts/e2e_window.py index 03cbd745..e0f4257c 100644 --- a/modules/shell/scripts/e2e_window.py +++ b/modules/shell/scripts/e2e_window.py @@ -10651,6 +10651,12 @@ def dates_mentioned(now: dt.datetime) -> None: and len(said_by_toast(browser, done)[0]) == 1 and ics.name in said_by_toast(browser, done)[0][0], [written, args, given.get("dates"), said_by_toast(browser, done)]) check(f"{language}: the .ics saved said by the window's toast, never in place (D120)", said_by_toast(browser, done)[1] == [], said_by_toast(browser, done)) + # In a modal dialog, the page under it inert (HTML's top layer): the toast seen over it and heard, inside it. + on_top = ("const t = document.getElementById('toast'); if (!t || t.hidden) return null; const r = t.getBoundingClientRect();" + " const e = document.elementFromPoint(r.left + r.width / 2, r.top + r.height / 2);" + " return [!!e && t.contains(e), !!t.closest('dialog[open]')]") + check(f"{language}: in « Ajouter au calendrier », a modal dialog, the toast over it and inside it, heard (D120)", + browser.execute_script(on_top) == [True, True], browser.execute_script(on_top)) press(browser, "dates-close") wait_for(browser, lambda b: b.execute_script("return !document.getElementById('dates')"), 5) # A meeting whose actions name no date: nothing offered. From c09827c8ff0e3eed4a51083fefed3c455bd22c54 Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:44:08 +0100 Subject: [PATCH 4/7] D120 2d: every success said by the window's toast, never in place; its failure stays in place Criterion 4 of D120, everywhere: an export, a calendar file, a send, a destination kept, a transcription service saved and space freed now say their success with say(), and #dates-saved is gone; each failure is still said in place, what to do with it. A modal dialog open, the toast is said inside it, the page under it being inert. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/ui/window.js | 56 ++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/modules/shell/ui/window.js b/modules/shell/ui/window.js index b8d6a131..350222a1 100644 --- a/modules/shell/ui/window.js +++ b/modules/shell/ui/window.js @@ -1082,6 +1082,11 @@ function placeToast() { function say(text) { clearTimeout(toastFor); + // A modal dialog open (« Ajouter au calendrier »): said inside it, as the page under it is inert, its toast hidden + // and unheard (HTML's top layer); back in the page once none is open. + const open = [...document.querySelectorAll("dialog[open]")].pop(); + if (open && toast.parentElement !== open) open.append(toast); + else if (!open && toast.closest("dialog")) document.body.append(toast); toast.replaceChildren(icon("check"), element("span", "", text)); toast.classList.remove("high"); toast.style.top = toast.style.bottom = ""; @@ -2356,25 +2361,25 @@ function sendPart(card, top, actions, session, words) { document.getElementById("send-panel")?.remove(); open.setAttribute("aria-expanded", "false"); open.disabled = true; - said.classList.remove("unseen"); said.textContent = fill(words.send_sending, destination); - const before = sends.childElementCount; try { const result = await window.__TAURI__.core.invoke("summary_sent", { name, destination, confirmed }); - said.textContent = outcome(result, destination); + // Sent: said by the window's toast, never in place (D120, criterion 4); its line under the summary keeps it. + // Not sent: said in place, what to do with it. + const told = outcome(result, destination); + if (result.outcome === "sent") { + said.textContent = ""; + say(told); + } else said.textContent = told; offered = result.sending.destinations; open.title = sendName(); open.setAttribute("aria-label", open.title); secret = result.sending.confidential; if (confidentialShown?.name === name) confidentialShown.paint(result.confidential); listSends(result.sending); - // Sent and listed: its line under the summary says it, and the notice is told to a screen reader only (#1252) — - // never the same send twice in a row. Sent but not recorded (its record unwritable): the notice stays shown. - said.classList.toggle("unseen", result.outcome === "sent" && sends.childElementCount > before); sayFailed(result.sending, destination); if (!result.sending.offered) open.remove(); } catch { - said.classList.remove("unseen"); said.textContent = words.send_not_sent; } finally { open.disabled = false; @@ -2654,9 +2659,6 @@ function datesPanel(mentioned, session, transcript, words, back) { ics.type = "button"; ics.id = "dates-ics"; ics.disabled = true; - const saved = element("p", "note"); - saved.id = "dates-saved"; - saved.setAttribute("role", "status"); const said = element("p", "note warn"); said.id = "dates-said"; said.setAttribute("role", "status"); @@ -2664,7 +2666,7 @@ function datesPanel(mentioned, session, transcript, words, back) { const goes = element("div", "dates-goes"); goes.append(ics, google); dayLabel.append(day); - dialog.append(head, element("p", "note", words.dates_says), dayLabel, list, goes, saved, said); + dialog.append(head, element("p", "note", words.dates_says), dayLabel, list, goes, said); const full = new Intl.DateTimeFormat(document.documentElement.lang, { weekday: "long", day: "numeric", month: "long", year: "numeric", timeZone: "UTC" }); let shown = []; const ticked = () => shown.filter((item) => item.box.checked); @@ -2695,13 +2697,13 @@ function datesPanel(mentioned, session, transcript, words, back) { day.addEventListener("change", () => day.value && draw(day.value)); ics.addEventListener("click", async () => { said.hidden = true; - saved.textContent = ""; const to = await window.__TAURI__.core.invoke("dates_file_chosen", { name }).catch(() => null); if (!to) return; const dates = ticked().map(({ date, action, passage }) => ({ id: `a${action.place}`, date, what: action.what, who: action.who, passage })); try { await window.__TAURI__.core.invoke("dates_ics", { name, to, dates }); - saved.textContent = fill(words.dates_saved, to.split(/[\\/]/).pop()); + // A success is said by the window's toast, never in place (D120, criterion 4); a failure stays in place. + say(fill(words.dates_saved, to.split(/[\\/]/).pop())); } catch (why) { said.textContent = fill(words.not_saved, why); said.hidden = false; @@ -3459,7 +3461,8 @@ function showMeeting({ session, transcript, minutes, developer, listen: listened actions.id = "meeting-actions"; meetingBar = actions; const press = (id) => () => document.getElementById(id)?.click(); - // What an export became, said once in place (#1252): the file's name, or why it could not be written. + // What an export became, said once: its file's name by the window's toast (D120, criterion 4), or in place why it + // could not be written (#1252). const shared = element("p", "note"); shared.id = "share-said"; shared.setAttribute("role", "status"); @@ -3471,7 +3474,7 @@ function showMeeting({ session, transcript, minutes, developer, listen: listened if (!to) return; try { await window.__TAURI__.core.invoke("meeting_export", { name, format, to }); - shared.textContent = fill(words.export_done, to.split(/[\\/]/).pop()); + say(fill(words.export_done, to.split(/[\\/]/).pop())); } catch (why) { shared.textContent = sentenceOf(String(why)); } @@ -4304,8 +4307,8 @@ function showSettings(shown, minutes, words) { // Kept: the address leaves the page at once; the list, drawn again, names it. address.value = ""; return refresh().then(() => { - const said = document.getElementById("destination-said"); - if (said) said.textContent = fill(words.destination_added, named.value.trim()); + // Said by the window's toast, never in place (D120, criterion 4). + say(fill(words.destination_added, named.value.trim())); }); }, (why) => { @@ -4558,19 +4561,21 @@ function showSettings(shown, minutes, words) { serviceSaid.textContent = fill(words.service_agree_first, hostOf(provider) || "—"); return box.focus(); } - const saved = await invoke("transcription_saved", { + const [ok, saved] = await invoke("transcription_saved", { provider, model, key: key || null, agreed: box.checked, }).then((notKept) => { - if (notKept !== null) return fill(words.key_not_kept, notKept); + if (notKept !== null) return [false, fill(words.key_not_kept, notKept)]; // Saved: the key no longer kept in the page (#964). keyed.forget(keyId); // This computer's: said so, never as an address and a port (#775). - return isHere(hostOf(provider)) ? words.service_saved_here : fill(words.service_saved, hostOf(provider)); - }, (why) => fill(words.not_saved, why)); + return [true, isHere(hostOf(provider)) ? words.service_saved_here : fill(words.service_saved, hostOf(provider))]; + }, (why) => [false, fill(words.not_saved, why)]); // A Tester still asking stays: its answer comes after this, the button its own. serviceAnswer ??= { said: "", asking: false }; - serviceAnswer.said = saved; - serviceSaid.textContent = saved; + // Saved: said by the window's toast, never in place (D120, criterion 4); what went wrong stays in place. + serviceAnswer.said = ok ? "" : saved; + serviceSaid.textContent = serviceAnswer.said; + if (ok) say(saved); }; const serviceKeyId = () => `service:${servicePick.value}`; saveService.addEventListener("click", () => saveHearing(hearing().address, serviceModels.value, keyed.typed(serviceKeyId()), serviceKeyId(), agreeBox, null, serviceModels)); @@ -6108,15 +6113,18 @@ function showFree(listing, busy, words) { said.setAttribute("aria-live", "polite"); go.addEventListener("click", async () => { go.disabled = true; + let freed = false; try { await window.__TAURI__.core.invoke("freed", { names: chosen.map(nameOf), whole }); ticked.clear(); page.dataset.ticked = "[]"; - page.dataset.said = words.free_done; + freed = true; } catch (why) { page.dataset.said = fill(words.not_saved, why); } await refresh(); + // Said by the window's toast once the page is drawn again, never in place (D120, criterion 4). + if (freed) say(words.free_done); }); total.append(sum, go); said.textContent = page.dataset.said ?? ""; From 8ca3c917a86b9b2ce75c8638f2a6ac390b17cd24 Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:10:28 +0100 Subject: [PATCH 5/7] D120 2d oracle: a toast left shown is not one said since; the dialog gone, the next success still toasted The green run at c09827c read the toast still shown from the action before as said since TOAST_WATCH, and so ended waits early (CL, CN, ME). TOAST_WATCH now sets that toast's words aside until a toast is said anew; the sends wait for their own destination's words. Z's Tester checks ask the saved sentence of the toast, nothing in place. dates_mentioned asks, once its dialog is gone with the toast it held, that the next success is still said by a toast in sight. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/scripts/e2e_window.py | 43 +++++++++++++++++++---------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/modules/shell/scripts/e2e_window.py b/modules/shell/scripts/e2e_window.py index e0f4257c..443f2476 100644 --- a/modules/shell/scripts/e2e_window.py +++ b/modules/shell/scripts/e2e_window.py @@ -462,8 +462,11 @@ def real_keys(*keysyms: str) -> bool: TOAST_WATCH = """ window.toasted = []; window.toastWatch?.disconnect(); +// A toast still shown from before is not one said since: its words' node set aside until said anew. +window.toastBefore = document.getElementById('toast')?.hidden === false ? document.getElementById('toast').lastChild : null; window.toastWatch = new MutationObserver(() => { const t = document.getElementById('toast'); + if (window.toastBefore && t?.lastChild === window.toastBefore) return; const said = t && t.getClientRects().length && getComputedStyle(t).visibility !== 'hidden' ? t.textContent.trim() : ''; const last = window.toasted[window.toasted.length - 1]; if (said && (!last || last.gone !== undefined || last.said !== said)) window.toasted.push({ said, shown: performance.now() }); @@ -1556,32 +1559,37 @@ def log_message(self, *_): testing = "const t = document.getElementById('transcription-test'); return t.disabled || t.getAttribute('aria-disabled') === 'true'" check("drawn anew after it answered: the answer stays", browser.execute_script(said).startswith(hears), browser.execute_script(said)) check("drawn anew after it answered: Tester can be asked again", not browser.execute_script(testing)) - # Enregistrer while Tester asks: the sentence said, then the answer; the button given back. + # Enregistrer while Tester asks: saved said by the window's toast, never in place (D120), then the answer; the + # button given back. browser.execute_script("window.answer = null; window.__TAURI__.core = window.held; document.getElementById('transcription-test').click()") wait_for(browser, lambda b: b.execute_script("return window.answer !== null"), 5) + browser.execute_script(TOAST_WATCH) browser.execute_script("document.getElementById('transcription-own-save').click()") - saved_said = wait_for(browser, lambda b: "hears.example" in b.execute_script(said), 5) - check("Enregistrer while Tester asks: said, Tester still disabled", saved_said and browser.execute_script(testing), browser.execute_script(said)) + saved_said = wait_for(browser, lambda b: any("hears.example" in t for t in said_by_toast(b, "Enregistré :")[0]), 5) + check("Enregistrer while Tester asks: said by the toast, nothing in place, Tester still disabled", + saved_said and browser.execute_script(said) == "" and browser.execute_script(testing), [said_by_toast(browser, "Enregistré :"), browser.execute_script(said)]) browser.execute_script("window.answer()") check("then Tester's answer is said, and it can be asked again", wait_for(browser, lambda b: b.execute_script(said).startswith(hears) and not b.execute_script(testing), 10), browser.execute_script(said)) browser.execute_script("window.restore()") - # Enregistrer's own sentence: it outlives a redraw too. + # Enregistrer's own sentence: said by the toast, never in place — nor when drawn anew (D120). + browser.execute_script(TOAST_WATCH) browser.execute_script("document.getElementById('transcription-own-save').click()") - wait_for(browser, lambda b: "hears.example" in b.execute_script(said), 5) - kept_said = browser.execute_script(said) + kept_said = wait_for(browser, lambda b: any("hears.example" in t for t in said_by_toast(b, "Enregistré :")[0]), 5) browser.execute_script("window.__old = document.getElementById('transcription-said'); refresh()") wait_for(browser, lambda b: b.execute_script("return !window.__old.isConnected && document.getElementById('transcription-said') !== null"), 5) - check("Enregistrer's sentence: it stays when drawn anew", browser.execute_script(said) == kept_said, browser.execute_script(said)) + check("Enregistrer's sentence: said by the toast, nothing in place when drawn anew", + kept_said and browser.execute_script(said) == "" and said_by_toast(browser, "Enregistré")[1] == [], browser.execute_script(said)) # Another address saved while Tester asks about the first: its answer is not said of the second. address_to = "const a = document.getElementById('transcription-provider'); a.value = arguments[0]; a.dispatchEvent(new Event('input')); document.getElementById('transcription-own-agreed').click(); document.getElementById('transcription-own-save').click()" browser.execute_script("window.answer = null; window.__TAURI__.core = window.held; document.getElementById('transcription-test').click()") wait_for(browser, lambda b: b.execute_script("return window.answer !== null"), 5) + browser.execute_script(TOAST_WATCH) browser.execute_script(address_to, "https://other.example/v1") - moved = wait_for(browser, lambda b: "other.example" in b.execute_script(said) and 'transcription_agreed = "other.example"' in window.file.read_text(), 5) + moved = wait_for(browser, lambda b: any("other.example" in t for t in said_by_toast(b, "Enregistré :")[0]) and 'transcription_agreed = "other.example"' in window.file.read_text(), 5) browser.execute_script("window.answer()") back = wait_for(browser, lambda b: not b.execute_script(testing), 10) check("another service saved while Tester asks: the answer is not said, the button given back", - moved and back and "other.example" in browser.execute_script(said) and not browser.execute_script(said).startswith(hears), browser.execute_script(said)) + moved and back and not browser.execute_script(said).startswith(hears), browser.execute_script(said)) browser.execute_script("window.restore()") browser.execute_script(address_to, "https://hears.example/v1") wait_for(browser, lambda b: 'transcription_agreed = "hears.example"' in window.file.read_text(), 5) @@ -5895,7 +5903,7 @@ def send(name, confirm=True): press(browser, "send-confirm") if confirm: # Its outcome, not « Envoi vers … », which is said while kitokey-send runs: by the toast, or in place. - wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) + wait_for(browser, lambda b: said_by_toast(b, f"Envoyé à « {name} » à")[0] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) return shown first = send("#équipe") @@ -6079,7 +6087,7 @@ def choose(): on = browser.execute_script("return document.activeElement.id") browser.execute_script(TOAST_WATCH) ActionChains(browser).send_keys(Keys.ENTER).perform() - wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) + wait_for(browser, lambda b: said_by_toast(b, "Envoyé à « #équipe » à")[0] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) told = said_by_toast(browser, "Envoyé à « #équipe » à") said = told[0][0] if len(told[0]) == 1 and told[1] == [] else repr(told) got = made() @@ -6096,7 +6104,7 @@ def choose(): press(browser, "send-open") wait_for(browser, lambda b: b.find_elements(By.CSS_SELECTOR, "#send-panel button.send-to"), 5) browser.execute_script("document.querySelector('#send-panel button.send-to').click()") - wait_for(browser, lambda b: toast_said(b)[:1] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) + wait_for(browser, lambda b: said_by_toast(b, "Envoyé à « #équipe » à")[0] or (b.execute_script(said_now) and not b.execute_script(said_now).endswith("…")), 15) got = made() check("fr: a meeting not confidential: no question, sent at once, no `confirmed_confidential` on its input (D119, criterion 2)", browser.execute_script(asked) is None and len(got) == 3 and "confirmed_confidential" not in json.loads(got[-1]["input"]), @@ -8083,7 +8091,7 @@ def meeting_exported(now: dt.datetime) -> None: press(browser, "share-open") wait_for(browser, lambda b: b.execute_script(menu), 3) press(browser, opener) - written = wait_for(browser, lambda b: to.is_file() and (toast_said(b)[:1] or (b.execute_script(said) or "") != ""), 10) + written = wait_for(browser, lambda b: to.is_file() and (words["done"].format(to.name) in [t for t, _ in toast_said(b)] or (b.execute_script(said) or "") != ""), 10) args = (WORK / "export-args").read_text().split() if (WORK / "export-args").is_file() else [] given = json.loads((WORK / "export-input").read_text()) if (WORK / "export-input").is_file() else {} first = to.read_bytes()[:len(head)] if to.is_file() else b"" @@ -8094,7 +8102,7 @@ def meeting_exported(now: dt.datetime) -> None: # A success is said by the toast, never in place (D120, criterion 4): the toast its one voice. done = words["done"].format(to.name) check(f"{short}, {folder.name}, {kind}: said once, by the toast: « {done} », never in place (D120)", - [t for t, _ in toast_said(browser)] == [done] and said_in_place(browser, done) == [] and browser.execute_script(said) == "" + [t for t, _ in toast_said(browser)].count(done) == 1 and said_in_place(browser, done) == [] and browser.execute_script(said) == "" and browser.execute_script("return [...document.querySelectorAll('[role=status], [aria-live]')].filter((e) => e.textContent.includes(arguments[0])).length", to.name) == 1, [toast_said(browser), said_in_place(browser, done), browser.execute_script(said)]) if kind == "pdf" and not confidential: @@ -10659,6 +10667,13 @@ def dates_mentioned(now: dt.datetime) -> None: browser.execute_script(on_top) == [True, True], browser.execute_script(on_top)) press(browser, "dates-close") wait_for(browser, lambda b: b.execute_script("return !document.getElementById('dates')"), 5) + # The dialog gone with the toast it held: the next success is still said by a toast in the page. + copied = {"fr": "Copié", "en": "Copied"}[language[:2]] + browser.execute_script(TOAST_WATCH) + browser.execute_script("document.getElementById('copy-minutes').click()") + again = wait_for(browser, lambda b: said_by_toast(b, copied)[0] and toast_now(b)[2], 5) + check(f"{language}: the dialog closed, the next success still said by the window's toast, in sight (D120)", + again and toast_now(browser)[3], [said_by_toast(browser, copied), toast_now(browser)]) # A meeting whose actions name no date: nothing offered. browser.execute_script(f"location.hash = '#/meeting/{none.name}'") wait_for(browser, lambda b: b.find_elements(By.CSS_SELECTOR, "#meeting .minutes table.actions"), 10) From 4fb67f9d05fd681133ed62af7b0b23c646a00cc1 Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:10:29 +0100 Subject: [PATCH 6/7] D120 2d: the toast back in the page once the dialog that held it is gone A modal dialog removed takes the toast it held with it; say() now appends it to the page again when it is no longer in the document. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/ui/window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/shell/ui/window.js b/modules/shell/ui/window.js index 350222a1..fe074989 100644 --- a/modules/shell/ui/window.js +++ b/modules/shell/ui/window.js @@ -1083,10 +1083,10 @@ function placeToast() { function say(text) { clearTimeout(toastFor); // A modal dialog open (« Ajouter au calendrier »): said inside it, as the page under it is inert, its toast hidden - // and unheard (HTML's top layer); back in the page once none is open. + // and unheard (HTML's top layer); back in the page once none is open, or once its dialog is gone with it. const open = [...document.querySelectorAll("dialog[open]")].pop(); if (open && toast.parentElement !== open) open.append(toast); - else if (!open && toast.closest("dialog")) document.body.append(toast); + else if (!open && (toast.closest("dialog") || !toast.isConnected)) document.body.append(toast); toast.replaceChildren(icon("check"), element("span", "", text)); toast.classList.remove("high"); toast.style.top = toast.style.bottom = ""; From 50106cb2c9f3532c4fd6e37187b55ad361ae5a06 Mon Sep 17 00:00:00 2001 From: "kitokey-lina[bot]" <356214857+kitokey-lina[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:15:58 +0100 Subject: [PATCH 7/7] D120 2d: the toast's way back from a dialog gone needs no second test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit m-no-reconnect, that test removed, passed dates_mentioned at 4fb67f9: a dialog removed keeps the toast as its child, and toast.closest("dialog") finds it, detached or not. Reverts 4fb67f9; the check « the dialog closed, the next success still said » stays, held by that line. Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5 Co-Authored-By: Claude Opus 5.5 --- modules/shell/ui/window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/shell/ui/window.js b/modules/shell/ui/window.js index fe074989..350222a1 100644 --- a/modules/shell/ui/window.js +++ b/modules/shell/ui/window.js @@ -1083,10 +1083,10 @@ function placeToast() { function say(text) { clearTimeout(toastFor); // A modal dialog open (« Ajouter au calendrier »): said inside it, as the page under it is inert, its toast hidden - // and unheard (HTML's top layer); back in the page once none is open, or once its dialog is gone with it. + // and unheard (HTML's top layer); back in the page once none is open. const open = [...document.querySelectorAll("dialog[open]")].pop(); if (open && toast.parentElement !== open) open.append(toast); - else if (!open && (toast.closest("dialog") || !toast.isConnected)) document.body.append(toast); + else if (!open && toast.closest("dialog")) document.body.append(toast); toast.replaceChildren(icon("check"), element("span", "", text)); toast.classList.remove("high"); toast.style.top = toast.style.bottom = "";