Skip to content

experimental theme how: a file's path changes no other ask inside the question reader - #13317

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
fix/theme-how-url-whole-ask
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
fix/theme-how-url-whole-ask

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

User impact

With the url() reading underneath, a word of a file's path still reached the readers that hold the whole ask: in "menus opacity 0.9, cards background-image: url(/img/frosted.png)", "frosted" turned the menus' opacity into a fill alpha.

Behavior

Each url(...) is set aside before the question reader's whole-ask readers take their copy of the words, so no reader inside the question reader sees a word of its path (the checks that run before it, such as the color-blind one, still read the raw ask); every answer still writes the file back as typed, and the "not used" line still names a layer left unwritten as typed.

Stack

Stack: #13283 → #13297 → #13298 → #13317

Top of the url() stack: on the unwritten-layer note, on the follow-up ask fix, on #13283; the stack enters together.

Testing

theme-how-url-file-name.test.mjs (16 tests): the menus opacity is answered as when asked alone, with no fill line on menus and the file written as typed (fails on the layer below); the other 15 rows pass on both.

replay: worse 0 at 6eb7b57
preflight: pass 6eb7b57 (CI half pass at 790dcb9, rebased onto a changeset-only change since)

@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 2:06pm UTC

Request Review

@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 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, 2:29 PM UTC

@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, and one fix is needed.

No current spec record covers how astryx experimental theme editor how reads an ask, so an engineering owner needs to identify the governing record, or decide that a file named in url() is set aside before the question reader's whole-ask readers so that a word of its path does not change how another ask in the same line is answered. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so, being an engineering owner.

Blocking:

  • The changeset says the file is set aside "before any reader of the whole ask reads it", but answer() in packages/cli/api/theme-edit/_how.mjs still reads the raw ask first (toolAnswer at line 592 and colorBlindPieces at line 605), so menus opacity 0.9, cards background-image: url(/img/rename.png) still answers only "no command renames a theme": scope the note and title to the question reader, or move the set-aside to the top of answer().
Claims and files checked

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

  • Changeset: a file in url() is set aside before any reader of the whole ask. False: the command's own checks in _how.mjs read the raw ask first (the blocking finding).
  • Changeset and title: a word of the path changes no other ask. False in general: a path word rename drops both asks and colorblind adds the color-blind answer, on the base and the head alike; true inside the question reader.
  • Changeset and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: on the base the menus get a fill at 0.9 alpha, and on the head they get opacity 0.9, as when asked alone.
  • Changeset: a patch release note for the CLI. Verified: no command, option or export changes.
  • Description: every answer still writes the file back as typed. Verified by the twelve as-typed tests and by the restore pass at the end of draftAnswer.
  • Description: the "not used" line still names an unwritten layer as typed. Verified by its test.
  • Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
  • Description: this pull request sits on the unwritten-layer note, the follow-up ask fix and #13283. Verified from the branch history.
  • .changeset/experimental-theme-how-url-whole-ask.md: the blocking finding.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.

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; no other fix is needed.

No current spec record covers how astryx experimental theme editor how reads an ask, so an engineering owner needs to identify the governing record, or decide that a file named in url() is set aside before the question reader's whole-ask readers, so that a word of its path does not change how another ask in the same line is answered there. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so, being an engineering owner.

The release note now matches the change: it limits the fix to the question reader and names the checks that still read the raw ask.

Claims and files checked

Review mode: full; reason: rebase

  • Title and changeset: inside the question reader, a word of a url() path changes no other ask. Verified: the question reader copies the whole ask after the set-aside, and every reader of that copy sees the placeholder.
  • Changeset and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: on the base the menus get a fill at 0.9 alpha; on the head they get opacity 0.9, as when asked alone.
  • Changeset and description: the checks that run before the question reader, such as the color-blind one, still read the raw ask. Verified: the tool and color-blind checks in _how.mjs read the raw ask first.
  • Changeset: a patch release note for the CLI. Verified: no command, option or export changes.
  • Description: every answer still writes the file back as typed. Verified by the as-typed tests and the restore pass at the end of the question reader.
  • Description: the "not used" line still names an unwritten layer as typed. Verified by its test and a probe.
  • Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
  • Description: this pull request is the top of a four-pull-request url() stack. Verified from the branch history: each lower head is an ancestor of this head.
  • .changeset/experimental-theme-how-url-whole-ask.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the fix/theme-how-url-whole-ask branch from 790dcb9 to 6eb7b57 Compare November 21, 2026 13:56
