Skip to content

console Flow Runs page keeps "Waiting for input" and a live "Continue run" button after the screen run completes; continuing ends in 404 RUN_NOT_FOUND #33856

Closed

Description

@objectstack-fleet

qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB

Kind: product defect (off-clause probe, group C, qa#3 v18.5.0 sweep R-185-BR1, objectstack main @ a557fa3)

Repro

  1. Boot the showcase: objectstack dev --ui --seed-admin (any port), sign in as admin@objectos.ai.
  2. Open the developer Flow Runs page (/_console/apps/showcase_app/component/developer/flow-runs), pick a screen flow (one whose first
    suspending node is a screen node), click Run Flow.
  3. The test panel shows "Waiting for input" and the FlowRunner dialog opens on the paused screen. Fill it and press
    Submit. The run completes: Recent Runs lists it completed, and GET /api/v1/automation/‹flow›/runs/‹runId›
    reports status completed.
  4. Expected: the test panel shows the final result (green "Result") or at least drops the paused affordances.
    Actual: the panel still reads "Waiting for input", "This run is paused at screen ‹node›.", and offers
    Continue run.
  5. Click Continue run: the dialog reopens on the same (now completed) run with the old screen. Press Submit:
    the resume door answers 404 RUN_NOT_FOUND "No suspended run 'run_bd679b9d-60e6-45a5-95a4-c671d5f757bf'",
    shown inside the dialog.

Mechanism

ui/apps/console/src/pages/developer/FlowRunsPage.tsx

  • :397 setResult(res) stores the trigger response (status: 'paused', screen, runId).
  • :530 onComplete={() => { setScreenFlow(null); onExecuted?.(); }} clears only the runner state; result
    is never updated or cleared when the run finishes.
  • :475–476 the header still picks the result?.status === 'paused' branch ("Waiting for input").
  • :489 result?.status === 'paused' && result?.screen && result?.runId && !screenFlow is now true again (screenFlow
    is null), so the "Continue run" button reappears and reopens a screen the server no longer holds.
    Fix direction: in onComplete, clear result or replace it with the completed run (re-read the run, or use the
    resume response FlowRunner received).

Severity guess

Low: developer/testing surface only; no data harm. The run itself completes correctly; the stale panel misleads
the tester and the reopened dialog ends in an error.

Duplicate searches (read-only, 2026-11-15)

QA-source: #33853 · automation.flow-runs-page-test-trigger · observed beside the clauses

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p3 · 2026-11-15T12:56Z

    ⛔ Not a claim.

    From sweep #33761. The Flow Runs page keeps "Waiting for input" and a live Continue button after the run completes, and continuing answers 404. Stale state, so p3.

  2. added
    domain:ui
    pm:queue
    on Nov 15, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 1 · 2026-11-15T14:17Z
    Session: session_01ADHkmS962HES2iQRXR9ip3 (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
    Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/project-thread-o7p46e
    Worktree: objectstack-issue-33856
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/apps/console/src/pages/developer/FlowRunsPage.tsx and its tests (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/apps/console FlowRunsPage (objectstack) | none | developers testing screen flows on the Flow Runs page
    Thread-read: 6894654951
    Premise: holds
    Serial constraints cleared: no open PR touches this surface (read 14:15Z); seat 1's p1/p2 cards and seat 2's other in-flight cards (#33863, #33858, #33857, #33856, #33723) have disjoint files

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Release: 2026-11-15T14:20Z — the domain:ui#2 claim 6895881860 ends before any work. Back to pm:queue, assignee cleared.

    • Why: the maintainer, in this account's fleet project chat: 「尽快把 p1 p2 卡处理完」 and 「应该是优先 p1 p2 ,为什么会派 p3」 (2026-11-15T14:16:27Z). This shift works p1/p2 only; this card is p3.
    • State: the card thread stopped with zero edits, zero commits, nothing pushed, no PR, no GitHub writes. Branch claude/project-thread-o7p46e carries nothing. Resume-from: none (start from main).
    • Reading kept for the next dev (data, not a ruling): FlowRunner's onComplete takes no arguments, so the resume response is not reachable from FlowRunsPage.tsx alone; the in-surface route is to re-read the run with client.automation.getRun in onComplete. The CONTROL (Cancel keeps Continue) already exists in FlowRunsPage.test.tsx.
  6. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 15, 2026
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 2 · 2026-11-15T17:14Z
    Session: session_01ADHkmSmRojhM8vYjHkVSeg (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
    Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/project-thread-14asce
    Worktree: objectstack-issue-33856
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/apps/console/src/pages/developer/FlowRunsPage.tsx and its tests (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/apps/console FlowRunsPage (objectstack) | none | developers testing screen flows on the Flow Runs page
    Thread-read: 6895948571
    Premise: holds
    Serial constraints cleared: no open PR touches FlowRunsPage.tsx (read 17:15Z); prior claim 6895881860 released 6895948571 with no work; seat 1 p3 split agreed 17:14Z

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSmRojhM8vYjHkVSeg
    os-dev-report

    {
      "issue": 33856,
      "status": "done",
      "branch": "claude/project-thread-14asce",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34085",
      "session": "session_01ADHkmSmRojhM8vYjHkVSeg",
      "premise_still_valid": true,
      "summary": "FlowRunsPage FlowTestRunner: FlowRunner onComplete now runs handleComplete, which closes the runner, clears the paused trigger answer, refreshes the run list, then re-reads the run with client.automation.getRun(flow.name, runId) and shows the stored run as the result (completed reads green Result; no Waiting for input, no Continue run). A ref generation counter drops a read that lands after a new run or a flow switch; a client without getRun gets the page panel error for automation.getRun. onClose (runner dismissed while paused) is unchanged, so a still-paused run keeps Continue run. Card labels read pm:queue together with pm:dispatched and no assignee at 17:15Z; not touched (seat state).",
      "tests": "head 6c401b3f: pnpm --dir ui exec vitest run apps/console/src/pages/developer/FlowRunsPage.test.tsx under the lock after pnpm --filter @object-ui/console^... build (VERDICT exit 0): Test Files 1 passed, Tests 4 passed. Ablation via scripts/ablation-replace.mjs on the committed fix: anchor onComplete={handleComplete} -> old inline onComplete (anchor 1->0, blob 8c147b87->19a1de0d): new test red (expected getRun called with reassign_wizard, run_1), 1 failed / 3 passed; restored, blob == HEAD, git diff HEAD empty. Test imports the page from src, no dist leg.",
      "gates": "head 6c401b3f (after merging origin/main e71ecc1b..): dispatch-gates --commands = 36, all run, all exit 0 (captured before any pipe); --ran: 36 derived, 36 run, 0 NOT-MEASURED, 0 UNRUN. Extra: pnpm check:changeset-fixed exit 0 (roster under .changeset); pnpm --filter @object-ui/console run type-check exit 0 (its tsc program lists 0 test files, so it covers the page only). CI check-runs: in_progress at report time, not re-run locally.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — reads only: mcp__github__issue_read get_comments, mcp__github__issue_read get, mcp__github__pull_request_read get",
      "api_writes": "2 — relay pr_create (PR #34085, draft, assignees os-steve), relay issue comment os-dev-report on #33856 via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat (domain:ui#2) · noted in PR Acceptance notes, not filed · read-only inference, not measured: after onClose the stale paused result can bring back Continue run for (1) a run that ended refused (the runner shows the refusal and never calls onComplete) and (2) a multi-step wizard dismissed at step 2 (Continue reopens step 1 screen); fixing needs FlowRunner (@object-ui/app-shell) to report where the run ended · dedupe words: FlowRunner onClose refused Continue run, wizard step stale screen, Flow Runs test panel"
      ],
      "files_changed": [
        "ui/apps/console/src/pages/developer/FlowRunsPage.tsx",
        "ui/apps/console/src/pages/developer/FlowRunsPage.test.tsx",
        ".changeset/33856-flow-runs-completed-run.md"
      ],
      "line_budget": "81 additions / 5 deletions over 3 files (PR read-back); under the 3000-line human-merge threshold",
      "deviations": [
        "Merged origin/main into the branch before opening the PR (gate scripts were stale by 8 commits); rebuilt the console closure and re-ran the test and all gates on the merged head 6c401b3f."
      ]
    }

    Stamped 2026-11-15T18:10Z.


    Generated by Claude Code

  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    ACCEPT → PR #34085 (seat record) · 2026-11-15T18:29Z · ready and auto-merge armed.

  11. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Landed · 2026-11-15T22:33Z

    reading value
    PR #34085 MERGED as 24972aa3 on main (Fixes #33856)
    card closed

    State: pm:dispatched removed, assignee cleared.

  12. removed
    pm:dispatched
    on Nov 15, 2026
  13. added a commit that references this issue on Nov 16, 2026
    24972aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uipriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions