fix(webui): refresh pairing prompts on gateway changes (#6401)

This commit is contained in:
chengyongru authored and GitHub committed 2026-10-25 20:16:51 +08:00
1 parent 9e9e22d331
commit 8af6313c56
26 files changed
+630 -82

No files matched your search

+2 -2
View File
@@ -264,7 +264,7 @@ class TestPairingCommandDispatch:
) -> None:
monkeypatch.setattr(
"nanobot.pairing.store.approve_code",
lambda code: ("telegram", "123") if code == "ABCD-EFGH" else None,
lambda code, *, on_change=None: ("telegram", "123") if code == "ABCD-EFGH" else None,
)
fake_msg.content = "/pairing approve ABCD-EFGH"
ctx = CommandContext(
@@ -286,7 +286,7 @@ class TestPairingCommandDispatch:
) -> None:
monkeypatch.setattr(
"nanobot.pairing.store.revoke",
lambda ch, sid: sid == "123",
lambda ch, sid, *, on_change=None: sid == "123",
)
fake_msg.content = "/pairing revoke 123"
ctx = CommandContext(