This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
docs(plugin-chatbot): scope the two Properties rows the registrations do not all read - #7589
Merged
os-project-manager merged 1 commit intoSep 4, 2026
Conversation
… do not all read The `## Properties` table on `content/docs/plugins/plugin-chatbot.mdx` is one flat list, but the page documents three registrations — `chatbot`, `chatbot-enhanced`, `chatbot-floating` — and two of its rows are read by only some of them. The table never said which, so it claimed more than the registrations deliver in the scope dimension (objectui#6824). Measured on this ref, counting `schema.KEY` reads inside each enclosing registration body of `packages/plugin-chatbot/src/renderer.tsx`: maxHeight chatbot 1 | enhanced 1 | floating 0 (lines 128, 357) processVisibility chatbot 0 | enhanced 1 | floating 0 (line 360) placeholder chatbot 1 | enhanced 1 | floating 1 (control, lines 114/342/480) The control hits all three, so the query resolves reads. The registrations' own `inputs` declarations agree independently: `maxHeight` is offered on `chatbot` (line 188) and `chatbot-enhanced` (line 385) only, `processVisibility` on `chatbot-enhanced` (line 379) only, neither on `chatbot-floating`. Both keys are nevertheless declared on `ChatbotSchema` (`packages/types/src/complex.ts` lines 719 and 827), so authoring one on a registration that ignores it type-checks, parses, and is dropped silently at render — the same failure mode as the `surface` row, one notch weaker. Fix takes the form the `surface` row already landed in one commit earlier (7d8e546): a bolded scope lead at the start of the description cell, followed by prose naming the registrations that do not read the key and what to author in its place. `chatbot-floating` forwards neither key; its panel is sized by `floatingConfig.panelHeight` (a number of pixels, default `520`) and `FloatingChatbot` additionally pins its inner chat to `maxHeight: '100%'`, so an authored `maxHeight` would be overridden even if it were forwarded. `processVisibility` has no substitute outside `chatbot-enhanced` — the base `Chatbot` component has no such prop at all. One sentence above the table states the default the other 22 rows rely on: a row with no scope note is read by all three. Without it the table would carry three annotated rows against 22 silent ones, which is a new ambiguity rather than a fix. Census of all 25 documented rows confirms 22 are read by all three; the three subset rows are `maxHeight`, `processVisibility` and `surface`. Docs only. No renderer, type or zod file is touched, and no registration gains or loses a key — whether these keys *should* be forwarded is a separate question nobody has ruled. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
This was referenced Sep 4, 2026
os-project-manager
marked this pull request as ready for review
September 4, 2026 03:21
os-project-manager
deleted the
claude/issue-6824-chatbot-properties-scope
branch
September 4, 2026 03:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6824
Clause-②: no
Docs only, and measured rather than assumed: the whole branch diff is two files —
content/docs/plugins/plugin-chatbot.mdxand.changeset/6824-chatbot-properties-scope.md.git diff --name-only 2099df405..HEADmatches no.ts/.tsx/.js/.mjs/.cjspath at all, so no renderer, type or zod file is touched. Nothing moves contract
accept/reject behaviour, and the published surface is neither widened nor narrowed. No
needs:contract-reviewlabel is owed.The defect
The
## Propertiestable was one flat list, but the page documents three registrations(
chatbot,chatbot-enhanced,chatbot-floating) and two of its rows are read by only asubset of them. The table never said which — an over-claim in the scope dimension, the same
silent-drop failure mode as the
surfacerow one notch weaker.Both keys are declared on
ChatbotSchema(packages/types/src/complex.ts, lines 719 and827), so authoring one on a registration that ignores it type-checks, parses, and is
dropped silently at render time. Neither the type nor the parser can tell an author, which
is why the scope has to be spelled out in the table.
Measured per-registration matrix
Re-measured on this branch's ref (
2099df405), not copied from the card. Countingschema.KEYreads inside each enclosing registration body ofpackages/plugin-chatbot/src/renderer.tsx— registration boundaries at lines 62(
chatbot), 271 (chatbot-enhanced), 421 (chatbot-floating):chatbotchatbot-enhancedchatbot-floatingmaxHeightprocessVisibilityplaceholder(positive control)The control hits all three, so the query does resolve read points — these two are genuine
subset rows, not a query artifact. My matrix agrees exactly with the one triage recorded
on 2026-08-29.
A second, independent instrument agrees. The registrations' own
inputsdeclarations —the property panel, nothing to do with the grep — already scope both keys correctly:
maxHeightis offered onchatbot(line 188) andchatbot-enhanced(line 385) only,processVisibilityonchatbot-enhanced(line 379) only, and neither onchatbot-floating. The code had this right; only the docs table over-claimed.Census of all 25 rows
Run so the whole-table claim below is measured rather than inherited. 22 of the 25 rows are
read by all three registrations. The three subset rows are
maxHeight,processVisibilityand
surface— andsurfaceis already annotated, by #6827. Three rows needed a secondlook before I would call them "all three":
disabled— strictschema.disabledreads 3/0/1, butchatbotandchatbot-enhancedconsume the host-evaluated carrier (
SchemaRenderer's verdict ondisabled/disabledOn, forwarded as adisabledprop) rather than re-reading the rawkey. Authored
disabledis live on all three. Not a scope defect.className— 0/0/0 onschema.className, because it arrives as a sibling prop and isforwarded at lines 129 / 365 / 495. Live on all three, uniformly. Not a scope defect.
maxToolRoundtrips—schema.maxToolRoundtripsis read 1/1/1 (lines 88 / 317 / 455).Uniform across the three, and the row already discloses its inertness (the fix(chatbot): deprecate the inert maxToolRoundtrips key (stage 1 of 2) #5918
deprecation). A different dimension, not this card's, and left untouched.
Which of the two permitted forms, and why
Form 1 — per-row scope annotation — because that is the shape #6687 actually landed in.
I verified the merged diff rather than trusting the PR number. PR #6827 landed as commit
7d8e5468f, and it did not delete thesurfacerow and did not add a column: itwired the key into
chatbot-enhancedand rewrote the row's description cell to lead with abolded scope note —
So the convention exists and is one commit old. These two rows now carry the identical form —
bolded scope lead, then prose naming the registrations that do not read the key and what to
author instead. Splitting the table into three would have discarded a convention the sibling
card had just established.
⛔ The third option — deleting the two rows — is refused by triage and was not taken. Both
keys are live on at least one registration; deleting them would manufacture the opposite
error.
Substitution facts now stated in the docs
An author needs to know what to write instead, not only that the key is dead:
maxHeightonchatbot-floating— the panel is sized byfloatingConfig.panelHeight,a number of pixels (default
520), not a CSS length string. Stronger than"not forwarded":
FloatingChatbotpins its inner chat tomaxHeight: '100%'so it fillsthe panel (
FloatingChatbot.tsxline 84), so an authoredmaxHeightwould be overriddeneven if it were forwarded.
processVisibilityonchatbot— no substitute. The baseChatbotcomponent's props(
packages/plugin-chatbot/src/index.tsx) have noprocessVisibilityat all; there is noagent-process display to configure. The answer is to switch the node to
chatbot-enhanced.processVisibilityonchatbot-floating— the panel does renderChatbotEnhancedunderneath, which supports the key, but the registration never forwards it, so the panel
always renders at the
'summary'default. No floating-side substitute exists to author.Note this is a more precise reading than the card's "no
processVisibilityat all" forfloating: floating is un-forwarded, whereas
chatbotgenuinely lacks the capability. Thetwo zeros have different causes and the docs now say so.
Applied to the whole table, not only two rows
A table where three rows carry a scope marker and 22 do not is a new ambiguity. Rather than
add a redundant "all three" note to 22 rows, one sentence above the table states the default
the 22 rely on:
That is backed by the 25-row census above, which is why the census was run. With it, the
table is unambiguous as a whole under the same convention #6687 set.
Verification
Gates derived from the changed paths (
content/docs/**.mdx,.changeset/**) against thisrepo's own
package.jsonand.github/workflows/. objectui has noscripts/pm/dispatch-gates.mjs— that script lives only in objectstack and answers onlyabout its own tree — so the family was derived by hand here.
All seven ran green on the final commit
7da9bddc6, on a clean tree, after the lastcommit — so the sha these verdicts describe is the sha under review. Exit codes were captured
before any pipe (
cmd > file 2>&1; EXIT=$?), and every line below is the gate's own printedverdict, not a bare
$?.check:control-bytescheck-control-bytes: OK (scanned 6247 tracked text file(s); skipped 85 binary).check:doc-typesEvery documented component type is registered.— 4 key tables, 45 table keys judged, 45 registeredcheck:doc-snippetsEvery covered documentation snippet compiles against the built types.— 452 of 452 blocks judged, 0 failedcheck:doc-fencesevery TypeScript block in 227 document(s) is fenced ts/tsx/typescript ...docs:check-linksLinks are valid across 17 scan roots.changeset:checkAll workspace packages are in the changeset fixed group./No changeset declares a 'major' bump.check-changeset-presence.mjsNo source or published contract of a released package changed in this range, so no changeset is owed.— 2 files changed, 1 changeset addedcheck:doc-snippetsis worth calling out: it first returned exit 2,PRECONDITION NOT MET,which its own output defines as "I could not run", not a verdict — the 26 packages it resolves
against were unbuilt. That is NOT MEASURED, not green, so I ran the prerequisite build it
names (
turbo run build $(node scripts/check-doc-snippet-types.mjs --build-filter) --concurrency=2, 34/34 tasks in 4m12s) and re-ran it for a real reading. This page's blocksare gated (it came off the
UNGATED_DOCSledger in9bf0abfec), so the run above genuinelycovers it.
On the changeset level.
check-changeset-presence.mjsreportsNo source or published contract of a released package changed in this range, so no changeset is owed— the.mdxpage is not package source. The dispatch asked for apatch-levelchangeset; I wrote an empty-frontmatter one instead, which the presence gate blesses
explicitly ("An empty frontmatter counts — what is required is one sentence written while the
author still knows what the change does, not a release") and which 248 of the 858 changesets
currently in
.changeset/already use. Apatchbump on@object-ui/plugin-chatbotwouldpublish a version claiming the package changed when no line of it did — which is the same
species of over-claim this card exists to remove. Flagging the deviation rather than making
it silently; say the word and I will switch it to
patch.🤖 Generated with Claude Code
https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
Generated by Claude Code