Skip to content

Screen flow: a required text field holding only spaces passes the client check, and the server refusal reaches the user as a raw English developer sentence #37526

Description

@objectstack-fleet

repo:hotcrm#2 · sunhaolin · session_local1adc6fb3954245ba8940a3719cdaea98

Filing gate: ① product defect with a reproduction. Source: fleet (found in a maintainer-ordered local UI test pass of the HotCRM app on 2026-11-26; filed through the pm-dispatch relay on the maintainer's instruction).
Grading: area:ux · Bug · p2 (triage grades) · severity: Impeded · reach: every screen flow with a required text input · evidence: measured on the released 18.6.0 packages (2026-11-18), zh-CN console; not re-measured on main

维护者速读

  • 做什么:屏幕流的必填文本框只填空格时,应在界面上按必填拦住,并用界面语言提示。
  • 谁受益:所有通过屏幕流填表的业务用户(关闭工单、升级工单等)。
  • 不做会怎样:中文界面弹出一整句英文开发者报错,还带着内部字段名清单,用户看不懂该改哪里。
  • 需要你做的:无,分诊定级即可。

What

A required text field on a flow screen is judged differently by the two sides. The client accepts a value made only of spaces; the server trims it and refuses the submission. The refusal is then shown to the user verbatim:

Invalid screen input: Screen field "resolution" is required — declared fields: 'resolution', 'resolved_by_article'

The sentence is English in a zh-CN console and lists machine field names, which is developer text, not a field message.

Reproduction

  1. In an app with a screen flow that has a required text input (HotCRM: Close Case, field resolution; the same on Escalate Case, field reason), open the screen.
  2. Type three spaces into the required field and submit.
  3. Result: no field-level message; an error surface carrying the sentence above.

Where

  • packages/services/service-automation/src/engine.ts:9625 builds Invalid screen input: SUMMARY — declared fields: ….
  • packages/runtime/src/domains/automation.ts:3624 maps INVALID_SCREEN_INPUT to 400 with the fallback "Invalid screen input".
  • The documented contract is content/docs/automation/flows.mdx:1479-1492.
  • The client-side required check of the flow screen renderer under ui/ (not located; the reproduction stands without it).

Acceptance

  • A required text input holding only whitespace is refused by the screen itself, with the same field-level required message an empty field gets, in the UI locale.
  • When the server still refuses a screen input, the user sees a localized message naming the field by its label; the "declared fields" list stays in logs and the API body, not on screen.
  • A test covers the whitespace-only value on both sides.

Dedupe (open and closed): Invalid screen input 6 hits. Nearest is closed #26882 ("empty required field makes Submit a silent no-op", closed 2026-10-28): this card is the whitespace-only variant plus the raw sentence, both still present after that fix. Open #36951 is a different mechanism. screen flow required whitespace 0 hits.
Batch-of: local UI deep test pass 2026-11-26, 14 cards (5 in hotcrm, 9 in objectstack).
Blocked-by: none.

Activity

  1. added
    bug
    priority:p2
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size S; rationale: in a screen flow, a required text field holding only spaces passes the client check, and the server refusal reaches the user as a raw English developer message. Found in the maintainer-ordered HotCRM UI test pass of 2026-11-26 on the released 18.6.0 packages. p2 as filed.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-26T16:30Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgU7eeqHgQrtv5CeJK6
    Account: os-sales
    Branch: claude/project-thread-axt9gn (restarted from main after PR #37623 merges)
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux-P
    File surface: ui/packages/app-shell/src/views/FlowRunner.tsx, ui/packages/app-shell/src/utils/flowResponse.ts, app-shell i18n packs; packages/services/service-automation/src/engine.ts, screen-input-contract.ts; packages/runtime/src/domains/automation.ts; packages/spec/src/contracts/automation-service.ts (and a small spec/api schema if ADR-0112 asks for one, with regenerated output); content/docs/automation/flows.mdx; tests; one changeset
    Container & model: M (triage said S; the read shows acceptance item 2, naming the field by its label in the UI language, needs a structured slot: the 400 carries only details: { code } today and the client would otherwise parse English text), mode:thread (area thread implements, no os-dev), model: default — no path-derived mandate, effort: high
    Clause-②: yes (widening): 400 INVALID_SCREEN_INPUT gains an optional details.issues (each field + code, no message carrying author keys); existing members unchanged
    Metadata-protocol: none
    Responsibility: objectstack platform (FlowRunner's required check does not trim; screen-input-contract isPresent trims; engine.ts composes the English sentence with the declared-field list, shown verbatim) | none | every business user submitting a screen flow with a required text input; reachable today (HotCRM Close Case / Escalate Case on 18.6.0)
    Thread-read: none
    Premise: holds (area thread's read on main 33a31dc: FlowRunner.tsx:848-849 checks undefined / '' / null only; screen-input-contract.ts:58-59 trims; engine.ts:9625 composes the sentence; FlowRunner.tsx:273-278 says the envelope has no structured field slot)
    Serial constraints cleared: no open PR touches FlowRunner or the screen-input contract (area thread's read); it re-runs overlap-check before its first push

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  6. removed
    pm:dispatched
    on Nov 26, 2026
  7. added a commit that references this issue on Dec 1, 2026
    712df42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions