Repository navigation
Description
What happens
On the last screen of a multi-screen screen flow (a result screen that carries record_link fields), clicking one of the record links navigates to that record, but the flow dialog does not close. It stays open on top of the new page and re-renders the first screen of the flow, with its inputs and a live "Next" button. Clicking "Next" there posts the first screen's inputs to the already-advanced run and is refused with 400, shown as a raw English toast plus an inline error.
A single-screen flow closes correctly. The defect needs at least two screens, the last one holding record links.
Reproduce
Platform @objectstack/* 18.6.0, console at /_console, UI locale zh-CN, HotCRM 6.6.0 metadata (any app with a two-screen flow whose last screen holds record_link fields reproduces it).
- Open a lead, run Convert Lead (screen flow
lead_conversion): fill the first screen, click Next. The run completes and the result screen shows three links: account, contact, opportunity. - Click the account link.
- The route changes to the account record page, and the dialog is still open, now showing the first screen again (the "create opportunity" inputs).
- Click "Next".
Same result on the second flow tried, quote_generation (Opportunity → Generate Quote; first screen quoteName / expirationDays / discount, last screen quoteLink).
Evidence
400 POST /api/v1/automation/lead_conversion/runs/run_08e7b005-4c69-4b8b-8116-d239b117be7b/resume
Invalid screen input: Unknown screen field "createOpportunity" — not declared on this screen; … declared fields: 'accountLink', 'contactLink', 'opportunityLink'
400 POST /api/v1/automation/quote_generation/runs/run_afc6330e-d6db-4079-88ce-e5807eeeb0b5/resume
Invalid screen input: Unknown screen field "quoteName" …; "expirationDays" …; "discount" — not declared on this screen — declared fields: 'quoteLink'
The server is right to refuse: the run is on its last screen and the dialog is submitting the first one. The message reaches the user verbatim, in English, in a zh-CN console.
Expected
Following a record link on a result screen ends the dialog (the run has nothing left to ask), and the user lands on the record with nothing on top of it. The dialog never falls back to an earlier screen of a run that has moved past it.
Why p1
The result screen exists so the user can open what the flow created (#25872, #26304). Doing exactly that leaves a stale wizard over the record, and its only forward button answers with a raw validation error, so the user cannot tell whether the conversion happened. It did; the records are created. The way out is the dialog's close button.
Related
- A screen-flow result screen (only
record_linkfields) still shows Cancel, and closing it neither completes the run nor refreshes the record — the converted lead still reads Qualified #26902 (closed): the result screen showed Cancel and closing it did not complete the run. Different symptom, same screen. - 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): the Flow Runs page kept "Waiting for input" after a screen run completed.
Found in a browser walkthrough of HotCRM on the pinned platform.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:workflow·domain:ui·priority:p1· Bug ·pm:queue· size S.area:automationis not a North Star area. The p1 grade was set by a person, and it stands.Rationale: a multi-screen screen flow breaks after a record link on its result screen is followed. The run is refused with a raw 400, so this is broken, not merely hard to use, and the card sits in the flow's area. It may share a seam with #36831 (a two-step screen flow resubmits step one's input, claimed by repo:objectstack#3). The claiming seat should read that card first. Routed to repo:objectstack#4, which takes p1 outside
area:cloudandarea:uxby the maintainer's routing.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Claim: PM loop round 3 · 2026-11-24T09:44Z
Session:
session_01QSeKYpEsWWE9Y5YtSsDgqZAccount:
os-justinBranch:
claude/issue-36849-result-link-closes-flow-dialogWorktree:
objectstack-issue-36849Domain:
domain:uiSeat:
repo:objectstack#4File surface:
ui/packages/app-shell/src/views/FlowRunner.tsxand the screen-flow dialog host that opens it, the result-screenrecord_linkrenderer, their tests,ui/**/locales/*.tsonly if a user-facing string is added,.changeset/36849-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate … the tier stays below the ceiling",effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
objectstack Console code — following a result screen's record link navigates but leaves the flow dialog open, re-rendered on the first screen (card body; 400 bodies captured) | none: #36864 (merged 0819cab13c, Fixes #36831) recovers a resume whose answer was lost, a different path | every multi-screen screen flow whose last screen holds record_link fields (HotCRM lead_conversion, quote_generation)Thread-read: 7123030949
Premise: holds (card body and triage 7123030949; #36831's fix covers a lost resume answer, not a navigation from the result screen — the dev reproduces on main first and reports
premise_still_valid: falseif #36864 already closes it)Serial constraints cleared:
#36831 closed by PR #36864 (merged, repo:objectstack#3) — the dev builds on it, reads its FlowRunner change first and keeps its recovery path intact; no open claim on FlowRunner.tsx read at claimobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
os-dev-report
{ "issue": 36849, "status": "done", "branch": "claude/issue-36849-result-link-closes-flow-dialog", "pr": "https://github.com/objectstack-ai/objectstack/pull/36947", "session": "session_01QSeKYpEsWWE9Y5YtSsDgqZ", "premise_still_valid": true, "summary": "Premise holds on origin/main 4f19091997f, which carries #36864 (0819cab13c is an ancestor, exit 0): the red test shows the dialog back on 'Quote details' with Quote name and Next after the link. Cause: RecordDetailView holds only the run's launch state, and its loading-reset effect on objectName/record id draws a skeleton through an early return, so FlowRunner unmounts on the link's navigation and remounts from step one; #36864's recovery covers a lost resume answer, not this. Fix at the one producer, the record link: ScreenView takes an optional onRecordLinkFollow fired on an in-place router click (not on modifier/new-tab clicks), and FlowRunner's followRecordLink calls onClose first, then on a result screen completes the run exactly as Done does (empty resume, toast, notifyDataChanged('*'), onComplete); on any other screen it closes as Cancel and resumes nothing. #36864's recovery path untouched; single-screen result screens close and complete as before. Card assignee not written by this run.", "tests": "head 8f7616989e4. New top-level describe objectstack#36849 in FlowRunner.recordLink-25872.test.tsx (3 cases, RecordPageHost = reduced record page with the same loading flash on route change). RED (FlowRunner.tsx + ScreenView.tsx restored tree-only from test-only commit 42b0b768bd4; FlowRunner hash 2c374ce54e8 = that blob, followRecordLink count 0): 'x lands on the record with nothing on top, never on step one again', 'x a link on a step that still takes input closes the dialog as Cancel does', Tests 2 failed | 7 passed (9), AssertionError expected dialog to be null, DOM dump 'Quote details' / 'Quote name' / Next; restored via git checkout HEAD, hash 8fa5a6ed056 = HEAD blob, git diff HEAD 0 lines. GREEN: verbose run recordLink-25872 + resumeResult + resultScreen-26902: Tests 36 passed (36), all three 36849 cases ok. Wider: vitest run packages/app-shell/src/views/__tests__/FlowRunner + ScreenView + metadata-admin/previews + FlowRunsPage.test + ActionParamDialog.dialogReach-12080: Test Files 188 passed (188), Tests 2007 passed (2007). pnpm --filter @object-ui/app-shell run type-check: VERDICT command-exit 0 (tsconfig.json + tsconfig.test.json). pnpm --dir ui exec vitest run scripts/: 172 passed | 2 skipped files, 5126 passed | 2 skipped tests. No ablation beyond the red/green pair (tests import source, no build between).", "gates": "local, head 8f7616989e4: dispatch-gates --commands derived 38 families; all 38 ran, each exit 0 captured before any pipe (incl. check:type-check-debt, check:type-check-coverage, check:nul-bytes, check:published-files, check:test-source-alias, check:cross-package-test-inputs, check:sdui-manifest, ui vitest scripts/). --ran: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. ui check:new-line-citations: 'VERDICT new-cross-file-line-citations: 0 new citation(s)' exit 0. CI check-runs at report time on 8f7616989e4: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace): in_progress; opt-in/queue-only jobs skipped. NOT MEASURED locally: Test UI / Build & E2E UI / Live E2E UI / Lint UI / Type Check UI full lanes (CI-owned).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay repository_dispatch for pr_create (POST /repos/objectstack-ai/objectstack/dispatches → PR #36947, draft, assignee os-justin, read-back identical 9819 bytes); post-stamped report comment (POST /repos/objectstack-ai/objectstack/issues/36849/comments). Plus git push of the branch (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — read from code, not reproduced: RecordDetailView still unmounts FlowRunner on any route change (loading-reset early return) and rebuilds it from the launch state, so a navigation that bypasses the dialog (browser Back/Forward while a wizard is on step 2 over a record page) would show step one again; fixing it needs the hosts to keep the run's current step, outside this claim's file surface. In PR Acceptance notes. Dedupe words: FlowRunner remount launch state, RecordDetailView isLoading early return, screen flow browser back step one" ], "deviations": "origin/main moved 5 commits after the base 4f19091997f; none touch the three edited files, so no merge was taken before opening the PR (the full-suite-after-pull step of AGENTS multi-agent §10 was scoped to the touched suites above). Commits carry the model-free trailer pair per AGENTS.md, not the harness's model-named Co-Authored-By." }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Close-out · 2026-11-24T11:26Z · PR #36947 merged, closing this card by
Fixes #36849.Delivered: following a record link on a multi-screen screen flow's result screen now closes the flow dialog before the page changes and completes the run as Done does, so the user lands on the record with nothing on top and no stale first screen; on any other screen the link closes the dialog as Cancel does; a new-tab click leaves the dialog alone. The deeper cause the dev found (the record page rebuilds the dialog from the run's launch state on any route change — browser Back/Forward still shows step one) is filed as #36951.
pm:dispatchedstripped in this stroke.fix(console): following a result screen's record link closes the flow…