--host fails under a long codeaf home: ssh control socket path too long
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- cli, networking
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Build dev 837b2b0 (
git checkout 837b2b0 && make build, binarybin/codeaf), or install the dev build withcurl -fsSL https://agentfield.ai/get/devaf | bash. - Use an isolated profile:
export HOME=$(mktemp -d), exportOPENROUTER_API_KEY, and keep the default model (~deepseek/deepseek-v4-flash-latest, crew on auto). - On a busy machine set
task.max_loadto0(/settings, Tasks) so the busy-machine gate does not hold tasks. - Make a long home:
export HOME=$(mktemp -d)/$(printf 'a%.0s' $(seq 1 60))andmkdir -p "$HOME". 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%Cto 40 characters and callsenginehost.SocketPathFits, but OpenSSH binds the control master first to the path plus a random.XXXXXXXXXXXXXXXXsuffix, 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 localhostwith the long HOME above connects. - Unit:
sshControlPathreturns 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
- Lingua principale
- Go
- Stelle
- 115
- Fork
- 14
- Merge medio
- 9h 37m
- PR unite (30g)
- 755
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agent-Field/CodeAF
-
area:chat bug sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Agent-Field/CodeAF#1592 ·
I maintainer di solito rispondono entro 1 giorno
-
area:headless bug sev:critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1566 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
area:chat feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1510 ·
I maintainer di solito rispondono entro 1 giorno
-
area:tests bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Agent-Field/CodeAF#1489 ·
I maintainer di solito rispondono entro 1 giorno
-
area:chat bug good first issue sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Agent-Field/CodeAF#1470 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agent-Field/CodeAF
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
rossoctl/context-guru#346 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
prime-radiant-inc/evener#2883 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
gravitational/teleport#69805 ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Under Poisson sampling, the `PLDAccountant` composes the inner event both before and after samplingAperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 78/100
google/differential-privacy#496 ·