Bind approval UI to current request and verify panel cleanup

This commit is contained in:
saphid committed 2026-09-28 22:29:18 +10:00
1 parent 6a8e3fadbf
commit b5cf8253e6
6 files changed
+83 -12

No files matched your search

+10
View File
@@ -2,6 +2,7 @@
import io
import json
import os
import shutil
from pathlib import Path
import subprocess
import sys
@@ -149,6 +150,15 @@ class Assistant(unittest.TestCase):
capture.assert_not_called()
class AssistantPage(unittest.TestCase):
@unittest.skipUnless(shutil.which('node'), 'Node is required for the page script regression')
def test_approval_navigation_races(self):
root = Path(__file__).resolve().parents[1]
result = subprocess.run(['node', str(root / 'tests/assistant_ui.cjs'), str(root / 'ui/assistant.html')],
capture_output=True, text=True, timeout=10)
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
class Protocol(unittest.TestCase):
def test_stdio_initialize_list_call_errors_and_eof(self):
messages = [