Routine stuck on "Needs you: It's waiting for your answer"; Answer button does nothing
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #32 来自 @warhammered —— 已关闭,未合并
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Start with src/lib/automations.ts and trace the Answer action through BotRoutines.tsx, actions.ts and thread-navigation.ts; compare that flow with wait handling in server/routine-waits.ts and server/routines.ts. The issue leaves key behavior decisions open, including how unanswered questions end and which wait the reported run entered. Done means the status reflects run.attention, Answer provides a usable path, and stale waits can be cleared according to an agreed behavior.
由索引模型根据 Issue 内容生成。
描述
What happened
A routine run in waiting keeps showing It's waiting for your answer. after the question is answered. Answer does nothing. Pause/Resume brings the message back. Only Test hides it, and only because a newer dry run becomes the latest run.
Expected
- Answer opens the pending question or approval card, scrolls to it and focuses the composer. If the question no longer exists, it says so.
- Answering in chat clears the wait.
- The status text says what the run is actually waiting on (
run.attention). - The person can dismiss a stale wait.
Likely cause (from reading source at 76735c0, not verified)
- Every wait is shown as a question.
automationStatusmapsstatus === "waiting"to a hardcoded reason and to theanswerfix (src/lib/automations.ts:258-259). It ignoresrun.attention, which the server already sets (server/routine-waits.ts:72-75,server/routines.ts:1354). - Answer is a no-op.
fix("answer")→openRun→openBotThreadonly dispatchesselect+switchTask(BotRoutines.tsx:207-211, 266-268,actions.ts:84-87,thread-navigation.ts:71-79). If the thread is already open, nothing changes on screen. If the run has nothreadId, it returns without doing anything. - Nothing can clear a wait. A wait ends only when a runtime event arrives on the thread (
server/routines.ts:1245-1268). The guard at:1245drops events while the person is driving the thread, so the person's ownturn.completedcan't clear it. Unanswered approvals expire (routine-waits.ts:81-103); unanswered questions never do. The only route isPOST /api/routines/:id/run(server/index.ts:15810), and it starts a new run.
Evidence (~/.duskbot/routines.json): the run started at 20:15:12 and went waiting at 20:29:12, with no asked entry and no attention. At 20:57:18 it failed with Did not start: still busy after 60 minutes. For 28 minutes the UI asked for an answer to a question that didn't exist; the run was really waiting on a busy thread.
To decide
- Should Answer link straight to the card, or open an inline reply box in the panel?
- Should an unanswered question expire like an approval does, or close when its turn ends?
- Which wait did the 20:15 run enter with an empty
attention: busy thread, superseded question or delegation? - Out of scope: the 60-minute "still busy" refusal. It needs its own issue.
Steps to reproduce
- Get a routine run into
waiting. The row showsNeeds you: It's waiting for your an…. - Answer the bot's question in the chat. The bot confirms and the turn ends.
- The row and the detail panel still say
It's waiting for your answer. - Click Answer. Nothing happens.
- Pause, then Resume.
Needs youcomes back. - Click Test. The badge goes away, but the waiting run is still there.
Version
0.2.15 (macOS app with its local server)
Platform
macOS
Engine
pi (opencode-go/hy4-flash-free)
Logs or screenshots
At 5.4 s and 12.9 s, Answer is clicked with no effect while the row keeps showing Needs you.
https://github.com/user-attachments/assets/0a918266-ad24-439e-9cc5-2442c8276d78
- 主要语言
- TypeScript
- 星标
- 277
- 派生
- 27
- 平均合并
- 2 小时 47 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天内回复