Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

--host fails under a long codeaf home: ssh control socket path too long

Offen
#1,580 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
cli, networking

Rechercherichtung

Start in cmd/codeaf/chatv3_host.go:244-259 and inspect sshControlPath together with enginehost.SocketPathFits. Reproduce with the long HOME setup and run the relevant unit or end-to-end checks. Done means the control path plus 17 bytes fits the platform socket limit or uses a short fallback, and codeaf --host localhost connects.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:remote bug sev:serious

Seen on: dev 837b2b0.

Behaviour

With a long codeaf home path, codeaf --host <machine> fails before connecting: unix_listener: path "…/.codeaf/v3/ssh/ctl-f53e…" too long for Unix domain socket, then error: ssh could not open a session on <machine>. A long home should still connect (or be refused before ssh runs with one plain line). Related: #1442 is the same limit for the engine socket.

Replication

  1. Build dev 837b2b0 (git checkout 837b2b0 && make build, binary bin/codeaf), or install the dev build with curl -fsSL https://agentfield.ai/get/devaf | bash.
  2. Use an isolated profile: export HOME=$(mktemp -d), export OPENROUTER_API_KEY, and keep the default model (~deepseek/deepseek-v4-flash-latest, crew on auto).
  3. On a busy machine set task.max_load to 0 (/settings, Tasks) so the busy-machine gate does not hold tasks.
  4. Make a long home: export HOME=$(mktemp -d)/$(printf 'a%.0s' $(seq 1 60)) and mkdir -p "$HOME".
  5. codeaf --host localhost (with a local ssh server).

Evidence

  • Screen: unix_listener: path "…/.codeaf/v3/ssh/ctl-f53e…" too long for Unix domain socket, error: ssh could not open a session on ….
  • cmd/codeaf/chatv3_host.go:244-259 (sshControlPath): the check expands %C to 40 characters and calls enginehost.SocketPathFits, but OpenSSH binds the control master first to the path plus a random .XXXXXXXXXXXXXXXX suffix, so a path that passes the check can still be too long.

Guessed cause

A guess from reading the code, not a confirmed diagnosis. The fit check does not allow for the temporary suffix OpenSSH adds when it binds the master socket, and there is no short fallback such as $XDG_RUNTIME_DIR or /tmp.

Acceptance

  • e2e: codeaf --host localhost with the long HOME above connects.
  • Unit: sshControlPath returns a path whose length plus 17 bytes fits the platform's socket limit, or a short fallback.

Found while writing the public docs; manual text differences are in #1545.

🤖 Generated with Claude Code

Vorherrschende Sprache
Go
Sterne
115
Forks
14
Ø Merge
9 Std. 44 Min.
Gemergte PRs (30 T.)
766

Entwicklungsumgebung

Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Agent-Field/CodeAF

Alle Issues in Agent-Field/CodeAF

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.