[0.1.16] [Linux 7.3.4-arch1-1] The agent's shell is dash, and it's been quietly breaking my environment
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- bash, typescript
Línea de trabajo
The issue describes four related problems in run_command, the terminal tool manifest, prompt caching, and terminal session timeouts, but names no source files or tests. Start by locating those entry points and tracing how shell environments, dynamic tools, cache keys, and terminal session lifetimes are handled. Done means the reported behaviors have a defined resolution and are covered by appropriate checks; the issue itself leaves the implementation and expected behavior open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version
0.1.16
Platform
Linux 7.3.4-arch1-1
Description
Hello,
I ran into the issues below, which cost me a few hours of debugging. Documenting it in case others encounter the same behavior.
Issue 1 — run_command runs the wrong shell
run_command executes under dash, not the user's login shell (bash), and doesn't source their rc (~/.bashrc). On top of that, the tether app filters out the user's custom UV_* envs. So any command run through it operates on a different environment than the user's terminal — missing PATH entries, aliases, exports. The agent silently produces wrong results (e.g. "command not found" or the wrong interpreter) with no error explaining why.
Repro: user has an export/alias in bashrc; run_command 'echo $MY_VAR' → empty, while the same in the user terminal works.
The UV_* part is worth calling out on its own: dash loads some of the user environment, but the app filters out the UV_* ones specifically. "Some envs load, but not those" looks like it's working right up until it very much isn't, which is what made it so hard to pin down. — hours of user troubleshooting.
And since dash can't source bashrc, the agent can't pick up mise tooling or reproduce a CI/CD environment at all. Anything depending on that setup just silently fails from the agent's side.
Issue 2 — the tool appears/disappears on UI state
read_user_terminal / send_user_terminal_input is not in the agent's tool manifest until the user opens the terminal in the UI. There's no signal distinguishing "tool doesn't exist" from "tool not available right now." Consequence: the agent confidently asserts a capability is absent, then contradicts itself once the tool appears. I had the enjoyable experience of watching it tell me a tool didn't exist, then change its mind later.
Issue 3 — dynamic tools invalidate the prompt-cache prefix
Tools are serialized at the front of the request (system + tools + messages). Caching keys on that prefix. If the tool list mutates mid-conversation (terminal opened → tool added/removed), the prefix hash changes → full cache miss for the whole conversation, so every subsequent turn re-processes the entire prefix at full cost/latency. A UI toggle thus has a backend cost + latency side effect the user never sees.
Issue 4 — the terminal UI times out
The terminal view drops its session after a period. When it does, the agent loses read_user_terminal / send_user_terminal_input mid-task and the working environment disappears out from under it. This compounds Issue 2: the tool vanishes for a reason the agent can't observe, and a long-running task can get stranded halfway through with no hint as to why.
Honestly, all of this collapses into one wish: a single, solid, stable bash tool that reflects the user's real environment. That would make everything above just... work.
No fixes needed on my end — I'm sure you know the right way to wire this up. Just wanted to flag it, since it's the kind of thing that's invisible until it eats someone's afternoon. Thanks for the great work on this — genuinely a joy to use apart from this one sharp edge. 🙂
Steps to reproduce
No response
Additional context
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 199
- Forks
- 10
- Merge medio
- 1 min
- PR fusionados (30 d)
- 15
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 open-webui/tether
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
open-webui/tether#57 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
open-webui/tether#52 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
open-webui/tether#72 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
open-webui/tether#69 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
open-webui/tether#68 ·
Los mantenedores suelen responder en 1 día
Todos los issues de open-webui/tether
Issues similares
-
enhancement feature/signals self-driving team/self-driving
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PostHog/posthog#144208 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug good first issue web
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
triage: not actionable
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
oxc-project/oxc#30518 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug Claude useability
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wazuh/wazuh-dashboard-plugins#9751 ·
Los mantenedores suelen responder en 1 día