@josephfarina
josephfarina force-pushed the fix/theme-how-url-layer-not-used branch from cb48bad to 019e2ac Compare November 21, 2026 13:56
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6eb7b57

@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: CI has not run on this head yet.

CI runs only for pull requests into main or a release branch, and this one targets the branch of the pull request below it, so CI has not run here. An engineering owner's /approve-spec settles how how reads an ask, and the new test and the release note match the change; no fix is needed.

Claims and files checked

Review mode: same-head; reason: none

  • Title: inside the question reader, a word of a file's path changes no other ask. Verified: the whole-ask copies are taken after the url() set-aside (_how-question.mjs:5032-5041).
  • Release note: the file is set aside before the question reader's whole-ask readers take their copy. Verified at the same lines.
  • Release note and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: the new test fails on the base and passes on the head; the base gives the menus a 0.9 fill alpha, the head opacity 0.9.
  • Release note and description: the checks before the question reader, such as the color-blind one, still read the raw ask. Verified: _how.mjs:592 and :605 read it before draftAnswer at :754.
  • Release note: a patch note for the CLI. Verified: no command, option or export changes.
  • Description: every answer still writes the file back as typed. Verified: the restore pass at _how-question.mjs:32897-32903 and the file's as-typed tests.
  • Description: the "not used" line still names an unwritten layer as typed. Verified: its test passes and the head answers not used: "url(b.png)".
  • Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
  • Description: top of a four-pull-request chain, rebased onto a change to the lower pull request's release note only. Verified: each lower head is an ancestor of this head, the base moved only that release note, and this pull request's own patch is unchanged.
  • Description: the author's own replay and preflight run report. Not relied on; the tests were run on this head instead.
  • .changeset/experimental-theme-how-url-whole-ask.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina changed the base branch from fix/theme-how-url-layer-not-used to main November 21, 2026 15:04
@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 15:12
@josephfarina
josephfarina merged commit 1cc8f96 into feature/theme-editor Nov 21, 2026
9 checks passed
@josephfarina

Copy link
Copy Markdown
Contributor Author

Taken out of landing #13377 together with the rest of its group (#13283, #13297, #13298, #13317), which lands as one. The review of the combined head flagged the url() handling (asTyped drops a second url() layer) and the two url release notes. The group stays on the working branch and rides again once a fix pull request that names these enters the branch.

josephfarina added a commit that referenced this pull request Nov 21, 2026
… question reader (#13317)

Reviewed pull request #13317, merged into the theme working branch with only its own changes (the layer below it, #13298, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
… question reader (#13317)

Reviewed pull request #13317, merged into the theme working branch with only its own changes (the layer below it, #13298, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
… question reader (#13317)

Reviewed pull request #13317, merged into the theme working branch with only its own changes (the layer below it, #13298, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
… question reader (#13317)

Reviewed pull request #13317, merged into the theme working branch with only its own changes (the layer below it, #13298, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
… question reader (#13317)

Reviewed pull request #13317, merged into the theme working branch with only its own changes (the layer below it, #13298, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13196 how: every part named before a colon is a subject of the list
- #13283 experimental theme how: a file named in url() is a value, written as typed
- #13297 experimental theme how: a file in a follow-up ask is written as typed
- #13298 experimental theme how: a second url() layer left unwritten is named as not used
- #13317 experimental theme how: a file's path changes no other ask inside the question reader
- #13251 set: a text size said of a title piece goes on its holder's main text
- #13374 experimental theme how: a label after an earlier part's sentence still sets its setting
- #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading
- #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item
- #13378 fix(cli): a radius named for one corner writes that corner only
- #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered
- #13435 experimental theme how: the url() layer note names only the phrasing still left out
- #13449 how: a colon-list item is read in the sentence that holds it as typed
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13412.

@github-actions
github-actions Bot deleted the fix/theme-how-url-whole-ask branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 6eb7b57d 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