From c936233ce5b657ea35a36176ffdc1c46fb9ed15a Mon Sep 17 00:00:00 2001 From: Jonathan Chun Date: Thu, 5 Mar 2026 20:27:25 -0800 Subject: [PATCH 1/2] Fix connection key mismatch between Go and fawdy2 Return bare hostname as `key` in connect response so fawdy2 uses it for subsequent command lookups, instead of constructing user@host:port which doesn't match Go's internal connection map. Co-Authored-By: Claude Opus 4.6 --- control/control.go | 1 + 1 file changed, 1 insertion(+) diff --git a/control/control.go b/control/control.go index 7224ff7..c9ac322 100644 --- a/control/control.go +++ b/control/control.go @@ -148,6 +148,7 @@ func (s *Server) dispatch(ctx context.Context, req Request) Response { } data, _ := json.Marshal(map[string]string{ "host": params.Host, + "key": params.Host, "message": "Connected to " + params.Host, }) return Response{OK: true, Data: data} From 63494eba17dc644865db06121182da4ece59b90a Mon Sep 17 00:00:00 2001 From: Jonathan Chun Date: Fri, 6 Mar 2026 07:07:44 -0800 Subject: [PATCH 2/2] Allow --no-pager flag for all systemctl subcommands The --no-pager flag is a global systemctl option useful in non-interactive contexts. It was only allowed for systemctl_status but rejected for list-units, show, is-active, and is-enabled. Co-Authored-By: Claude Opus 4.6 --- manifest/manifests/systemctl_is-active.yaml | 3 ++- manifest/manifests/systemctl_is-enabled.yaml | 3 ++- manifest/manifests/systemctl_list-units.yaml | 1 + manifest/manifests/systemctl_show.yaml | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifest/manifests/systemctl_is-active.yaml b/manifest/manifests/systemctl_is-active.yaml index 66162d3..05ea4f5 100644 --- a/manifest/manifests/systemctl_is-active.yaml +++ b/manifest/manifests/systemctl_is-active.yaml @@ -1,6 +1,7 @@ name: systemctl_is-active description: Check whether units are active category: services -flags: [] +flags: + - flag: "--no-pager" stdin: false stdout: true diff --git a/manifest/manifests/systemctl_is-enabled.yaml b/manifest/manifests/systemctl_is-enabled.yaml index 1a4b221..31966e2 100644 --- a/manifest/manifests/systemctl_is-enabled.yaml +++ b/manifest/manifests/systemctl_is-enabled.yaml @@ -1,6 +1,7 @@ name: systemctl_is-enabled description: Check whether unit files are enabled category: services -flags: [] +flags: + - flag: "--no-pager" stdin: false stdout: true diff --git a/manifest/manifests/systemctl_list-units.yaml b/manifest/manifests/systemctl_list-units.yaml index 9deb9ba..03935c7 100644 --- a/manifest/manifests/systemctl_list-units.yaml +++ b/manifest/manifests/systemctl_list-units.yaml @@ -5,5 +5,6 @@ flags: - flag: "--type" takes_value: true - flag: "--failed" + - flag: "--no-pager" stdin: false stdout: true diff --git a/manifest/manifests/systemctl_show.yaml b/manifest/manifests/systemctl_show.yaml index 16c9486..2dbcbc7 100644 --- a/manifest/manifests/systemctl_show.yaml +++ b/manifest/manifests/systemctl_show.yaml @@ -4,5 +4,6 @@ category: services flags: - flag: "-p" takes_value: true + - flag: "--no-pager" stdin: false stdout: true