Skip to content

控制台:一次拒绝带多条原因时,提示框逐行列出全部原因(接 #36877) #37403

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

Filing gate: ③ maintainer-ruled, term (6) of the ruling on #36877 (comment 7178348458; Bill, decision card 2026-11-26T00:01Z, option verbatim 「A 一次抛多条原因逐行翻译」), filed by the owning zone under the parent. Source: maintainer.
Grading: area:ux · Feature · p2 (with the parent) · reach: every action or hook refusal that lists several reasons, once #36877 ships · evidence: ruling text; premise 4 of the analysis 7178064820.

维护者速读

What

Ruling on #36877, term (6), verbatim: "Console: a ui follow-up card under this one renders a multi-line userMessage as a list in the alert box."

Acceptance

  • A refusal answer with several lines shows every line, in order, in one alert box, without a "More" toggle hiding them; a single-sentence refusal renders as today.
  • A pin for both cases.

Order

After the #36877 server PR merges (it defines the wire shape).

Blocked-by: #36877

Reader: zone o5-U (seat repo:objectstack#5).
Dedupe: open issues for "RefusalMessage" and "multi-line refusal" return none besides #36877.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · Feature · priority:p2 · pm:blocked · size S; rationale: term (6) of the #36877 ruling (「A 一次抛多条原因逐行翻译」). The console lists every reason of a multi-reason refusal line by line. It takes the parent's p2.

    Blocked-by: #36877 is open. On unlock it goes to seat 5 zone o5-U.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Zone o5-U · corrected after the seat's L2 record 7181908508 (N5)

    Note from the seat's contract-tier L2 on PR #37395 (#36877), finding S3, comment 7181155005: take each refusal's reason lines from details.refusals, not by splitting userMessage. The entry's closing line is NOT in details.refusals: it lives only on userMessage, as its last line, and on /data userMessage is cut at 500 characters, so a long refusal loses that closing line there. Render the details.refusals lines in order, then the closing line when userMessage still carries it.

    MCP's side of the same wire shape is carried by #37416 (area:ai, under #36877).

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Zone o5-U · duplicate of 7181225232 (posted twice by a retry); read that comment, which carries the corrected text.

  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked — #36877 closed when PR #37395 merged, so the wire shape for several refusal reasons is now on main. pm:blocked → pm:queue. Reader: zone o5-U (repo:objectstack#5).

    PR #37395 and PR #37420 merged at 2026-11-26T04:45Z.

  7. added
    pm:queue
    and removed
    pm:blocked
    on Nov 26, 2026
  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Claim: PM loop round 1 · zone o5-U (area:ux p1/p2; the maintainer, verbatim, 2026-11-25T23:27Z project thread: 「再开两个专区,接ai ux 的 p1 p2 任务」) · 2026-11-26T09:58Z · filed by this zone under #36877; triage unlock 7183658382 routed it to o5-U
    Session: session_01Utp6Ca6EBDpTBZk8v46Jjv
    Account: os-bill
    Area: o5-U
    Branch: claude/issue-37403-refusal-lines-list
    Worktree: objectstack-issue-37403
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/app-shell/src/components/RefusalMessage.tsx and its test RefusalMessage.test.tsx, the place the console reads a refusal's details into it (read first; name it), one new pin file named for this card, root .changeset/. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the console's refusal alert (objectstack, ui/packages/app-shell) | the multi-reason wire shape details.refusals: [{ reason, message }] plus the closing line on userMessage, from PR #37395 (#36877) | every user who meets a refusal that lists several reasons
    Thread-read: 7183658382
    Premise: holds — PR #37395 merged, so details.refusals is on origin/main dd1ffcc2; RefusalMessage.tsx still shows the first sentence with the rest behind "More"
    Serial constraints cleared: no open PR touches RefusalMessage.tsx at claim
    Pre-claim lane: domain:ui
    Pre-claim deps: Blocked-by: #36877 closed (PR #37395 merged)
    Prior rulings read: refusal,details.refusals → ruling on #36877 7178348458 (term 6, this card); seat L2 S3/N5 note 7181225232; thread: none; repo: objectstack-ai/objectstack

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv
    os-dev-report

    {
     "issue": 37403,
     "status": "done",
     "branch": "claude/issue-37403-refusal-lines-list",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37538",
     "head": "7556f528a1f8cd259a3b8047ad774312d6e7ab4c",
     "session": "session_01Utp6Ca6EBDpTBZk8v46Jjv",
     "premise_still_valid": true,
     "summary": "RefusalMessage takes a new optional prop, lines, holding the refusal's details.refusals. It renders one list: each reason in order, then the closing sentence, with no More toggle. The closing sentence comes from the text only when the text still starts with exactly the reasons joined by line breaks, so a text cut inside the reasons shows every reason and no closing line. The carrier was missing (A2): interpretActionResponse (ui/packages/core/src/actions/actionResponse.ts) dropped details, and ActionResult (ui/packages/types/src/ui-action.ts) had no member for it. The new refusalLines reads the list whole or not at all; createServerActionHandler relays it as ActionResult.refusals; ActionParamDialog passes it as lines. Without a list the component renders as before. The card assignee was not touched.",
     "readings": {
      "A1_wire_shape": "origin/main dd1ffcc2 (PR #37395, commit 51b67f1703): packages/types/src/thrown-http-error.ts declaredRefusalLines answers details.refusals as a non-empty list of { reason: string, message: string }, read by resolveThrownHttpError (/actions door, MCP run_action) and by the /data rider withDeclaredRefusalLines (packages/types/src/data-error-classification.ts). userMessage = the reason lines joined by a newline, then the entry's own message as the last line. /data bounds userMessage at CLIENT_MESSAGE_MAX 500 (slice to 499 chars plus an ellipsis); details.refusals is not bounded. Server pin (action-refusal-catalogue.test.ts): userMessage '费用 Taxi 12 已在报销单上。\\n费用 Hotel 7 已审批。\\n未提交任何费用。' with details.refusals [{reason:'on_report',message:'费用 Taxi 12 已在报销单上。'},{reason:'approved',message:'费用 Hotel 7 已审批。'}]",
      "A2_carrier": "details was dropped before RefusalMessage. interpretActionResponse kept only fields and userMessage; ActionResult had no member for the list; ActionParamDialog passed only refusalText(result) (result.error). The smallest carrier change touches four files: ui/packages/types/src/ui-action.ts (+ActionRefusalLine, +ActionResult.refusals, re-exported from ui/packages/types/src/index.ts), ui/packages/core/src/actions/actionResponse.ts (refusalLines, kept off the public core entry), ui/packages/core/src/actions/serverActionHandler.ts (relay) and ui/packages/app-shell/src/views/ActionParamDialog.tsx (lines prop). RefusalMessage is rendered for an action refusal only in the param dialog. The /data door (record save) does not reach it.",
      "A3_pins": "multi-line (every line, in order, closing last, one list, no More); single-sentence control; cut text (closing absent, both reasons shown); empty list control; dialog end-to-end; carrier reader plus malformed-list control; handler relay"
     },
     "acceptance": [
      "A refusal with several lines shows every line, in order, in one alert box, with no More: PASS. Pins: RefusalMessage.test.tsx describe '(objectstack#37403)' case 1, and ActionParamDialog.refusalKeepsInput-13161.test.tsx describe '(objectstack#37403)', which uses the action-param-refusal alert box.",
      "A single-sentence refusal renders as today: PASS. CONTROL cases in the same describe (no list: innerHTML equals the text; empty list: lead plus More as before), and the original objectui#13332 describe is unchanged and green.",
      "A pin for both cases: PASS. Ablation of the list branch made 3 cases fail and kept both controls green."
     ],
     "tests": "Head 7556f528a1 (after the origin/main merge), under the lock: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/types/ packages/core/ packages/app-shell/src/components/RefusalMessage packages/app-shell/src/views/ActionParamDialog packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime`: Test Files 687 passed (687), Tests 15780 passed | 27 skipped, TEST_EXIT=0. type-check for @object-ui/types, core and app-shell: TC_EXIT 0/0/0 (after the build of types and core, BUILD_EXIT=0). Pre-merge, the 4 touched files: Test Files 4 passed (4), Tests 70 passed, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs on RefusalMessage.tsx: anchor 'if (!lines || lines.length === 0) return null;' replaced by 'if (/* ABLATED_37403 */ true) return null;' (anchor x1 to x0, blob 10d87495 to 81dba40e). Result: 3 failed | 21 passed (multi-reason, cut-text and dialog cases). Restored: blob == HEAD 10d87495, git diff HEAD empty. The tests import from src, so no dist rebuild was needed.",
     "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands` derived 39 families, and 38 ran exit 0. check:type-check-debt was exit 3 on its first run (lock budget) and exit 0 on re-run ('0 raw tsc error(s) total'). `--ran`: 39 derived, 38 run, 0 NOT-MEASURED, 1 UNRUN. The UNRUN family is `pnpm --dir ui exec vitest run scripts/`: exit 124 locally, timed out behind a sibling's lock; CI Test UI carries it. overlap-check: VERDICT clean exit 0. CI on head 7556f528a1: all 58 check-runs completed, 45 success and 13 skipped, 0 failure. Required contexts: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success, Build Core=skipped (path filter), Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI=success (16/16 shards success), Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success. Also: Check Changeset=success, PR-body guards=success.",
     "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
     "line_budget": "11 files, +255 / -3 (code 4 source files + 1 type file + index; tests 4 files; changeset 1)",
     "files_changed": [
      ".changeset/37403-refusal-reasons-listed.md",
      "ui/packages/app-shell/src/components/RefusalMessage.tsx",
      "ui/packages/app-shell/src/components/RefusalMessage.test.tsx",
      "ui/packages/app-shell/src/views/ActionParamDialog.tsx",
      "ui/packages/app-shell/src/views/ActionParamDialog.refusalKeepsInput-13161.test.tsx",
      "ui/packages/core/src/actions/actionResponse.ts",
      "ui/packages/core/src/actions/__tests__/actionResponse.test.ts",
      "ui/packages/core/src/actions/serverActionHandler.ts",
      "ui/packages/core/src/actions/__tests__/serverActionHandler.test.ts",
      "ui/packages/types/src/ui-action.ts",
      "ui/packages/types/src/index.ts"
     ],
     "deviations": [
      "File surface: the carrier spans ui/packages/types (ui-action.ts, index.ts), ui/packages/core (actionResponse.ts, serverActionHandler.ts and their existing tests) and ui/packages/app-shell/src/views/ActionParamDialog.tsx. The claim named one carrier place; dispatch A2 authorises the smallest carrier change, and this is the minimum chain (see readings.A2_carrier). No path under the fences (packages/**, packages/mcp/**, skills/**, ui/packages/plugin-kanban/**, docs/adr/**).",
      "No new pin file named for the card: per AGENTS.md (ruling record 6583487846), a new pin for a component that already has a harness file goes into that file as a top-level describe. The pins went into RefusalMessage.test.tsx, ActionParamDialog.refusalKeepsInput-13161.test.tsx, actionResponse.test.ts and serverActionHandler.test.ts.",
      "Declared narrowing: the full @object-ui/app-shell suite was started locally and stopped after about 30 min holding the shared lock (only PIDs I started were killed). Locally only the app-shell files around the refusal box ran. CI Test UI 16/16 is green on the head.",
      "origin/main was merged once before opening the PR (5 incoming commits; none touch the files in this diff). The merge commit carries no trailer pair: pre-push check:commit-card-trailers passed."
     ],
     "mcp_calls": "0",
     "api_writes": "2 relay strokes: (1) pr_create through scripts/pm/fleet-write/dispatch.mjs, run 45811057705: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/37538/assignees [os-bill], read back identical at 7024 bytes. (2) the os-dev-report comment via scripts/pm/post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/37403/comments. Reads used gh api GET only. git push is not counted.",
     "open_questions": [
      {
       "question": "Clause-② was copied verbatim from the claim as `no`, but the diff adds a member (ActionResult.refusals) and a type export (ActionRefusalLine) to the published @object-ui/types, and ADR-0150 defines Clause-② as 'whether the slice changes a published contract (spec, protocol, SDK, …)'. Should the PR body and changeset declare `Clause-②: yes (widening)`?",
       "options": [
        "A: keep `no`. The change is additive and optional, and the ui type is a console-internal hand-off.",
        "B: the seat rewrites both lines to `yes (widening)`. Precedent: the @object-ui/layout new-export changeset in 37452 declared `yes (widening)`. Level stays patch (Metadata-protocol: none)."
       ],
       "recommendation": "B, because @object-ui/types is published, the new export is public, and 37452 set the precedent. Only the declaration lines change, and the seat owns them."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: an action refusal with no params is reported as a toast (ActionRunner shows userMessage, the joined lines as one string), not through RefusalMessage. The card names the alert box only. Listed in the PR's Acceptance notes."
     ]
    }
  11. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Zone o5-U · 2026-11-26T11:54Z · claim amendment 1 for 7188742050 (#37403)

    File surface adds the carrier chain the dispatch's A2 authorised ("if details is dropped before it, the smallest carrier change is in surface, name the file"): ui/packages/types/src/ui-action.ts + ui/packages/types/src/index.ts (ActionRefusalLine, ActionResult.refusals), ui/packages/core/src/actions/actionResponse.ts + serverActionHandler.ts and their existing tests, ui/packages/app-shell/src/views/ActionParamDialog.tsx and its existing refusal test.
    Clause-②: yes (widening) (was: no) — the PR adds a public member and a type export to the published @object-ui/types; same reading as the seat's S7 on PR #37511 (7191238306). Metadata-protocol: none unchanged; level patch.

  12. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv
    os-dev-report

    {
     "issue": 37403,
     "status": "done",
     "round": "rework 1 (verdict 7191443129, contract record PASS 7191427569)",
     "branch": "claude/issue-37403-refusal-lines-list",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37538",
     "head": "e0d4fddd365912b82a093961e0924292fb06b355",
     "session": "session_01Utp6Ca6EBDpTBZk8v46Jjv",
     "premise_still_valid": true,
     "summary": "S1: the changeset and the PR body now read `Clause-②: yes (widening)`. The line itself stays bare because the declaration parsers read the line. A following sentence names @object-ui/types ActionRefusalLine and ActionResult.refusals, and @object-ui/core ActionResponseOutcome.refusals. Level stays patch, Metadata-protocol: none. N1: the changeset's New: bullet names ActionResponseOutcome.refusals. N2: the refusalLines jsdoc, and the same sentence in the PR body's What changes, now say it applies the element rule of declaredRefusalLines and does not re-check that rule's userMessage condition. N3 accepted, untouched. No main merge.",
     "acceptance": [
      "S1: done. Changeset line 'Clause-②: yes (widening)' plus a naming sentence. PR body line 2 is the same, with the same sentence.",
      "N1: done. The changeset New: bullet names ActionResponseOutcome.refusals (@object-ui/core).",
      "N2: done. Jsdoc in ui/packages/core/src/actions/actionResponse.ts reworded (comment only).",
      "PR body: patched via relay issue_patch. Its last non-empty line is the signed line for repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv."
     ],
     "tests": "Head e0d4fddd36: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/src/actions/__tests__/actionResponse.test.ts`: Test Files 1 passed, Tests 12 passed, VERDICT command-exit 0. The delta is a comment and a changeset only, so there was no ablation (behaviour unchanged).",
     "gates": "Local on e0d4fddd36, each exit 0: check-adr-0087-registration --base origin/main ('no declared-breaking changeset'), check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check:changeset-gate-self-tests, check:nul-bytes, check-closing-keyword-parity, check:closed-ceremony-text. overlap-check VERDICT clean exit 0. CI on head e0d4fddd36: 62 check-runs completed, 47 success, 15 skipped, 0 failure. Required contexts: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success, Build Core=skipped, Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI=success, Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success. Check Changeset=success on both runs (push and body edit).",
     "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
     "line_budget": "round delta: 2 files, changeset +3/-2 and actionResponse.ts jsdoc +6/-4; PR total 11 files",
     "files_changed": [
      ".changeset/37403-refusal-reasons-listed.md",
      "ui/packages/core/src/actions/actionResponse.ts"
     ],
     "deviations": [
      "The Clause-② line is kept bare (`Clause-②: yes (widening)`). The type names go on the following sentence, not on the line itself, so the line-initial declaration readers see the canonical shape. check-adr-0087-registration and Check Changeset are green.",
      "PR body: besides S1, the What changes sentence that repeated the N2 overstatement was reworded the same way, and a rework note was added under Verification. The earlier readings (head 7556f528a1) are kept and labelled as such."
     ],
     "mcp_calls": "0",
     "api_writes": "2 this round: (1) relay issue_patch on #37538 body, run 45819816648: PATCH /repos/objectstack-ai/objectstack/issues/37538, read back identical at 8217 bytes. (2) this os-dev-report comment via post-stamped: POST /repos/objectstack-ai/objectstack/issues/37403/comments. git push is not counted.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions