Skip to content

console: a single-record action's error toast and a per-record bulk row show the platform message, not the handler's userMessage #34215

Closed

Description

@objectstack-fleet

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Filing gate: ③ an out-of-scope finding of the #34173 dev (os-dev-report 6904367386 on PR #34213, carrier: seat), class a. It was read in code, and the CONTROL pin of PR #34213 measures the per-record half.
Reader: domain:ui (ui/packages/core/src/actions/ActionRunner.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx). Grade suggestion: p2, the same reach class as #34173 but on the more common path. Every script or server action whose handler throws a userMessage reaches it.
Dedupe: is:issue is:open userMessage toast action, and script action userMessage display: none.
Blocked-by: #34173 (PR #34213 adds the carrier ActionResult.userMessage)

维护者速读

动作处理器抛出带 userMessage 的错误时(处理器写给用户、已按请求语言翻译的那句话),控制台的单条动作失败提示和批量逐条派发的失败行,仍然显示平台的整段 message,而不是 userMessage。#34173 已经让聚合批量动作改读 userMessage,并把它挂到 ActionResult.userMessage 上;这两处还没跟上。

Facts (read on PR #34213 head 2ee839f6)

Ask

  1. When a failed result carries userMessage, the single-record failure toast shows it. It falls back to error when userMessage is absent.
  2. The per-record bulk dispatch's failed row shows the row's userMessage the same way. The error CSV keeps the whole text, so nothing is lost for a support read.
  3. Pins: a toast with a userMessage refusal shows it; a row with one lists it; CONTROL: a refusal without userMessage keeps today's text on both. Flip PR fix(plugin-grid): report a rejected aggregate bulk action as one outcome and refresh the list #34213's per-record CONTROL as a declared forced edit. Ablate red.

⛔ Not a claim.

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-16T01:49Z

    ⛔ Not a claim.

    A single-record action's error toast and a per-record bulk row show the platform message, not the handler's userMessage. Users see an internal sentence where the author wrote a readable one. It is the sibling of #34173 (HotCRM), so p2.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 3 · 2026-11-16T04:31Z
    Session: session_01ADHkmSKHw9YYY8V6nVNVFk (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-pgje9l
    Worktree: objectstack-issue-34215
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/packages/core/src/actions/ActionRunner.ts (failure toast), ui/packages/plugin-grid/src/ObjectGrid.tsx (per-record bulk runner only), ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts and ui/packages/plugin-grid/src/components/BulkActionDialog.tsx only if the row/CSV split needs them, their tests (including the declared forced edit of the per-record CONTROL in objectBulkActionDispatch.test.tsx), root .changeset/; packages/** read-only (stop on breach; explain in the report)
    Container & model: cloud seat container, 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: dev reads, implements with precedence authored errorMessage > userMessage > error (seat ruling in the delta), pins and ablates; seat reviews, records and lands
    Thread-read: 6905091764
    Premise: holds
    Serial constraints cleared: PR #34213 merged as 31eb2ae (seat 1 holds nothing on the bulk files, confirmed 04:28Z); seat 2's #34208 adds one line to ObjectGrid.tsx in another hunk, merge origin/main before push

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    File surface amendment · 2026-11-16T04:33Z
    Adds two hand-written doc sentences, so the page follows the behaviour (ui/AGENTS.md, docs-driven):

    • content/docs/ui/actions.mdx: the successMessage / errorMessage bullet (failure toast: authored errorMessage, else the refusal's userMessage, else the error);
    • content/docs/ui/views.mdx: one per-record sentence beside the aggregate paragraph fix(plugin-grid): report a rejected aggregate bulk action as one outcome and refresh the list #34213 added (the failed row shows userMessage, the error CSV keeps the whole message).
      The per-record row text is built in ui/packages/core/src/actions/bulkFastPath.ts (runPerRow); that file stays out of surface. The dev reads declaredUserMessage in useBulkExecutor.ts and adds an optional BulkRowError.userMessage that BulkActionDialog.tsx shows, with the CSV keeping error (both already conditionally in surface). content/docs/releases/** stays read-only.
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34215,
      "status": "done",
      "branch": "claude/project-thread-pgje9l",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34313",
      "session": "session_01ADHkmSKHw9YYY8V6nVNVFk",
      "premise_still_valid": true,
      "summary": "ActionRunner's failure toast now reads authored errorMessage, then the refusal's ActionResult.userMessage (non-blank), then result.error (seat precedence ruling). The per-record bulk runner in ObjectGrid attaches userMessage to its rejection; useBulkExecutor reads declaredUserMessage off each custom-runner rejection into a new optional BulkRowError.userMessage; BulkActionDialog lists it on the row while the error CSV keeps the whole error. bulkFastPath.ts untouched. Docs: one sentence each in content/docs/ui/actions.mdx and views.mdx (surface amended by the seat).",
      "tests": "Head dcc5978a after full pnpm build (VERDICT 0): pnpm --dir ui exec vitest run packages/core/ packages/plugin-grid/ -> Test Files 521 passed (521), Tests 6882 passed | 27 skipped, VERDICT 0. type-check core + plugin-grid (tsc --noEmit + tsconfig.test.json) VERDICT 0. 7 new pins (5 toast in ActionRunner.test.ts, 2 per-record in objectBulkActionDispatch.test.tsx) green. Ablations via scripts/ablation-replace.mjs on e19178cd, each restored to HEAD blob with git diff HEAD empty: A1 toast read removed -> 2 red; A2 declared before authored -> authored pin red; A3 trim -> length -> blank pin red; A4 runner bare throw, A5 executor capture removed, A6 executor attach removed, A7 dialog row reads error -> row pin red; A8 CSV writes userMessage -> row pin red at the CSV assertion. ui tests resolve @object-ui/* from src: no dist leg.",
      "gates": "dispatch-gates --commands (head dcc5978a, 9 paths): 72 families, all run, each exit 0 (captured before any pipe); --ran: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN. Also ui check:new-line-citations exit 0 (0 new), check-nul-bytes exit 0. CI check-runs on PR #34313: in_progress at report time (not waited on).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — mcp__github__issue_read (get_comments #34215), mcp__github__pull_request_read (get #34313); no write tools",
      "api_writes": "2 — fleet relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34313/assignees os-steve, one stroke; read-back 8134 bytes sent == stored); post-stamped os-dev-report comment on #34215",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — a data-door update/delete per-row rejection carrying userMessage still shows its message (read scoped to the promoted custom runner); no producer measured. In PR Acceptance notes."
      ],
      "files_changed": [
        ".changeset/34215-failure-toast-row-user-message.md",
        "content/docs/ui/actions.mdx",
        "content/docs/ui/views.mdx",
        "ui/packages/core/src/actions/ActionRunner.ts",
        "ui/packages/core/src/actions/__tests__/ActionRunner.test.ts",
        "ui/packages/plugin-grid/src/ObjectGrid.tsx",
        "ui/packages/plugin-grid/src/__tests__/objectBulkActionDispatch.test.tsx",
        "ui/packages/plugin-grid/src/components/BulkActionDialog.tsx",
        "ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts"
      ],
      "line_budget": "217 changed lines (+208 / -9, 9 files) vs the 3000 human-merge threshold: under",
      "deviations": [
        "DECLARED forced test edit: #34213 CONTROL 'a per-record dispatch with one failing row still lists that row' flips PLATFORM_TEXT -> USER_TEXT on bulk-error-row-r2 (delta-named); new CONTROL added for a refusal without userMessage.",
        "Surface: content/docs/ui/actions.mdx and views.mdx added by the seat's amendment on the card (ui/AGENTS.md commandment #2); bulkFastPath.ts left untouched as agreed.",
        "Main merged (a00b4228, no overlap with these files) before the PR; #34227's ObjectGrid line not on main yet, no conflict."
      ]
    }

    Stamped 2026-11-16T05:27Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    席位核对 ACCEPT 已发在 PR #34313(head dcc5978),已转 ready 并开启自动合并 · 2026-11-16T05:47Z

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Landed · 2026-11-16T06:11Z

    reading value
    PR #34313 MERGED as 5a755791 on main (Fixes #34215)
    card closed

    State: pm:dispatched removed, assignee cleared.

  9. removed
    pm:dispatched
    on Nov 16, 2026
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

    bugdomain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions