Skip to content

fix(cli): experimental theme editor - rounder corners never make the chat corners less round - #13159

Merged
josephfarina merged 4 commits into
feature/theme-editorfrom
fix-chat-radius-ratio
Nov 21, 2026
Merged

josephfarina merged 4 commits into
feature/theme-editorfrom
fix-chat-radius-ratio

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #12800: rounder corners lowered the chat drawer.

User impact

On a theme made with astryx experimental theme editor from a bundled base that pins a 28px chat radius above its 12px container radius, the corners dial could make the chat composer, its drawer and message bubbles less round. Since #12800 the dial wrote --radius-chat: var(--radius-container), and the container radius after many steps is below the base's chat radius. On neutral and chocolate (10px element radius), corners more, large, round and an exact size under about 23px did it (28px down to 14px after more); pill gave 29px. On butter, gothic and stone (8px element radius), exact sizes under about 19px did it; pill gave 36px.

Problem and solution fit

  1. Why does it occur? The dial equates the chat radius with the container radius, while the base keeps chat corners 2.3× rounder than containers.
  2. Why does it harm the task? The person asks for rounder corners and the most visible rounded surface on a chat page gets sharper.
  3. Why does that matter? The answer looks wrong, so the person or agent works around the dial with exact radii, and the theme stops following its corners.

The fix keeps #12800's intent (chat corners follow the container radius, including an exact container radius set later) and keeps the base's ratio of the two, so the chat radius moves the way the dial moves.

Expected behavior and authority

spec:AST-050/DEC-13: the dial's chat radius follows the container radius. This PR adds one sentence to DEC-13 that restores the direction: on a base that pins a chat radius other than its container radius, the two keep the base's ratio, so rounder corners never make the chat corners less round. Nothing else in DEC-13 changes.

