Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

docs(plugin-chatbot): scope the two Properties rows the registrations do not all read - #7589

Merged
os-project-manager merged 1 commit into
mainfrom
claude/issue-6824-chatbot-properties-scope
Sep 4, 2026
Merged

os-project-manager merged 1 commit into
mainfrom
claude/issue-6824-chatbot-properties-scope

Conversation

@os-project-manager

Copy link
Copy Markdown
Collaborator

Fixes #6824

Clause-②: no

Docs only, and measured rather than assumed: the whole branch diff is two files —
content/docs/plugins/plugin-chatbot.mdx and .changeset/6824-chatbot-properties-scope.md.
git diff --name-only 2099df405..HEAD matches no .ts / .tsx / .js / .mjs / .cjs
path 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-review label is owed.

The defect

The ## Properties table was one flat list, but the page documents three registrations
(chatbot, chatbot-enhanced, chatbot-floating) and two of its rows are read by only a
subset of them. The table never said which — an over-claim in the scope dimension, the same
silent-drop failure mode as the surface row one notch weaker.

Both keys are 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 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. Counting
schema.KEY reads inside each enclosing registration body of
packages/plugin-chatbot/src/renderer.tsx — registration boundaries at lines 62
(chatbot), 271 (chatbot-enhanced), 421 (chatbot-floating):

Row chatbot chatbot-enhanced chatbot-floating Hit lines
maxHeight 1 1 0 128, 357
processVisibility 0 1 0 360
placeholder (positive control) 1 1 1 114, 342, 480

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 inputs declarations —
the property panel, nothing to do with the grep — already scope both keys correctly:
maxHeight is offered on chatbot (line 188) and chatbot-enhanced (line 385) only,
processVisibility on chatbot-enhanced (line 379) only, and neither on
chatbot-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, processVisibility
and surface — and surface is already annotated, by #6827. Three rows needed a second
look before I would call them "all three":

  • disabled — strict schema.disabled reads 3/0/1, but chatbot and chatbot-enhanced
    consume the host-evaluated carrier (SchemaRenderer's verdict on
    disabled/disabledOn, forwarded as a disabled prop) rather than re-reading the raw
    key. Authored disabled is live on all three. Not a scope defect.
  • className — 0/0/0 on schema.className, because it arrives as a sibling prop and is
    forwarded at lines 129 / 365 / 495. Live on all three, uniformly. Not a scope defect.
  • maxToolRoundtrips — schema.maxToolRoundtrips is 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 the surface row and did not add a column: it
wired the key into chatbot-enhanced and rewrote the row's description cell to lead with a
bolded scope note —

surface ... chatbot-enhanced only. Controls whether the chat renders as a bordered
panel ... The chatbot and chatbot-floating registrations render different components,
which have no such chrome to switch, and do not read this key

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:

  • maxHeight on chatbot-floating — the panel is sized by floatingConfig.panelHeight,
    a number of pixels (default 520), not a CSS length string. Stronger than
    "not forwarded": FloatingChatbot pins its inner chat to maxHeight: '100%' so it fills
    the panel (FloatingChatbot.tsx line 84), so an authored maxHeight would be overridden
    even if it were forwarded
    .
  • processVisibility on chatbot — no substitute. The base Chatbot component's props
    (packages/plugin-chatbot/src/index.tsx) have no processVisibility at all; there is no
    agent-process display to configure. The answer is to switch the node to chatbot-enhanced.
  • processVisibility on chatbot-floating — the panel does render ChatbotEnhanced
    underneath, 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 processVisibility at all" for
floating: floating is un-forwarded, whereas chatbot genuinely lacks the capability. The
two 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:

A row whose description carries no bolded scope note is read by all three.

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 this
repo's own package.json and .github/workflows/. objectui has no
scripts/pm/dispatch-gates.mjs — that script lives only in objectstack and answers only
about 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 last
commit — 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 printed
verdict, not a bare $?.

Gate Verdict line
check:control-bytes check-control-bytes: OK (scanned 6247 tracked text file(s); skipped 85 binary).
check:doc-types Every documented component type is registered. — 4 key tables, 45 table keys judged, 45 registered
check:doc-snippets Every covered documentation snippet compiles against the built types. — 452 of 452 blocks judged, 0 failed
check:doc-fences every TypeScript block in 227 document(s) is fenced ts/tsx/typescript ...
docs:check-links Links are valid across 17 scan roots.
changeset:check All workspace packages are in the changeset fixed group. / No changeset declares a 'major' bump.
check-changeset-presence.mjs No source or published contract of a released package changed in this range, so no changeset is owed. — 2 files changed, 1 changeset added

check:doc-snippets is 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 blocks
are gated (it came off the UNGATED_DOCS ledger in 9bf0abfec), so the run above genuinely
covers it.

On the changeset level. check-changeset-presence.mjs reports
No source or published contract of a released package changed in this range, so no changeset is owed — the .mdx page is not package source. The dispatch asked for a patch-level
changeset; 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. A patch bump on @object-ui/plugin-chatbot would
publish 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

… 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants