Repository navigation
fix(content): head the agent card with the result waiting for a decision, and say how many placeholders it leaves - #1517
Merged
Conversation
…adings' answers and what the last rewrite came to, and offer a Length it can reach Co-Authored-By: Claude Opus 5.5 <[email protected]>
… for, keep its numbers on the row (00285), and read the floor's sections closer (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and count the last rewrite only within its Length's band and the same kept text (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… one more pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er to rewrite the cited passages too when they hold the Length out of reach Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e back, release an unused hold, keep a cited-too miss as evidence, and offer it only when cited passages hold the Length (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he agent and Next step move on, and count open rules as the Rules tab does Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es read the page, keep the Length's own words, and wait for the passages before dropping skips (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion, not the next step, and say how many placeholders it leaves to fill Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aphs, and read a rewrite's once, not on every key (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 12 tasks
gkhngyk
approved these changes
Oct 26, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
What I checked:
- Stack. The PR's own change is 7caf2cd and f878ff3, on #1516's head (109d174), with no merge commits. With the stack, it merges cleanly on main. It's web only, so nothing here waits for the API deploy.
- The heading.
stepHeadnow followsnextShown. No step heads the card while the agent works, while a rewrite is open, or while any suggestion in a batch is open.- For a rewrite, the card heads with "Content Agent rewrote the page to its rules", with its characters and its Length line. For a batch, it heads with "Content Agent has N suggestions for you". Each keeps its own buttons, with no step reason or "Last run" under it.
- Once everything is decided, the step heads the card again, with the run as "Last run". The person's tile follows the same condition.
- Placeholders in a rewrite.
- Counted only while the rewrite is open: its placeholders less the page's before it, never below 0.
- Memoized on the two pages, so typing doesn't read them again.
- Headings are read with the agent's forms only, as Quality reads them.
- Placeholders in a batch. Each open change adds its count of new placeholders, never below 0.
PLACEHOLDERis global, somatchreturns every match. pagePlaceholders.- A
liadds only its own text and inline elements. So the editor's<li><p>is still read once (by itsp), nested lists are read once, and a task item's label isn't read. - Its only other caller, Quality's count in the editor, gives the same number as before for HTML whose
lis hold ap.
- A
- Tests cover the heading over an open rewrite, the rewrite's and the batch's counts, and nested lists.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Stacked on #1516. The PR's own changes are its last two commits.
In the live editor test (2026-10-25), with Next step on, the agent card headed "Next · Shorten to your Length" over a page rewrite still waiting to be accepted or rejected. The user asked "bu ne agent'ı?" (which agent is this?).
The card heads with what waits for a decision (
_agent-card.tsx).It says how many placeholders the result leaves to fill.
pagePlaceholdersnow also reads a list item written without a paragraph, by its own words. That's how an agent's rewrite writes lists. Before, those placeholders weren't counted.A rewrite's count is read once, not on every key the page takes.
Not changed: a batch's count reads each change's text with the general placeholder pattern, also for a heading. The suggestion doesn't say which block it's in, so a heading's "[2026 Update]" would count as one there.
Related issue
Editor test findings 2026-10-25 (group A, part 2).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): 0 errors; the 6 warnings are in files this PR doesn't touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Web:
yarn testandyarn build. A pre-push review ran; its findings are the last commit. The browser check is in the next batched local test session.🤖 Generated with Claude Code