Add Herdr agent fork command menu

This commit is contained in:
2026-09-18 09:07:04 +00:00
parent d6697d46f8
commit 6e420b2db5
7 changed files with 897 additions and 4 deletions
+15
View File
@@ -59,6 +59,21 @@ class TmuxIntegrationTests(unittest.TestCase):
pass
self.socket_path.unlink(missing_ok=True)
def test_control_uses_existing_prefix_and_active_window(self) -> None:
self.hub.ensure_server()
binding = self.hub.run(["list-keys", "-T", "prefix", "h"]).stdout
self.assertIn("display-popup", binding)
self.assertIn("control", binding)
self.assertNotIn("--window", binding)
self.assertNotIn("#{window_id}", binding)
old_binding = self.hub.run(
["list-keys", "-T", "root", "C-g"], check=False
)
self.assertNotEqual(old_binding.returncode, 0)
self.assertEqual(self.hub.run(["show-options", "-gv", "prefix"]).stdout.strip(), "C-a")
self.assertEqual(self.hub.run(["show-options", "-gv", "prefix2"]).stdout.strip(), "None")
self.assertIn("choose", self.hub.run(["list-keys", "-T", "prefix", "g"]).stdout)
def test_configures_isolated_server_and_adds_without_duplicates(self) -> None:
self.assertTrue(self.hub.ensure_server())
endpoints = [Endpoint.local(), Endpoint.remote("orangepi")]