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
Commit fcd2e65
Browse filesBrowse the repository at this point in the historyBrowse files
fix(core,react,runtime,cli,app-shell): read the template envelope on an action's description, helpText and outcomeMessages
Readers first (#27948, ruling A, step 2): the next commit types these three
keys as `template` slots, so a parsed action carries
`{ dialect: 'template', source }` where it carried a string. Each reader
that took a string now takes the envelope, pinned and reverse-checked:
- core ActionRunner hands the param-collection handler the action and
params with `description` / each `helpText` reduced to their text
(`actionCopyText`), and composeSuccessMessage reads an outcome
envelope's source;
- react useActionTextLocalizer keeps an outcomeMessages envelope's shape
instead of collapsing it to the word "template";
- runtime summarizeActionParams reads helpText's text for the MCP
param description, never "[object Object]";
- cli i18n-extract seeds the envelope's text exactly as the bare string's
on description, helpText and outcomeMessages;
- app-shell ActionPreview (Studio) draws helpText, confirmText and
successMessage from the envelope's source; it drew helpText raw, an
object as a React child.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwQ8tWwY7TiHQPMCHR
fix(core,react): an action's `description`, a param's `helpText` and an `outcomeMessages` entry read the `template` envelope
7
+
8
+
Clause-②: no
9
+
Metadata-protocol: none
10
+
11
+
objectstack#27948 step 2 types these three as `template` slots, so a served action can carry `{ dialect: 'template', source }` where it carried a string.
12
+
13
+
-**Param dialog.** The runner hands the param-collection handler the action and params with `description` and each `helpText` reduced to their text (`actionCopyText`), so the dialog draws the sentence, never `[object Object]`; a locale map is handed on unchanged for the host to localize.
14
+
-**Outcome toast.**`useActionTextLocalizer` keeps an `outcomeMessages` envelope's shape (a bundle entry replaces its `source`) instead of collapsing it to the word "template", and the runner fills the envelope's holes as it fills the string's.
15
+
16
+
-**Studio's action preview** (`@object-ui/app-shell`, unpublished) draws a param's `helpText`, `confirmText` and `successMessage` from the envelope's `source`: it drew `helpText` raw (an object as a React child) and read the other two as a locale map, which showed the word "template".
17
+
18
+
What to do: nothing. `${…}` copy written before the migration keeps reading.
0 commit comments