[0.1.16] [Linux 7.3.4-arch1-1] The agent's shell is dash, and it's been quietly breaking my environment
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 199
- Fork
- 10
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của open-webui/tether
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
open-webui/tether#57 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
open-webui/tether#52 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
open-webui/tether#72 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
open-webui/tether#69 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
open-webui/tether#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của open-webui/tether
Issue tương tự
-
enhancement feature/signals self-driving team/self-driving
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PostHog/posthog#144208 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
triage: not actionable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
oxc-project/oxc#30518 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Claude useability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
wazuh/wazuh-dashboard-plugins#9751 ·
Maintainer thường phản hồi trong vòng 1 ngày