--host fails under a long codeaf home: ssh control socket path too long
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- cli, networking
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 115
- Forks
- 14
- Merge medio
- 9 h 44 min
- PR fusionados (30 d)
- 766
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Agent-Field/CodeAF
-
area:chat bug sev:papercut
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Agent-Field/CodeAF#1592 ·
Los mantenedores suelen responder en 1 día
-
area:headless bug sev:critical
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Agent-Field/CodeAF#1566 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
area:chat feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Agent-Field/CodeAF#1510 ·
Los mantenedores suelen responder en 1 día
-
area:tests bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Agent-Field/CodeAF#1489 ·
Los mantenedores suelen responder en 1 día
-
area:chat bug good first issue sev:papercut
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Agent-Field/CodeAF#1470 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Agent-Field/CodeAF
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
Los mantenedores suelen responder en 2 días
-
agent-research-finding agent-research-recommend chore ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
jordansmall/spindrift#4068 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Type/Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
OpenNSW/nsw-srilanka#537 ·
Los mantenedores suelen responder en 1 día
-
security
Dificultad 2/5 1-2 días Aptitud para principiantes 62/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día