You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console: the bulk result dialog for an aggregate (all-or-nothing) action prints error.message against every selected row, reports "Succeeded 0 / N" after a partial move, and does not refresh the grid #34173
Found by the HotCRM 6.4.0 end-to-end customer test (round 2, hotcrm#2511), measured on @objectstack 18.5.0 (dev boot, console).
What a customer sees. A rep selects two opportunities on the list and runs the script action Update Stage → Needs Analysis from the selection bar. One of the two deals is Closed Won. The handler moves the open deal and rejects once at the end, naming the deal that did not move (the all-or-nothing aggregate contract, objectui#3139). The console's bulk result dialog then:
prints the rejection's error.message against every selected row, including the one that moved, instead of userMessage;
reads "Succeeded 0 / 2", although one row moved and keeps its new stage;
does not refresh the grid, so the row that moved still shows its old stage until a manual reload.
Why it matters. An aggregate handler has no way to say which rows succeeded. There is no per-row result protocol for aggregate actions, so the dialog treats a rejection as N row failures. A handler that does partial work (any non-transactional loop over the selection) is always reported as 0 / N.
Ask (platform decides the shape).
Show userMessage (fall back to message) once for an aggregate rejection, not repeated per row.
Refresh the grid after an aggregate action settles, whether it resolved or rejected.
Consider a per-row result shape an aggregate handler can return or reject with, for example { succeeded: [ids], failed: [{ id, message }] }, so the dialog can count truthfully.
Related, separate. On 18.5.0 a script action body is given no locale: ctx.session carries userId, organizationId and positions only. A handler can therefore localize only the refusal sentences it catches (whose userMessage the engine already localizes), not its own summary lines. This is the same class as #34062 (flows cannot read the effective locale).
Re-check. Use any aggregate script action that rejects after moving some rows. HotCRM mass_update_stage (hotcrm#2517) on two deals, one of them Closed Won, shows all three symptoms.
Responsibility: platform console (bulk/selection-bar result dialog) and the aggregate action contract. Not fixable in app metadata.
Triage: first touch → domain:ui · p2 (pre-graded) · 2026-11-15T23:47Z
⛔ Not a claim.
Found by the HotCRM 6.4.0 end-to-end customer test on 18.5.0. For an aggregate (all-or-nothing) bulk action, the result dialog prints one error message against every selected row, says "Succeeded 0 / N" after a partial move, and does not refresh the grid. The rep cannot tell what happened to which record, so p2 stands. The console bulk-result dialog is ui work; if the action's answer lacks per-row outcomes, the seat splits a server half.
Claim: PM loop round 10 · 2026-11-16T00:11Z
Session: session_01ADHkmRD9ZdCE9G3z9FgtCj (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
Account: os-steve
Branch: claude/project-thread-3dzbh5
Worktree: objectstack-issue-34173
Domain: domain:ui
Seat: domain:ui#1
File surface: ui/packages/plugin-grid/src/components/BulkActionDialog.tsx, ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts; the ui/packages/core/src/actions/** module that carries the aggregate result to the dialog, only if the dialog cannot tell aggregate from per-row today; the i18n pack the dialog reads; their tests; root .changeset/. packages/** read-only.
Container & model: M, mode:thread, model: default tier, effort: high
Clause-②: no (the dialog reports an aggregate outcome truthfully; no surface added); the dev reports if a new export is needed
Metadata-protocol: none
Responsibility: for an aggregate (all-or-nothing) bulk action that rejects, the result dialog repeats error.message on every row, reads "Succeeded 0 / N" after a partial move, and does not refresh the grid | measured by the HotCRM 6.4.0 customer test on 18.5.0 (hotcrm#2511) | every user who runs an aggregate bulk action from the selection bar
Thread-read: none
Premise: measured first on main; the per-row (non-aggregate) dispatch keeps its display unchanged
Serial constraints cleared: no other pm:dispatcheddomain:ui card and no open PR touches these files (live read 2026-11-16T00:11Z)
Scope: the card's asks 1 and 2 (show userMessage, falling back to message, once for an aggregate rejection; refresh after an aggregate settles), plus no false per-row count; pins + CONTROL + ablation. Ask 3 (a per-row result shape for aggregate handlers) is an action-contract change: out of scope, reported, filed by the seat if still needed. Fixes #34173. Order: /mnt/project-files/ui-seat1/standard-order.md + 34173-delta.md. Priority p2 (triage first touch, 23:47Z).
{
"issue": 34173,
"status": "done",
"branch": "claude/project-thread-3dzbh5",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34213",
"session": "session_01ADHkmRD9ZdCE9G3z9FgtCj",
"premise_still_valid": true,
"summary": "All three symptoms reproduced on main 75ab1178 through the real script dispatch (createServerActionHandler): the dialog printed error.message against both rows, read 'Succeeded 0 / 2', and Done re-read the grid 0 times after a rejection (1 after a resolve). A rejected execution:'aggregate' run is now ONE outcome for the selection: useBulkExecutor sets BulkResult.aggregateRejection { message: declaredUserMessage(e) ?? e.message } with no per-row errors; BulkActionDialog shows grid.bulk.aggregateNotCompleted plus that message once, with no count, list, CSV or Retry; ObjectGrid bumps refreshKey on close after a rejection (the per-row path's own refresh; a resolve already refreshed once) and keeps the selection. userMessage reaches the grid because interpretActionResponse now reads the refusal's error.userMessage and createServerActionHandler relays it on ActionResult.userMessage; error is unchanged, so the per-record dispatch displays exactly as before (CONTROL pin).",
"tests": "Pins: objectBulkActionDispatch.test.tsx new describe (5: userMessage once / no per-row list / no 'Succeeded' or '0 / 2'; message fallback; find exactly once after Done on reject; exactly once on resolve; CONTROL per-record one failing row lists bulk-error-row-r2 and 'Succeeded 1 / 2'); useBulkExecutor.test.ts (+2 new, 2 forced edits); serverActionHandler.test.ts (+3). Forced edits named in the PR body (3 tests that pinned the per-row attribution). Ablation on 7cf6c654 via scripts/ablation-replace.mjs, 5 legs, each anchor 1 -> 0, each red (userMessage pref: 2 red; reject refresh: 1 red; per-row guard: 1 red; relay: 2 red; aggregate branch: 11 red), trap printed RESTORED-CLEAN; ui tests resolve @object-ui/* from src, no dist leg. Head 2ee839f6 (main 571cf908 merged): type-check types/core/i18n/plugin-grid exit 0 each; vitest packages/plugin-grid/ packages/types/ packages/i18n/ packages/core/src/actions/ -> Test Files 830 passed (830), Tests 15603 passed | 13 skipped, lock VERDICT command-exit 0; wider readers narrowed by grep (12 files in components/app-shell/console) -> 12 passed, 466 tests passed.",
"gates": "node scripts/pm/dispatch-gates.mjs --commands on 2ee839f6: 72 derived, each run, each ':: exit 0'; --ran reconciliation exit 0: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN. ui check:i18n-keys / check:i18n-drift / check:i18n-dead-keys exit 0. PR check-runs: in_progress at report time (not waited on).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "4 — all reads: mcp__github__issue_read x3 (get, get_comments x2), mcp__github__pull_request_read x1 (get); no write tool",
"api_writes": "2 — fleet relay pr_create (PR #34213, draft, assignees os-steve; read-back 11422 bytes sent == stored); post-stamped os-dev-report comment on #34173",
"files_changed": [
"ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts",
"ui/packages/plugin-grid/src/components/BulkActionDialog.tsx",
"ui/packages/plugin-grid/src/ObjectGrid.tsx",
"ui/packages/core/src/actions/actionResponse.ts",
"ui/packages/core/src/actions/serverActionHandler.ts",
"ui/packages/types/src/ui-action.ts",
"ui/packages/i18n/src/locales/{en,zh-Hans,zh-Hant(generated),de,es,fr,ja,ko,pt-BR,ru,ar}.ts",
"ui/packages/plugin-grid/src/__tests__/objectBulkActionDispatch.test.tsx",
"ui/packages/plugin-grid/src/__tests__/useBulkExecutor.test.ts",
"ui/packages/core/src/actions/__tests__/serverActionHandler.test.ts",
"content/docs/ui/views.mdx",
".changeset/34173-aggregate-bulk-rejection-one-outcome.md"
],
"line_budget": "PR additions 358 + deletions 71 = 429 changed lines over 22 files (under the 3000 line class)",
"deviations": [
"File surface beyond the claim: ObjectGrid.tsx (dialog mount; the per-row refresh path the order says to reuse lives in its handleBulkDialogClose; the aggregate dispatcher had to carry userMessage), ui/packages/types/src/ui-action.ts (ActionResult.userMessage carrier), content/docs/ui/views.mdx (ui AGENTS commandment 2), and nine locale packs beyond en/zh-Hans: all-locales-key-parity.test.ts requires every pack to define every en key, so the order's 'let other locales fall back' is not available.",
"Public face added: optional members ActionResult.userMessage (@object-ui/types) and ActionResponseOutcome.userMessage (@object-ui/core); no new exported name (refusalUserMessage stays off core's public entry). Claim lines copied as written (Clause-② spelled 'no — reason'); see open_questions.",
"No reviewer requested on the PR: pr_create assigns only; the review hand-off is the seat's, and MCP writes are barred.",
"Ablation ran on 7cf6c654 (before the main merge); the merge touched none of the PR's files."
],
"open_questions": [
{
"question": "Does adding the optional member userMessage to the published ActionResult (@object-ui/types) and ActionResponseOutcome (@object-ui/core) make this Clause-② yes (widening) rather than the claim's no?",
"options": [
"A keep 'no': the members relay a field the wire already carries (ApiErrorSchema.userMessage), exactly as the existing fieldErrors member does; no authoring surface and no new export name",
"B rewrite to 'yes (widening)' in the PR body and changeset: the criterion asks whether the public face grows, and two published types gain a member"
],
"recommendation": "B, because the execution-duties criterion reads 'enlarges the public surface' and a new member on a published interface does that; the seat owns the call and the rewrite"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: selection bar per-record dispatch (bulkActions: [NAME]) of a script action whose body throws userMessage — the CONTROL pin measures row r2 listing the platform message; the single-record action toast reads ActionResult.error the same way · evidence: ObjectGrid runBulkActionRecord throws Error(res.error) and ActionRunner's post-execution toast shows result.error, while ActionResult.userMessage is now carried · dedupe words: action refusal userMessage toast, per-record bulk userMessage, script action userMessage display",
"carrier: seat (spec) · card ask 3, a per-row result shape an aggregate handler can resolve or reject with: still needed after 1-3 for a truthful per-row count; the dialog no longer states a false count but cannot say which rows moved",
"carrier: #34062 · script action body gets no locale in ctx.session (the card's 'Related, separate' note) — noted, not filed"
]
}
File surface adds: ui/packages/plugin-grid/src/ObjectGrid.tsx (the refresh path the order said to reuse, and where the dialog is mounted); ui/packages/types/src/ui-action.ts (the ActionResult.userMessage carrier); content/docs/ui/views.mdx; and the nine other locale packs, because all-locales-key-parity requires every en key in every pack. All are accepted. No open PR touches them.
Clause-②: yes (widening), replacing the claim's "no". Two published interfaces each gain one optional member: ActionResult.userMessage (@object-ui/types) and ActionResponseOutcome.userMessage (@object-ui/core). Nothing is removed or renamed. It is a non-protocol widening, so the changeset stays patch. No published schema and no governed path (0 of 22), so this is the declaration face, and the seat writes the TIER_DEFAULT record.
PR #34213 MERGED at 2026-11-16T04:24Z as 31eb2aeda2 through the merge queue (Fixes #34173). When an aggregate bulk action rejects, the dialog now shows one outcome for the selection. It shows the handler's userMessage once, otherwise its message. It says only that some records may already have been changed, and it shows no per-row count. The list re-reads its rows when the dialog closes at the result step. Records: review#2 6906205005 (PASS) and the seat's delta record 6906899345 (PASS).
Follow-ups: #34215 (the single-record toast and the per-record outcome read userMessage) and #34269 (the per-row BulkActionResult reader, which also waits on #34267) go to ui seat 2. #34216's spec half is PR #34267.
State change: pm:dispatched and the assignee are taken off this closed card.
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:ui· p2 (pre-graded) · 2026-11-15T23:47Z⛔ Not a claim.
Found by the HotCRM 6.4.0 end-to-end customer test on 18.5.0. For an aggregate (all-or-nothing) bulk action, the result dialog prints one error message against every selected row, says "Succeeded 0 / N" after a partial move, and does not refresh the grid. The rep cannot tell what happened to which record, so p2 stands. The console bulk-result dialog is ui work; if the action's answer lacks per-row outcomes, the seat splits a server half.
objectstack-fleet commentedon Nov 16, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
Claim: PM loop round 10 · 2026-11-16T00:11Z
Session:
session_01ADHkmRD9ZdCE9G3z9FgtCj(card thread, dev) · seatsession_01ADHkmT2NE3iyG1o6TDg3sfAccount:
os-steveBranch:
claude/project-thread-3dzbh5Worktree:
objectstack-issue-34173Domain:
domain:uiSeat:
domain:ui#1File surface:
ui/packages/plugin-grid/src/components/BulkActionDialog.tsx,ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts; theui/packages/core/src/actions/**module that carries the aggregate result to the dialog, only if the dialog cannot tell aggregate from per-row today; the i18n pack the dialog reads; their tests; root.changeset/.packages/**read-only.Container & model: M,
mode:thread,model: default tier,effort: highClause-②: no (the dialog reports an aggregate outcome truthfully; no surface added); the dev reports if a new export is needed
Metadata-protocol: none
Responsibility: for an aggregate (all-or-nothing) bulk action that rejects, the result dialog repeats
error.messageon every row, reads "Succeeded 0 / N" after a partial move, and does not refresh the grid | measured by the HotCRM 6.4.0 customer test on 18.5.0 (hotcrm#2511) | every user who runs an aggregate bulk action from the selection barThread-read: none
Premise: measured first on main; the per-row (non-aggregate) dispatch keeps its display unchanged
Serial constraints cleared: no other
pm:dispatcheddomain:uicard and no open PR touches these files (live read 2026-11-16T00:11Z)Scope: the card's asks 1 and 2 (show
userMessage, falling back tomessage, once for an aggregate rejection; refresh after an aggregate settles), plus no false per-row count; pins + CONTROL + ablation. Ask 3 (a per-row result shape for aggregate handlers) is an action-contract change: out of scope, reported, filed by the seat if still needed.Fixes #34173. Order:/mnt/project-files/ui-seat1/standard-order.md+34173-delta.md. Priority p2 (triage first touch, 23:47Z).objectstack-fleet commentedon Nov 16, 2026
domain:ui#1 · os-steve · session_01ADHkmRD9ZdCE9G3z9FgtCj
os-dev-report
{ "issue": 34173, "status": "done", "branch": "claude/project-thread-3dzbh5", "pr": "https://github.com/objectstack-ai/objectstack/pull/34213", "session": "session_01ADHkmRD9ZdCE9G3z9FgtCj", "premise_still_valid": true, "summary": "All three symptoms reproduced on main 75ab1178 through the real script dispatch (createServerActionHandler): the dialog printed error.message against both rows, read 'Succeeded 0 / 2', and Done re-read the grid 0 times after a rejection (1 after a resolve). A rejected execution:'aggregate' run is now ONE outcome for the selection: useBulkExecutor sets BulkResult.aggregateRejection { message: declaredUserMessage(e) ?? e.message } with no per-row errors; BulkActionDialog shows grid.bulk.aggregateNotCompleted plus that message once, with no count, list, CSV or Retry; ObjectGrid bumps refreshKey on close after a rejection (the per-row path's own refresh; a resolve already refreshed once) and keeps the selection. userMessage reaches the grid because interpretActionResponse now reads the refusal's error.userMessage and createServerActionHandler relays it on ActionResult.userMessage; error is unchanged, so the per-record dispatch displays exactly as before (CONTROL pin).", "tests": "Pins: objectBulkActionDispatch.test.tsx new describe (5: userMessage once / no per-row list / no 'Succeeded' or '0 / 2'; message fallback; find exactly once after Done on reject; exactly once on resolve; CONTROL per-record one failing row lists bulk-error-row-r2 and 'Succeeded 1 / 2'); useBulkExecutor.test.ts (+2 new, 2 forced edits); serverActionHandler.test.ts (+3). Forced edits named in the PR body (3 tests that pinned the per-row attribution). Ablation on 7cf6c654 via scripts/ablation-replace.mjs, 5 legs, each anchor 1 -> 0, each red (userMessage pref: 2 red; reject refresh: 1 red; per-row guard: 1 red; relay: 2 red; aggregate branch: 11 red), trap printed RESTORED-CLEAN; ui tests resolve @object-ui/* from src, no dist leg. Head 2ee839f6 (main 571cf908 merged): type-check types/core/i18n/plugin-grid exit 0 each; vitest packages/plugin-grid/ packages/types/ packages/i18n/ packages/core/src/actions/ -> Test Files 830 passed (830), Tests 15603 passed | 13 skipped, lock VERDICT command-exit 0; wider readers narrowed by grep (12 files in components/app-shell/console) -> 12 passed, 466 tests passed.", "gates": "node scripts/pm/dispatch-gates.mjs --commands on 2ee839f6: 72 derived, each run, each ':: exit 0'; --ran reconciliation exit 0: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN. ui check:i18n-keys / check:i18n-drift / check:i18n-dead-keys exit 0. PR check-runs: in_progress at report time (not waited on).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "4 — all reads: mcp__github__issue_read x3 (get, get_comments x2), mcp__github__pull_request_read x1 (get); no write tool", "api_writes": "2 — fleet relay pr_create (PR #34213, draft, assignees os-steve; read-back 11422 bytes sent == stored); post-stamped os-dev-report comment on #34173", "files_changed": [ "ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts", "ui/packages/plugin-grid/src/components/BulkActionDialog.tsx", "ui/packages/plugin-grid/src/ObjectGrid.tsx", "ui/packages/core/src/actions/actionResponse.ts", "ui/packages/core/src/actions/serverActionHandler.ts", "ui/packages/types/src/ui-action.ts", "ui/packages/i18n/src/locales/{en,zh-Hans,zh-Hant(generated),de,es,fr,ja,ko,pt-BR,ru,ar}.ts", "ui/packages/plugin-grid/src/__tests__/objectBulkActionDispatch.test.tsx", "ui/packages/plugin-grid/src/__tests__/useBulkExecutor.test.ts", "ui/packages/core/src/actions/__tests__/serverActionHandler.test.ts", "content/docs/ui/views.mdx", ".changeset/34173-aggregate-bulk-rejection-one-outcome.md" ], "line_budget": "PR additions 358 + deletions 71 = 429 changed lines over 22 files (under the 3000 line class)", "deviations": [ "File surface beyond the claim: ObjectGrid.tsx (dialog mount; the per-row refresh path the order says to reuse lives in its handleBulkDialogClose; the aggregate dispatcher had to carry userMessage), ui/packages/types/src/ui-action.ts (ActionResult.userMessage carrier), content/docs/ui/views.mdx (ui AGENTS commandment 2), and nine locale packs beyond en/zh-Hans: all-locales-key-parity.test.ts requires every pack to define every en key, so the order's 'let other locales fall back' is not available.", "Public face added: optional members ActionResult.userMessage (@object-ui/types) and ActionResponseOutcome.userMessage (@object-ui/core); no new exported name (refusalUserMessage stays off core's public entry). Claim lines copied as written (Clause-② spelled 'no — reason'); see open_questions.", "No reviewer requested on the PR: pr_create assigns only; the review hand-off is the seat's, and MCP writes are barred.", "Ablation ran on 7cf6c654 (before the main merge); the merge touched none of the PR's files." ], "open_questions": [ { "question": "Does adding the optional member userMessage to the published ActionResult (@object-ui/types) and ActionResponseOutcome (@object-ui/core) make this Clause-② yes (widening) rather than the claim's no?", "options": [ "A keep 'no': the members relay a field the wire already carries (ApiErrorSchema.userMessage), exactly as the existing fieldErrors member does; no authoring surface and no new export name", "B rewrite to 'yes (widening)' in the PR body and changeset: the criterion asks whether the public face grows, and two published types gain a member" ], "recommendation": "B, because the execution-duties criterion reads 'enlarges the public surface' and a new member on a published interface does that; the seat owns the call and the rewrite" } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: selection bar per-record dispatch (bulkActions: [NAME]) of a script action whose body throws userMessage — the CONTROL pin measures row r2 listing the platform message; the single-record action toast reads ActionResult.error the same way · evidence: ObjectGrid runBulkActionRecord throws Error(res.error) and ActionRunner's post-execution toast shows result.error, while ActionResult.userMessage is now carried · dedupe words: action refusal userMessage toast, per-record bulk userMessage, script action userMessage display", "carrier: seat (spec) · card ask 3, a per-row result shape an aggregate handler can resolve or reject with: still needed after 1-3 for a truthful per-row count; the dialog no longer states a false count but cannot say which rows moved", "carrier: #34062 · script action body gets no locale in ctx.session (the card's 'Related, separate' note) — noted, not filed" ] }Stamped 2026-11-16T00:56Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
Claim amendment: 2026-11-16T01:00Z · PR #34213, branch
claude/project-thread-3dzbh5unchangedSeat rulings on os-dev-report 6904367386:
ui/packages/plugin-grid/src/ObjectGrid.tsx(the refresh path the order said to reuse, and where the dialog is mounted);ui/packages/types/src/ui-action.ts(theActionResult.userMessagecarrier);content/docs/ui/views.mdx; and the nine other locale packs, becauseall-locales-key-parityrequires every en key in every pack. All are accepted. No open PR touches them.ActionResult.userMessage(@object-ui/types) andActionResponseOutcome.userMessage(@object-ui/core). Nothing is removed or renamed. It is a non-protocol widening, so the changeset stayspatch. No published schema and no governed path (0 of 22), so this is the declaration face, and the seat writes the TIER_DEFAULT record.userMessage) and spec: an aggregate bulk action handler has no per-row result shape, so a rejection after a partial move cannot say which rows moved #34216 (card ask 3, a per-row result shape for aggregate handlers, spec).objectstack-fleet commentedon Nov 16, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
Landed
PR #34213 MERGED at 2026-11-16T04:24Z as
31eb2aeda2through the merge queue (Fixes #34173). When an aggregate bulk action rejects, the dialog now shows one outcome for the selection. It shows the handler'suserMessageonce, otherwise itsmessage. It says only that some records may already have been changed, and it shows no per-row count. The list re-reads its rows when the dialog closes at the result step. Records: review#2 6906205005 (PASS) and the seat's delta record 6906899345 (PASS).Follow-ups: #34215 (the single-record toast and the per-record outcome read
userMessage) and #34269 (the per-rowBulkActionResultreader, which also waits on #34267) go to ui seat 2. #34216's spec half is PR #34267.State change:
pm:dispatchedand the assignee are taken off this closed card.