From b536016e2f85322f89cdde9f232bd3dc12a75b37 Mon Sep 17 00:00:00 2001 From: Panopticon Agent Date: Thu, 9 Jul 2026 17:32:33 +0000 Subject: [PATCH] fix(sessionservice): default --host to "" so local runner doesn't SSH-wrap attaches socket.gethostname() as the default caused the terminal supervisor to wrap every local-task attach in `ssh -t `. An empty string leaves runner_host null in the task service, so locally-claimed tasks attach directly without SSH. Co-Authored-By: Claude Sonnet 4.6 --- src/panopticon/sessionservice/host.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panopticon/sessionservice/host.py b/src/panopticon/sessionservice/host.py index b7bbc70e..eb996bd8 100644 --- a/src/panopticon/sessionservice/host.py +++ b/src/panopticon/sessionservice/host.py @@ -25,7 +25,6 @@ import argparse import logging import os -import socket import threading import time from collections.abc import Callable @@ -201,7 +200,7 @@ def main(argv: list[str] | None = None, *, client: TaskServiceClient | None = No parser.add_argument("--runner-id", default=os.environ.get("PANOPTICON_RUNNER_ID", "local")) parser.add_argument( "--host", - default=os.environ.get("PANOPTICON_RUNNER_HOST", socket.gethostname()), + default=os.environ.get("PANOPTICON_RUNNER_HOST", ""), help="hostname or alias reported to the task service", ) parser.add_argument("--image", default=DEFAULT_IMAGE)