[GUI] A goal round that needs the person asks in prose, and the screen shows no waiting

Đang mở
#7,265 0 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 4 ngày

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

Đá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
42/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ệ
javascript, typescript
Lĩnh vực
ai, desktop

Hướng nghiên cứu

Start with the user-questions/request handler in app/host/server/agent/agent-bridge.mjs and the related behavior in app/host/tests/ui-do.test.mjs, especially test #4244. Trace how unattended goal and plan runs handle a question and how the running status line is rendered; the proposed change affects both behavior and UI. Done means the goal reports what input is needed and the status makes clear that no reply is expected; the harness-backed end-to-end path and UI gates remain unverified.

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

Mô tả

Area: GUI

Desktop app, Terminal or source? Desktop app 0.2.22, seen while using it. The code path below was read in a source checkout at commit c234774038d1c9249cb33637d27b895d47b39786.

Problem

In a goal round or a Plan-mode step nobody is at the keyboard. When the assistant needs something only the person can give — approval to send something out, signing in, a choice between two options — no question card appears. The host answers the agent's own question event itself, and the model then asks again in ordinary prose, asking for a one-word reply, while the goal keeps starting new rounds.

What the person watching the window sees is one line, Working on the goal…. Nothing on screen says that a decision is missing or that no reply is expected. In practice this reads as "it is waiting for me right now", and the natural reaction is either to answer in the message box mid-run or to press Stop — which cancels the whole task.

Environment

  • Strata 0.2.22 (host/package.json: name: strata, version: 0.2.22); source read at commit c234774038d1c9249cb33637d27b895d47b39786.
  • Windows 11 Pro, build 26300; 12th Gen Intel Core i7-12800HX; 63.7 GB memory.
  • NVIDIA GeForce RTX 3080 Ti Laptop GPU, 16384 MiB (nvidia-smi --query-gpu=memory.total), driver 621.40. Intel UHD Graphics also present.
  • App setup on this machine: family qwen3.8, size iq3_s, context 131072, vision on. The chat in question ran against a model served on this machine, not the packaged engine.

Reproduce

  1. In the desktop app, start a goal whose last step needs the person — for example an objective that ends in "…then send the result out", where sending needs an approval.
  2. Let it run to that point and watch the last rounds.

Expected: either the question waits as a card with the goal paused, or the goal ends as blocked and the goal bar says what is needed.
Actual: the question is answered without anyone answering it, the model asks again in prose, the goal starts further rounds, and the status line gives no hint that anything is outstanding.

Reproduction status

Observed in use on the machine above; the chat is archived locally. The suspected path is read from source and is unconfirmed static analysis as to being the whole cause: in app/host/server/agent/agent-bridge.mjs, the user-questions/request handler answers with outcome: 'next' when turn.goalRun || turn.plan. The repository's own test names this branch as intended behaviour: app/host/tests/ui-do.test.mjs, test #4244 a goal, a plan step and a loop run without anyone there, so a question is declined at once instead of waiting.

What would confirm or refute it: one end-to-end run with STRATA_HARNESS_DIR set to a built harness, in a goal round whose last step needs an approval, watching whether the question event is answered by the host. I did not run that (see "Not run").

Logs

The chat archive for this session is on this machine, but it is private conversation, so nothing from it is attached. Derived information only: the archived transcript is a sequence of 22 turns in which automatic goal rounds and prose turns alternate, and the goal record for that session ends with phase=blocked, blockedReason.code=model-reported, roundsStarted=4, seenGoalIds=7. The full archive can be shared privately if that would help.

Proposed behaviour (asking for scope agreement, not a PR yet)

  1. In an unattended round, answer the agent's question with what the app actually knows instead of a bare skip: nobody is here, and if the next step needs something only the person can give, mark the goal blocked now with update_goal (action: "blocked", blocked_reason: exactly what is needed) and end the round. This has to be words addressed to the model: the Harness exposes goals/create|edit|get|pause|resume|complete|clear and no "block" call, and @deepseek-ai/dsh-goal refuses an edit that changes phase or blockedReason — only the model's own goal tool can produce phase=blocked, which is the state the goal bar already renders as needing the person.
  2. Say in the running status line that no reply is expected: Working on the goal… you do not need to reply.

Tradeoffs and limits

  • This changes the default path for goal and plan runs, which AGENTS.md says to agree first; it could sit behind a setting if you prefer.
  • The task-run / loop case (src/lib/store.ts, loopScheduler.isRunning(sessionId) → the front end skips the ask) has the same root and is deliberately left out, so this stays one problem.
  • If the first answer is refused, the code falls back to outcome: 'next'; whether the Harness treats a second answer for the same eventId as idempotent is unverified.

Validation

  • Passed: npm run typecheck (tsc --noEmit, no output). Targeted run of 89 tests over the question, goal, status and locale surfaces: 73 passed, 0 failed, 16 skipped.
  • Unrelated failures on this machine, present before the change as well: the same 13 files give 73 passed / 7 failed on an untouched checkout and 73 passed / 7 failed with the change — the identical seven (compaction selection, three reply-ceiling-at-512K cases, native file actions, weights directory scan). I list them so nobody reads them as caused by this.
  • Not run: the 16 tests that need STRATA_HARNESS_DIR pointing at a built Harness (the end-to-end ones that would show the question path for real), and the UI gates shot / audit / contrast.

Related

  • #4244 gave the agent's own questions an answerer surface, for a chat a person is looking at. This is the other branch of the same handler: nobody is looking, and today that branch answers the question on the model's behalf in silence.
  • #4956 (plan card) covers the plan being visible, not what happens when a plan step needs a decision.
Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

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.