Skip to content

console AI chat: the seed warning after publishing drafts shows the seed loader's engine text, or "[object Object]" #35303

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Filing gate: out-of-scope finding from the os-dev of #35141 (PR #35301), class a, filed by seat 5. ⛔ Not a claim. Same family as #35141 and #32984 (user-facing text must be a pack sentence), a second producer outside that card's fence. Lease ux-1.

What happens

ui/packages/app-shell/src/console/ai/AiChatPage.tsx (around :3212 on main), onPublishDrafts: the console.ai.seedWarn toast uses seedApplied.error (the seed loader's engine text) as its description. When there is no error, it uses String(seedApplied.errors[0]), which renders [object Object] for a structured { row, reason } error row.

Expected

The description is a translated pack sentence, the same shape #35141 gives the publish-all toast. Engine text and row objects go to the console log or a details affordance, not to the toast.

Done when

Both arms show a pack sentence in en and zh; a test pins the structured-row arm (no [object Object]) and the engine-text arm.

Dedupe words: console.ai.seedWarn, AiChatPage seedApplied.error, seed toast object Object.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (rules of #35223): area:ux (as leased; the AI chat seed warning) · Bug · Cosmetic · end users after a publish → p2 (UX rule), as filed. Issue type set to Bug.

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 round 6 · 2026-11-19T05:18Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Branch: claude/issue-35303-ai-chat-seed-warn
    Worktree: objectstack-issue-35303
    Domain: domain:ui
    Seat: repo:objectstack#5 · area ux-1 (lease:ux-1)
    File surface: ui/packages/app-shell/src/console/ai/AiChatPage.tsx (the onPublishDrafts seedWarn arm only), a new test file beside it, root .changeset/. 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: AiChatPage.tsx onPublishDrafts puts seedApplied.error (engine text) or String(seedApplied.errors[0]) ([object Object] for a { row, reason } row) into the console.ai.seedWarn toast description | PR #35301 (#35141) fixed the publish-all door with the pack sentence chatbot.build.health.seedFailed | every builder whose seed fails when publishing from the AI chat page
    Thread-read: 6999091117
    Premise: holds (filed from the #35141 dev's reading at 3cf598ff98)
    Pre-claim lane: ui/packages/app-shell/** → domain:ui, area ux-1 (lease table; the card carries lease:ux-1).
    Pre-claim deps: none; sibling PR #35301 merged.
    Prior rulings read: #32984 Q1 (user-facing text is the customer sentence) governs, as for #35141; no conflict.
    Serial constraints cleared: no other ux-1 card touches AiChatPage.tsx; the dev runs overlap-check before the first push.
    Scope: both arms show the pack sentence in en and zh; engine text / row objects to the console log, not the toast; pins for the engine-text arm and the structured-row arm + CONTROL + ablation. Fixes #35303.

  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": 35303,
      "status": "done",
      "branch": "claude/issue-35303-ai-chat-seed-warn",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35359",
      "session": "session_01Utp6CbSphdunq2aJq7ktuY",
      "premise_still_valid": true,
      "summary": "AiChatPage onPublishDrafts: the console.ai.seedWarn toast description is now always the pack sentence chatbot.build.health.seedFailed (mirror of PR 35301), on both the engine-text arm (seedApplied.error) and the structured-row arm (errors[0] as { row, reason }, which read [object Object]). The engine text and error rows go whole to console.warn('[app-shell] Published, but the seed failed to load:', { packageId, error, errors }); the health line's technical details are untouched. New pin file AiChatPage.seedWarnPackSentence-35303.test.tsx (en + zh-Hans, both arms + CONTROL) and a patch changeset on @object-ui/app-shell; no locale keys, props or exports change.",
      "tests": "head 09500fa40c. New file + publishAdvisoryReachesAuthor: Test Files 2 passed, Tests 9 passed (lock VERDICT command-exit 0). Targeted wider run (console/ai/__tests__/ + app-shell census/ratchet files that walk sources + i18n and plugin-chatbot files that read sources): Test Files 105 passed, Tests 1182 passed (VERDICT 0). pnpm --filter @object-ui/app-shell run type-check: VERDICT 0, new test counted in tsconfig.test.json --listFilesOnly (1 hit). Ablation (fix committed first at da8a671b57; ablation-replace anchor 1->0, replacement 0->1, blob af4e13d997 -> a8bb0a93e9; subject resolves through source, no build): Tests 4 failed | 2 passed (6), Received the engine text and '[object Object]' in en and zh-Hans, CONTROL green; restored blob == HEAD af4e13d9971d and git diff HEAD empty.",
      "gates": "dispatch-gates --commands derived 38 families at 09500fa40c; all 38 exit 0 (incl. pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped; check:nul-bytes; check:cross-package-test-inputs; check:test-source-alias; check-empty-changeset; check-adr-0087-registration). --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, all with exit codes. overlap-check: VERDICT clean exit 0. ui check:new-line-citations: 0 new. eslint on touched files: 0 errors. PR check-runs at report time: in_progress (Check Changeset, Lint jobs, Type Check jobs, Governed Surface Queue Guard, PR-body guards); full app-shell suite left to CI Test UI.",
      "dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: pr_create (POST pulls + POST issues/35359/assignees) and this os-dev-report comment (POST issues/35303/comments); git push is not a REST write",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-19T06:49Z: PR #35359 merged as 3e7feed (ACCEPT 7001653966, landing 7001668621); 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