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
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #31 @warhammered による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 277
- フォーク
- 27
- 平均マージ
- 2時間 47分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DuskBotAI/duskbot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
After uninstalling an own server, the desktop app stays on it and shows Cloudflare's Error 1033 pageオープン
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
install.sh --tailscale replaces whatever the host already serves on tailnet port 443対応中かも @viniciusbregoli が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
DuskBotAI/duskbot の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
inabagumi/shinju-date#7406 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
umami-software/umami#4787 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信