Routine stuck on "Needs you: It's waiting for your answer"; Answer button does nothing

Đang mở
#17 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #32 của @warhammered — đã đóng, không merge

Đá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
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)

  1. Every wait is shown as a question. automationStatus maps status === "waiting" to a hardcoded reason and to the answer fix (src/lib/automations.ts:258-259). It ignores run.attention, which the server already sets (server/routine-waits.ts:72-75, server/routines.ts:1354).
  2. Answer is a no-op. fix("answer") → openRun → openBotThread only dispatches select + 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 no threadId, it returns without doing anything.
  3. 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 :1245 drops events while the person is driving the thread, so the person's own turn.completed can't clear it. Unanswered approvals expire (routine-waits.ts:81-103); unanswered questions never do. The only route is POST /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
  1. Get a routine run into waiting. The row shows Needs you: It's waiting for your an….
  2. Answer the bot's question in the chat. The bot confirms and the turn ends.
  3. The row and the detail panel still say It's waiting for your answer.
  4. Click Answer. Nothing happens.
  5. Pause, then Resume. Needs you comes back.
  6. 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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DuskBotAI/duskbot

Tất cả issue của DuskBotAI/duskbot

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.