Antigravity: "Running view_file" never gets a completed status mid-turn, so the UI shows it hanging for minutes and the trail log records fake durations
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #31 của @warhammered — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/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ệ
- typescript
Hướng nghiên cứu
Start by tracing the ACP adapter’s handling of session/update messages and how it matches tool call IDs to open view_file calls; the issue does not name source files. Enable DUSK_DEBUG_ACP=1 and reproduce by asking Antigravity to read several workspace files. Done means read calls emit their completion before bot.turn.end, covered by a test for an Antigravity read.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version
0.2.15 (also seen on 0.2.12 before the update)
Platform
Own server (Windows 11 + WSL2 Ubuntu 24.04)
Engine
Gemini 4 Hydrogen via Antigravity ACP (agy_acp_server.par in bwrap)
What happened
Expected: each view_file tool call is marked done when Antigravity finishes it, like Read on the Claude engine.
Actual: the chat shows "Running view_file" for minutes (users see "Digging around" for 10 to 14 minutes). In logs/trail-server.jsonl (16 Nov 22:32 to 17 Nov 18:33 WIB):
| count | |
|---|---|
Running view_file events |
393 |
logged ok:true, all within 2 s of bot.turn.end |
195 |
logged ok:false mid-turn |
189 |
ok:true logged mid-turn |
0 |
| completions sharing the same second with others | 358 (bursts up to 20) |
Median logged duration 52 s, p90 366 s, max 957 s. Claude engine Read in the same period: 119 calls, median 0.2 s, 97% ok. Running client_view_file: 10 calls, 3 ok.
So a view_file is never closed when it actually finishes. It is closed in a batch, either as failed when the next step starts or as ok when the turn ends. The status the user sees and the durations in the log are both wrong, which makes every Gemini turn look stuck and makes the "slow model" notice fire.
Steps to reproduce
- Bot on Antigravity / Gemini 4 Hydrogen, ask it to read 5 files in its workspace and summarize them.
- Watch the chat: each "Running view_file" stays until the turn ends.
grep 'view_file' ~/.duskbot/logs/trail-server.jsonland comparetswith the turn'sbot.turn.end.
Likely cause (hypothesis, not confirmed in source)
The ACP adapter does not match Antigravity's tool_call_update with status: completed to the open view_file call (different toolCallId, or the update arrives without the status field the adapter checks), so the call is only settled by the end-of-step or end-of-turn sweep.
Suggested fix
Log the raw session/update messages for one view_file with DUSK_DEBUG_ACP=1 and settle the call on the first update that carries completed/failed or content for that toolCallId. Add a test that bot.tool for an Antigravity read is emitted before bot.turn.end.
- Ngôn ngữ chính
- TypeScript
- Star
- 277
- Fork
- 27
- Merge trung bình
- 2 giờ 47 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 DuskBotAI/duskbot
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
After uninstalling an own server, the desktop app stays on it and shows Cloudflare's Error 1033 pageĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
install.sh --tailscale replaces whatever the host already serves on tailnet port 443Có thể đã có người làm @viniciusbregoli đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DuskBotAI/duskbot
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
inabagumi/shinju-date#7406 ·
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 76/100
umami-software/umami#4787 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày