[Bug]: request_secret file delivery has no trailing newline, and the tool text does not say so
Los mantenedores suelen responder en 1 día
@juliusmarminge ya está trabajando en esto.
Desde el 11/11/2026.
- #34494 de @juliusmarminge — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 69/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Lee apps/server/src/secrets/SecretRequests.ts y localiza la descripción de la herramienta request_secret y las indicaciones sobre sudo mencionadas en el issue. Comprueba cómo se escribe el secreto al entregarlo en un archivo y compara ese comportamiento con las instrucciones dirigidas al agente. El trabajo estará terminado cuando las instrucciones expliquen la falta del salto de línea final y den una forma práctica de manejar lectores basados en líneas, incluido sudo remoto por SSH si corresponde.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Have an agent call
request_secretwithdelivery: "file"and enter a password. - Have the agent feed the file to a line-based reader, for example running sudo on another machine over
ssh -tt(sudo's timestamp has to be on the same tty as the later command, sosudo -S < "$file"locally does not help):
ssh -tt host 'IFS= read -rs pw; printf "%s\n" "$pw" | sudo -S -p "" true; ...' \
< <(cat "$file"; exec sleep 7200)
Expected behavior
The agent knows from the tool text that the file holds the value exactly, with no trailing newline, so it appends one for readers that wait for a line. Or there is a documented pattern for sudo on a remote host.
Actual behavior
request_secret writes the value with no trailing newline (apps/server/src/secrets/SecretRequests.ts, fileSystem.writeFile(partial, new TextEncoder().encode(value), ...)). The two patterns in the agent-facing text, "$(cat <file>)" and sudo -S -p '' <cmd> < "$file", work because both accept EOF. Neither the tool description nor the sudo guidance says the newline is missing, though.
In the case above, read never sees a newline, so the remote shell blocks with no output and no error. The agent cannot tell it is stuck on the password, not on the work it started, until it checks the remote process list. Appending printf '\n' after cat "$file" fixes it.
Suggestion: say in the request_secret description, and in the sudo guidance, that the file has no trailing newline. Optionally add a short pattern for sudo on a remote host over ssh.
Impact
Minor bug or occasional failure
Version or commit
T3 Code desktop 0.1.9-nightly.20261111.4515
Environment
macOS desktop app, Claude provider; the target was a linked Linux machine reached over ssh.
Workaround
Append a newline: < <(cat "$file"; printf '\n'; exec sleep 7200).
- Lenguaje dominante
- TypeScript
- Estrellas
- 24.8k
- Forks
- 6.4k
- Merge medio
- 10 h 56 min
- PR fusionados (30 d)
- 226
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 pingdotgg/t3code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
[Bug]: Changing the sidebar project filter collapses an expanded Settled shelf back to 10 threadsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pingdotgg/t3code#34291 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pingdotgg/t3code#34041 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de pingdotgg/t3code
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#33947 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
paperclipai/paperclip#20942 ·
Los mantenedores suelen responder en 1 día
-
area: documentation good first issue package: rule-data status: accepting prs
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
mastra-ai/mastra#30109 · 2 comentarios ·
Los mantenedores suelen responder en 1 día