Smallest restoration

  • The corners dial writes --radius-chat: min(calc(var(--radius-container) * 28 / 12), 42px) on neutral: the base's own chat and container radii as a fraction, so the base's own corners give exactly 28px, and at most one and a half times the base's chat radius, so a one-line composer (about 86px tall on neutral) and the drawer tucked under it by that radius keep matching corners at pill. A base that pins no other chat radius (or the same one, such as y2k's 0/0) keeps var(--radius-container).
  • A corners rung on one chat part takes the same ratio and cap (radiusAt).
  • A corner bound (how 'make corners never more than 8px') holds the chat radius too, with min(calc(var(--radius-container) * 28 / 12), 8px), so a container radius set after it still moves the chat corners, as DEC-13 says.
  • The release note is a new changeset (the one from fix(cli): the corners dial gives the chat radius back to the container radius #12800 shipped in 0.7.17 with the container-radius behavior) and names what changes since then; the set help line says the same.

Evidence

  • Reproduction before the change: new t --like neutral, set t corners more → --radius-chat 28px → 14px. The new direction test fails on main.
  • Result after the change on neutral: square / small / medium / large / round / pill give 0 / 23 / 28 / 33 / 42 / 42px; ascending rungs never lower it, and it never passes 42px.
  • Representative unchanged path: a base with no separate chat radius still gets var(--radius-container); an exact container radius set after the dial is still followed.
  • Regression test or other mutation-sensitive proof: theme-corners-chat-radius.test.mjs (6 tests: the built token per rung, the exact-radius follow, the ratio and fallbacks, rounder never smaller / sharper never larger, the cap, and how's bound answer still following a later container radius). All six fail on the base, where the dial writes var(--radius-container) and chatRatio does not exist. Two bound tests now also expect --radius-chat held at the bound with min(), and theme-dials-reach-parts.test.mjs expects the new token.

Scope

Components: CLI experimental theme editor (api/theme-edit/_settings.mjs, _how-question.mjs, _tables.mjs), docs/specs/AST-050-app-themes/spec.md (one DEC-13 sentence)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Writing rubric results

R1 narration: none; the added sentence states what the dial writes, in the present tense.
R2 research: none in the record.
R3 evidence: no evidence cell names a pull request, issue or commit.
R4 rejected alternatives: DEC-13 keeps its two, one line each, inside the decision.
R5 change references: none.
R6 open questions: none; the record's open questions say "None."
R7 project status: none.

Testing

  • npx vitest run packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs packages/cli/api/theme-edit/theme-square-pills-circles.test.mjs --project node (44 pass).
  • Full packages/cli/api/theme-edit + packages/cli/clients/cli/commands node suites: only the two failures that also fail on the base (theme-build-names-pictures-removed, icon-definition-groups).
  • pnpm check:knowledge, eslint and prettier on the changed files: clean.

preflight: pass 46b79e7 (same code patch as f168ea4, which passed; beyond the rebase only the release note changed)

replay: worse 0 at 46b79e7

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 12:43pm UTC

Request Review

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 1:02 PM UTC

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 804b997

Storybook · Sandbox · built from this PR's head

Current run: Heavy CI deferred: runs when review passes and before merge. Lint, typecheck and any path-filtered checks ran on this push.


Generated by PR Enrichment workflow | View current CI run

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the DEC-13 change and on three fixes.

This pull request intentionally changes spec:AST-050 DEC-13, which today says the corners dial sets the chat radius to var(--radius-container). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. What must be settled is whether the dial keeps the base's chat-to-container ratio, which gives neutral themes about 44px chat corners at round and 68px at pill.

Blocking findings:

  • packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs:60 still expects --radius-chat: var(--radius-container) for a theme made from neutral and fails on this head (so the description's Testing line is inaccurate too); expect calc(var(--radius-container) * 28 / 12) there.
  • At pill and the 24px step the dial writes a 67.67px chat radius, which the 86px one-line composer clamps to 43px while ChatComposerDrawer still tucks 67.67px under it, so the drawer's square corners show past the composer's bottom corners; cap the chat radius the dial writes and radiusAt returns (for example at 43px on neutral).
  • The description says any rounder step made chat corners less round, but on the base the 24px step and pill already gave 29px, rounder than neutral's 28px, so limit the claim to corners more, round and exact sizes under 23px.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the dial writes the chat radius from the container radius at the base's ratio (28/12 on neutral): verified in the settings module and in each tree's editor build.
  • Claim: most bundled themes pin a 28px chat radius: verified (six of seven; y2k pins 0px).
  • Claim: rounder corners make chat corners rounder and smaller make them smaller: verified by the new direction test and a rung-by-rung check.
  • Claim: a base with no separate chat radius keeps var(--radius-container): verified by the fallback test.
  • Claim: a corner bound holds the chat radius too: verified by the two updated bound tests.
  • Claim: corners more on neutral dropped chat corners from 28px to 14px: verified on the base.
  • Claim: any rounder step made chat corners less round: false (finding 3).
  • Claim: an exact container radius set after the dial is still followed: verified.
  • Claim: one sentence is added to DEC-13 and nothing else in it changes: verified.
  • Claim: a corners rung on one chat part takes the same ratio, and the help line says the same: verified.
  • Claim: the four new tests fail before the change and pass after, and the four named files pass (40 tests): verified.
  • Claim: the full theme-edit suites fail only where the base fails: false (finding 1).
  • Claim: knowledge check, eslint and prettier are clean on the changed files: verified.
  • Claim: the count of affected grader asks: not checkable from the repository.
  • File .changeset/experimental-theme-corners-chat-radius.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: awaits the DEC-13 decision.
  • File packages/cli/api/theme-edit/_settings.mjs: finding 2.
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs: clear.
  • Cross-file: theme-dials-reach-parts.test.mjs was left expecting the old value (finding 1).

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the DEC-13 change and on two fixes.

This pull request intentionally changes spec:AST-050 DEC-13, which today says the corners dial sets the chat radius to var(--radius-container). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. What must be settled is whether the dial keeps the base's chat-to-container ratio up to one and a half times the base's chat radius, which gives neutral themes 42px chat corners at round and pill and gives butter, gothic and stone 42px from large up.

Blocking findings:

  • The new test a corner bound holds the chat radius and still follows a container radius set later writes --radius-chat itself (packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs:176-181) instead of asking how, so it passes on the base and never runs the new bound code, and with the cap test also passing on the base the description's claim that the six tests fail before the change is false; drive that test through how and say four of the six fail on the base.
  • The description's "exact size under about 23px" and "29px container" hold for neutral and chocolate only, since on butter, gothic and stone the base already gave 28px or rounder chat corners from about 19px (and 36px at pill), so name the threshold per base.
Claims and files checked

Review mode: full; reason: rebase

  • Changeset: the dial writes the chat radius from the container radius, so chat surfaces follow the theme's corners: verified in the settings module and the built-theme test.
  • Changeset: most bundled themes pin a 28px chat radius: verified (six of seven; y2k pins 0px).
  • Changeset: a base with rounder chat corners keeps the ratio, up to one and a half times its chat radius (42px on neutral): verified in code, tests and a Chromium render.
  • Changeset: rounder corners make chat corners rounder and smaller make them smaller: verified below the cap; past it they stay at 42px.
  • Changeset: a base with no other chat radius gets var(--radius-container): verified (y2k and the fallback test).
  • Changeset: a corner bound holds the chat radius, still read from the container radius: verified by the two updated bound tests.
  • Description: corners more on neutral dropped chat corners from 28px to 14px: verified on the base.
  • Description: more, large, round and exact sizes under about 23px made chat corners less round on these bases: false for butter, gothic and stone (second finding).
  • Description: pill and the 24px step were not affected: verified.
  • Description: the dial wrote var(--radius-container) since the earlier change: verified on the base.
  • Description: chat corners keep following an exact container radius set later: verified.
  • Description: one sentence is added to DEC-13 and nothing else in it changes: verified.
  • Description: neutral's rungs give 0, 23, 28, 33, 42 and 42px and never pass 42px: verified.
  • Description: the cap keeps an 86px one-line composer and its drawer matching at pill: verified in Chromium.
  • Description: a corners rung on a chat part takes the same ratio and cap: verified.
  • Description: the earlier unreleased changeset is rewritten and the help line says the same: verified.
  • Description: the new direction test fails before the change: verified.
  • Description: the six new tests fail before the change and pass after: false for two of them (first finding).
  • Description: the two bound tests and the reach-parts test expect the new token: verified (they fail on the base and pass on the head).
  • Description: the five named test files pass (43 tests): verified.
  • Description: the full theme-edit and commands suites fail only where the base fails: partly checked (twelve related theme-edit files pass).
  • Description: knowledge check, eslint and prettier are clean on the changed files: verified.
  • Description: public text carries no internal context: verified.
  • File .changeset/experimental-theme-corners-chat-radius.md: clear (wording note at the cap).
  • File docs/specs/AST-050-app-themes/spec.md: awaits the DEC-13 decision.
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/_settings.mjs: clear.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: first finding.
  • File packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs: clear.
  • Cross-file: the changeset, the help line and the record agree on the ratio and the cap.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about the DEC-13 change and on one description fix.

This pull request intentionally changes spec:AST-050 DEC-13, which today says the corners dial sets the chat radius to var(--radius-container). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. What must be settled is whether the dial keeps the base's chat-to-container ratio up to one and a half times the base's chat radius, which gives neutral themes 42px chat corners at round and pill and gives butter, gothic and stone 42px from large up.

Blocking finding:

  • The description says two of the six tests in theme-corners-chat-radius.test.mjs (the exact-radius follow and the fallbacks) pass on the base, but all six fail there now that the cap and bound tests are stronger (for example at lines 90 and 115), so it should say all six fail on the base.
Claims and files checked

Review mode: full; reason: rebase

  • Changeset: the dial writes the chat radius from the container radius, so chat surfaces follow the theme's corners: verified in the settings module and the built-theme tests.
  • Changeset: most bundled themes pin a 28px chat radius: verified (six of seven; y2k pins 0px).
  • Changeset: a base with rounder chat corners keeps the ratio, up to one and a half times its chat radius (42px on neutral): verified in code, tests and a Chromium render.
  • Changeset: rounder corners never make chat corners less round, and smaller corners never make them rounder: verified over every rung.
  • Changeset: a base with no other chat radius gets var(--radius-container): verified (y2k and the fallback test).
  • Changeset: a corner bound holds the chat radius, still read from the container radius: verified; the build keeps the bound value after a later container radius.
  • Description: the dial wrote var(--radius-container) since the earlier change: verified on the base.
  • Description: on neutral and chocolate, more, large, round and sizes under about 23px made chat corners less round (28px to 14px after more), and pill gave 29px: verified.
  • Description: on butter, gothic and stone, sizes under about 19px did it, and pill gave 36px: verified.
  • Description: one sentence is added to DEC-13 and nothing else in it changes: verified.
  • Description: neutral's rungs give 0, 23, 28, 33, 42 and 42px, never lower going up and never past 42px: verified.
  • Description: the cap keeps an 86px one-line composer and its drawer matching at pill: verified in Chromium.
  • Description: a base with no other chat radius, or the same one, keeps var(--radius-container): verified.
  • Description: a corners rung on a chat part takes the same ratio and cap: verified.
  • Description: a corner bound writes the capped formula at the bound, and a container radius set later still moves the chat corners: verified.
  • Description: the earlier unreleased changeset is rewritten and the help line says the same: verified.
  • Description: corners more on neutral dropped chat corners from 28px to 14px, and the direction test fails before the change: verified.
  • Description: four of the six chat-radius tests fail on the base, and the exact-radius follow and the fallbacks pass on both: false (blocking finding).
  • Description: the two bound tests and the reach-parts test expect the new token: verified (they fail on the base and pass on the head).
  • Description: the five named test files pass (43 tests): verified.
  • Description: the full theme-edit and commands suites fail only where the base fails: partly checked (the two named files pass on both trees here).
  • Description: knowledge check, eslint and prettier are clean on the changed files: verified.
  • Description: public text carries no internal context: verified.
  • File .changeset/experimental-theme-corners-chat-radius.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: awaits the DEC-13 decision (wording note inline).
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/_settings.mjs: clear.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: clear (assertion note inline).
  • File packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs: clear.
  • Cross-file: the changeset, the help line and the record agree on the ratio and the cap.

Automated review (maintainer link)

Comment on lines +195 to +197
expect(builtToken('b', '--radius-chat')).toContain(
'var(--radius-container)',
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: toContain('var(--radius-container)') also holds for the dial's own unbounded token min(calc(var(--radius-container) * 28 / 12), 42px), so this does not show the bound surviving the later container edit. The build keeps min(calc(var(--radius-container) * 28 / 12), 8px) here, so asserting that exact value with toBe makes the test prove the hold as well as the follow.

Comment on lines +749 to +755
container step. On a base that pins a chat radius other than its container
radius, the chat radius the dial writes, and the radius such a rung gives its
part, keep the base's ratio of the two, up to one and a half times the base's
chat radius
(`min(calc(var(--radius-container) * 28 / 12), 42px)` on a base with 12px
containers and 28px chat corners), so rounder corners never make the chat
corners less round.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking wording: this sentence overrides the two sentences just above it ("it sets the chat radius to var(--radius-container)" and "gives that part the container step") on six of the seven bundled bases, so the decision now states two values. Rewording those sentences to state the ratio directly, with var(--radius-container) as the case where the base pins no other chat radius, keeps one rule.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f168ea4

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@josephfarina
josephfarina marked this pull request as ready for review November 21, 2026 11:27
@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 11:38
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 804b997

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested for one description fix; the DEC-13 change is owner-approved at this head, and the code, tests and rendering hold up.

Blocking finding:

  • Regression: the Testing section says the five named test files give 43 passes, but at this head they give 44 because the rebase onto the theme branch added a second test to theme-dials-reach-parts.test.mjs, so that line should say 44 pass.

Non-blocking: the bound test at theme-corners-chat-radius.test.mjs:195-197 would prove the hold as well as the follow with an exact toBe('min(calc(var(--radius-container) * 28 / 12), 8px)').

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: the dial writes the chat radius from the container radius, so chat surfaces follow the theme's corners: verified in the settings module and the built-theme tests.
  • Changeset: most bundled themes pin a 28px chat radius: verified (six of seven; y2k pins 0px).
  • Changeset: a base with rounder chat corners keeps the ratio, up to one and a half times its chat radius (42px on neutral): verified in code, tests and a Chromium render.
  • Changeset: rounder corners never make chat corners less round, and smaller corners never make them rounder: verified over every rung.
  • Changeset: a base with no other chat radius gets var(--radius-container): verified (y2k and the fallback test).
  • Changeset: a corner bound holds the chat radius, still read from the container radius: verified in the bound code and its test.
  • Description: the dial wrote var(--radius-container) before this change: verified on the base.
  • Description: on neutral and chocolate, more, large, round and sizes under about 23px made chat corners less round (28px to 14px after more), and pill gave 29px: verified.
  • Description: on butter, gothic and stone, sizes under about 19px did it, and pill gave 36px: verified.
  • Description: the base keeps chat corners about 2.3 times rounder than containers: verified (28 / 12).
  • Description: one sentence is added to DEC-13 and nothing else in it changes: verified.
  • Description: neutral's rungs give 0, 23, 28, 33, 42 and 42px, never lower going up and never past 42px: verified.
  • Description: the cap keeps an 86px one-line composer and its drawer matching at pill: verified in Chromium.
  • Description: a base with no other chat radius, or the same one, keeps var(--radius-container): verified.
  • Description: a corners rung on a chat part takes the same ratio and cap: verified.
  • Description: a corner bound writes the capped formula at the bound, and a container radius set later still moves the chat corners: verified.
  • Description: the earlier unreleased changeset is rewritten and the help line says the same: verified.
  • Description: corners more on neutral dropped chat corners from 28px to 14px, and the direction test fails before the change: verified.
  • Description: all six chat-radius tests fail on the base: verified.
  • Description: the two bound tests and the reach-parts test expect the new token: verified (they fail on the base and pass on the head).
  • Description: the five named test files give 43 passes: false, they give 44 at this head (blocking finding).
  • Description: the full theme-edit and commands suites fail only where the base fails: partly checked (the two named files pass on both trees here).
  • Description: knowledge check, eslint and prettier are clean on the changed files: verified.
  • Description: the patch is the same as the previous head's, rebased onto the theme branch without conflict: verified.
  • Description: the record follows the writing rubric (present tense, no research, references, status or open questions): verified.
  • Description: public text carries no internal context: verified.
  • File .changeset/experimental-theme-corners-chat-radius.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: clear (owner-approved at this head; wording note carried).
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/_settings.mjs: clear.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: clear (assertion note carried).
  • File packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs: clear.
  • Cross-file: the changeset, the help line and the record agree on the ratio and the cap.

Automated review (maintainer link)

…chat corners less round

The corners dial writes the chat radius from the container radius at the
base theme's ratio of the two (calc(var(--radius-container) * 28 / 12) on
neutral), so rounder corners round the chat drawer, composer and bubbles
again, and smaller corners make them smaller. A base that pins no other
chat radius keeps var(--radius-container). A corner bound holds the chat
radius too.
…a corner bound keeps it read from the container radius

The chat radius the corners dial writes is at most one and a half times
the base's chat radius, so a one-line composer and its drawer keep their
corners at pill. A corner bound holds it with min(), still read from the
container radius, so a container radius set later moves it as before.
… own answer, and the cap test names the cap

The bound test takes the chat radius line from how's answer to a corner
bound, so it fails on a base that writes a copied pixel value. The cap
test expects 42px at round, pill and 24px on neutral. DEC-13 says which
radius the dial and a rung write.
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 46b79e7

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: lint, typecheck and tests have not run on this head yet. The DEC-13 change is owner-approved for this head, the test count in the description is now right, and the code, tests and rendered chat corners hold up.

Non-blocking: the bound test at theme-corners-chat-radius.test.mjs:195-197 would prove the hold as well as the follow with an exact toBe('min(calc(var(--radius-container) * 28 / 12), 8px)').

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: the set corners dial no longer makes chat corners less round: verified (the direction test and every rung and exact size).
  • Changeset: since 0.7.17 the dial wrote --radius-chat: var(--radius-container): verified (the 0.7.17 release notes and the base code).
  • Changeset: most bundled themes pin 28px chat corners over 12px containers: verified (five of seven; matcha is 28 over 18, y2k 0 over 0).
  • Changeset: steps such as more dropped chat surfaces to the container radius: verified (28px to 14px on neutral before the change).
  • Changeset: the dial keeps the base's ratio, up to one and a half times its chat radius (42px on neutral): verified in code, tests and Chromium.
  • Changeset: rounder corners never make chat corners less round, and smaller corners never make them rounder: verified over every rung.
  • Changeset: a base that pins no other chat radius still gets var(--radius-container): verified (y2k and the fallback test).
  • Changeset: a corner bound holds the chat radius, still read from the container radius: verified (the bound code and its test, which fails before the change).
  • Description: on neutral and chocolate, more, large, round and sizes under about 23px made chat corners less round, and pill gave 29px: verified.
  • Description: on butter, gothic and stone, sizes under about 19px did it, and pill gave 36px: verified.
  • Description: the bases keep chat corners about 2.3 times rounder than containers: verified (28 over 12).
  • Description: one sentence is added to DEC-13 and nothing else in it changes: verified.
  • Description: neutral's rungs give 0, 23, 28, 33, 42 and 42px, never lower going up and never past 42px: verified (the CSS resolves 23.33 and 32.67px).
  • Description: the cap keeps a one-line composer of about 86px and its drawer matching at pill: verified in Chromium (86px; the drawer's corners equal the composer's).
  • Description: a base with no other chat radius, or the same one, keeps var(--radius-container): verified.
  • Description: a corners rung on one chat part takes the same ratio and cap: verified.
  • Description: a corner bound writes the capped formula at the bound, so a later container radius still moves the chat corners: verified.
  • Description: the release note is a new changeset because the earlier one shipped in 0.7.17, and the help line says the same: verified.
  • Description: corners more on neutral took chat corners from 28px to 14px before the change, and the direction test fails on main: verified.
  • Description: all six chat-radius tests fail before the change: verified.
  • Description: the two bound tests and the reach-parts test expect the new token: verified (they fail before the change and pass after it).
  • Description: the five named test files give 44 passes: verified.
  • Description: the full theme-editor and command suites fail only where the base fails: verified (no failures here; the two named files pass).
  • Description: the knowledge check, eslint and prettier are clean on the changed files: verified.
  • Description: the record follows the writing rubric (present tense, no research, references, status or open questions): verified.
  • Description: one defect is restored, with no tagalongs, hidden public API or internal context: verified.
  • File .changeset/experimental-theme-corners-chat-radius-ratio.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: clear (owner-approved at this head; wording note carried).
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/_settings.mjs: clear.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: clear (assertion note carried).
  • File packages/cli/api/theme-edit/theme-dials-reach-parts.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-held-bound-passed-writes.test.mjs: clear.
  • File packages/cli/api/theme-edit/theme-reference-bound-token-ratio.test.mjs: clear.
  • Cross-file: the changeset, the help line and the record agree on the ratio and the cap.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 2a6122f into feature/theme-editor Nov 21, 2026
9 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…chat corners less round (#13159)

Reviewed pull request #13159, merged into the theme working branch. It reaches main with the branch's next landing.
@josephfarina

Copy link
Copy Markdown
Contributor Author

Taken out of landing #13377 because the review of the combined head flagged a line this change made. It stays on the working branch and rides the next landing together with its fix: open the fix as a new pull request based on the working branch (it already holds this change), whose description names #13159.

josephfarina added a commit that referenced this pull request Nov 21, 2026
…chat corners less round (#13159)

Reviewed pull request #13159, merged into the theme working branch. It reaches main with the branch's next landing.
@josephfarina

Copy link
Copy Markdown
Contributor Author

Back in landing #13377. The review finding that took this out was in other changes of that landing, not in this one.

josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13284 experimental theme: the newer-recipe release note agrees with the kept-palette one
- #13159 fix(cli): experimental theme editor - rounder corners never make the chat corners less round
- #13243 set: a text size token a part never reads goes into the one its held parts read
- #13299 experimental theme: text in a see-through region is measured over the region as drawn
- #12772 experimental theme how: a label that names the spacing or corners setting reads its value as that setting's; sans after a kind of typeface is the typeface
- #12773 experimental theme how: a contradiction holds back only its own pair; a decimal is one value; a color for the whole theme takes its role
- #13309 perf(cli): theme how makes its every-word check's patterns once per lexicon
- #13224 fix(cli): experimental theme editor - a group height narrowed off one control stays a control height show lists
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13377.

@github-actions
github-actions Bot deleted the fix-chat-radius-ratio branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 46b79e7e Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant