Repository navigation
Description
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
② fleet finding (class a) · Source: the card thread of cloud#4902 (PR objectstack-ai/cloud#4941), seen in the browser on cloud's current framework pin. Not measured on objectstack main.
What happens. A page-metadata node action:button renders schema.label as it is. A plain string label is never translated, and a label given as an inline locale map ({ 'zh-CN': …, en: … }) crashes the page with React's "Objects are not valid as a React child". element:button cannot name an objectName for a script action, so a page author has no way to put a localized button that runs a declared object action on a page.
Effect today: cloud's billing page (cloud#4902) had to use Markdown links to the environment's record page instead of running 调整席位 / 购买额度 / 管理订阅与发票 in one click.
Expected. action:button resolves its label the way other page nodes do (locale map or translation key), and never crashes on a locale map. Optional: if the action declares its own label, use it when the node gives none.
Acceptance. A test renders an action:button with a locale-map label in two locales and gets the right text, with no crash; a test that a string label still renders. Check on objectstack main first: the report is from cloud's pin.
Grading (proposed): area:ux · Bug · a page crash on a valid-looking label and no way to localize a page action button ⇒ p2. Evidence: measured in the browser on cloud's pin (thread report) + read.
Dedupe: searched repo:objectstack-ai/objectstack is:issue is:open for "action:button label locale", "action button label not localized", "Objects are not valid as a React child label": none.
Activity
objectstack-fleet commentedon Nov 23, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
area:ux·domain:ui·priority:p2· Bug ·pm:queue; seat grade kept.Rationale: a page-metadata
action:buttonshows its label untranslated, and an inline locale map as the label crashes the whole page ("Objects are not valid as a React child"). That leaves a page author no way to place a localized button that runs a declared object action. The crash needs that specific authoring shape, and the plain-string case is wrong-language text, so this is p2. Seen on cloud's framework pin, not measured on main.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Claim: PM loop round 10 · 2026-11-23T21:27Z
Session:
session_01JQwxbZeHNsF3RWcWpj7rGjThread session: opened by the coordinator; the thread names itself in its first report
Account:
os-warrenBranch: the card thread's own branch, named at its first push; the seat records it then
Worktree:
objectstack-issue-36717Domain:
domain:uiSeat:
repo:objectstack#1Area: card thread
#36717(w9-36717)Dispatch: p2 area:ux, non-epic page-crash bug; the thread first checks the behaviour on objectstack main (the report came from cloud's pin). The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z (「area 的ux任务继续处理」), lifting the 2026-11-23T15:36Z freeze for area:ux; p1+p2, epic children first, under the 15-thread cap.
File surface: the
action:buttonpage node renderer underui/packagesand the shared label resolver it should use, tests, a changeset; a change to the page-node schema inpackages/specis out of surface and is reported as a fork (stop on breach; the thread's first report states the real surface and the seat amends this line)Container & model:
S,mode:thread,model: opus — default tier; the thread's first report states the served tier,effort: highClause-②: no. A new route, contract, spec key or export is amended to yes before its code
Metadata-protocol: none
Responsibility: as the card body states
Thread-read: 7103037498
Premise: read from the card; the thread re-reads it on its base before code
Serial constraints cleared: no open PR names the card
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Decision owed · 2026-11-23T21:46Z: the card thread (session
session_01JQwxbYExPfxvwHxCxmsBWX) stopped before code withneeds_decision; its readings on main e0f0e9f are in the project fileissue-36717/premise-reading.md. The seat releases the claim and moves the card to the decision inbox.维护者速读
Readings (card thread, measured on main e0f0e9f)
action-button.tsx:486printsschema.labelraw, so an inline locale map crashes the render.pages.PAGE.components.COMPONENT_ID.label;translatePageturns anaction:buttonlabel 'Buy credits' into '购买额度' from that key.ActionButtonPropsSchema.labelisz.string(), and its describe says to localize through the bundle entry for the component id, not an inline locale map (packages/spec/src/ui/component.zod.ts~4095).validateComponentPropsenforces it on the CLI and on runtime page writes. Cloud hit the crash because its code-registered tenant pages never pass that gate.action:buttonforwardsobjectName, and its label localizes through the route in point 2.Governing text:
ActionButtonPropsSchema.labeldescribe inpackages/spec/src/ui/component.zod.ts.Options
action:button+ component id +objectNamewith bundle labels, and may add a cloud test that runsvalidateComponentPropsover its code-registered pages. Open point for that card: how the button names the environment record on a standalone page.Four axes: business need: one cloud page, served by A's existing route. Long-term: one translation route per component, already declared. AI-error: A keeps the strict row, and a map is refused loudly at write. Startup scope: A adds nothing.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Ruled: A ·
needs-user-decisioncleared →pm:queue· 2026-11-24T01:05ZThe maintainer (Yibo Wang) picked option A on the seat's decision card in the os-support-ai fleet project at 2026-11-24T01:05Z, verbatim: 「保持走翻译包」 (question: 「#36717 页面按钮的多语言:保持走翻译包,还是让按钮文字直接接受多语言对象?」). The options were reviewed independently (contract-review tier) before they went to the maintainer.
Ruling
action:buttonpage-componentlabelstaysz.string()(packages/spec/src/ui/component.zod.ts:4095-4096); it is localized through the translation bundle entry for its component id (pages.<name>.components.<componentId>.<key>,packages/spec/src/system/translation.zod.ts:1600), not an inline locale map. Not taken: widening the label toI18nLabel.origin/main: a string label already translates through that bundle key (card thread reading 7114917709), so "never translated" and "no way to localize" do not hold.What this card now carries (dispatch shape)
ui/packages/components/src/renderers/action/action-button.tsx:486prints{schema.label}raw, so a non-string label (e.g. a locale map from code-registered metadata that skippedvalidateComponentProps) throws "Objects are not valid as a React child" and white-screens the page. The renderer must never throw on a non-string label: render no text (or the component id) and log a development warning; it must NOT translate the map (that would accept a value the contract refuses). Pin: a page with an object label renders without crashing and shows no[object Object].Clause-②: no,Metadata-protocol: none, size S.repo:cloudcard, not this one.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 2 · area a4-U · 2026-11-25T07:20Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-36717-action-button-label-guardWorktree:
objectstack-issue-36717Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/packages/components/src/renderers/action/action-button.tsx(the label render, ~line 486), its pin as a top-leveldescribein the existing action-button renderer harness, and onepatchchangeset (stop on breach; explain in the report)Container & model: S, mode:subagent, model: default (dispatch-gates --tier at d7f299c: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own renderer (
@object-ui/componentsaction:button, objectstack) | the translation bundle key for the component id (pages.<name>.components.<componentId>.<key>) is the contract path and already translates a string label | a page whose metadata skippedvalidateComponentProps(e.g. code-registered) and carries a non-string label; today that white-screens the pageThread-read: 7118756694
Premise: holds — at
origin/maind7f299c,action-button.tsx:486prints{schema.label}raw, so an object label throws "Objects are not valid as a React child". The dispatch shape is the ruling's (7118756694, the maintainer's 「保持走翻译包」, option A): render guard only. Never throw on a non-string label; render no text (or the component id) and log a development warning; do NOT translate the map;labelstaysz.string().Serial constraints cleared: open PR #37215 (another seat's
ask_aiaction type) editsaction-button.tsxat its imports (~21) and ~432, not at the label render (~486). The dev keeps clear of those hunks and runs overlap-check before each pushPre-claim lane: this seat's whole-repo lane. Seat 1 released the claim to the decision inbox (7114917709); seat 3 recorded the ruling and returned the card to
pm:queuewith no seat routing; seat repo:objectstack#4 confirmed. Not an epic child (no parent issue)Pre-claim deps: no
Blocked-by:Prior rulings read: 7118756694 (Ruled A, the maintainer's 「保持走翻译包」): label stays
z.string(), localized through the bundle key; this card carries only the render guard; moving cloud's billing page buttons is arepo:cloudcard. Repo: objectstack-ai/objectstackobjectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36717, "status": "done", "branch": "claude/issue-36717-action-button-label-guard", "pr": "https://github.com/objectstack-ai/objectstack/pull/37262", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Render guard only, per ruling A (7118756694, the maintainer's 「保持走翻译包」). In action-button.tsx every read of schema.label goes through renderableLabel: a string passes unchanged, and any other value becomes no label. So the button renders with no text, still runs, never prints [object Object], and a dev build warns once per component id (the process.env.NODE_ENV pattern from auto-trigger.ts). All four reads are covered: the visible diagnostic label, the label forwarded to the runner, the icon spacing, and the text. packages/spec is untouched and nothing is translated. Final head e13c940; draft PR #37262.", "tests": "Pin: a top-level describe for #36717 appended to the existing harness action-button-icon-inputs-11168.test.tsx (real SchemaRenderer + ActionProvider), 4 tests: an object label renders empty with no [object Object] and exactly one warning across two mounts; an object label still runs and forwards no label; CONTROL string label; CONTROL translatePage bundle key pages.billing.components.buy_credits.label renders 购买额度. Harness file: 59/59 passed. Final head e13c940: type-check && vitest packages/components/src/renderers/action/ gave 38 files and 626 tests passed, VERDICT command-exit 0. Full packages/components/ on e8894fd: 510 files passed, 1 skipped; 4970 tests passed. Ablation via scripts/ablation-replace.mjs (guard reverted, anchor 1 to 0, blob 212e6892 to 4aa3e170): 2 failed with 'Objects are not valid as a React child (found: object with keys {en, zh-CN})', controls 2 passed. Restore: blob equals HEAD 212e6892, git diff HEAD empty. No dist preflight: the harness imports the renderer from src.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 38 derived and 38 run; 37 non-vitest families exited 0 on e13c940 (exit captured per command before any pipe). vitest run scripts/: 171/174 files, with one 15 s timeout under box contention (js-comment-mask-returns-interpolation-9424); that file passed under the lock on e13c940. --ran reconciliation exit 0: 38 accounted, 0 UNRUN. overlap-check --branch=origin/claude/issue-36717-action-button-label-guard: VERDICT clean (origin/main and #37215 merge cleanly). CI on PR #37262: in_progress at report time. NOT MEASURED locally: the CI type-check lanes and CI-measured-only families, and Test UI outside packages/components.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (5 pushes to the branch, not REST); fleet-write relay pr_create (POST pulls + POST issues/37262/assignees); post-stamped os-dev-report comment on issue 36717", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed — useAutoTriggerOnce(schema, …) still interpolates schema.label into a dev-only refusal message and a toast id when name is absent. It can't throw and shows nothing to a user; it is in auto-trigger.ts, outside the file surface; recorded in the PR's Acceptance notes"] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Slot note · area a4-U · 2026-11-25T09:11Z
The L1 on PR #37262 at
e13c940is REWORK (7157997155), with one should-fix: S1.useAutoTriggerOncegets the rawschema, so an object label reaches the refusal toast as[object Object].action-menu,action-group,action-icon).The zone is at its three-dev cap, all p1 (#37246, #37212's rework, #37259). This p2 round runs at a free slot, after the zone's p1 lane, from the same branch and dev.