Repository navigation
fix(content): cross out a step the agent took in Next's path - #1566
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Oct 27, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups.
What I checked:
- What the person sees. A step the agent took (
passed,next-step.ts:353-357) now reads, muted, as "Fix open rules· yours in the Rules tab". The Length step reads the same way, as "Shorten to your Length· yours in the Rules tab".- The name is struck in its own span (
_next-step.tsx:391). - The note is a sibling, not a child, so the strike doesn't reach it.
no-underlinecouldn't cancel it from inside anyway. - The dot keeps its number on the muted fill (
:386,PATH_DOT.passed), and the header's bars still show the step light. - A done step stays different: its whole line is struck, and its dot is filled with a check (
:373,:386). - I find it clear. The struck name says Next has moved past the step. The note, left unstruck, says what's still the person's, which also explains the "If you see…" line that still offers Fix open rules. The numbered dot keeps it from reading as done. That answers round 34's concern (step 3 shown as done while rules are open) and the live test's (a step left unstruck read as still open).
- The name is struck in its own span (
- Screen readers. The visible note is still
aria-hidden, and thesr-onlystate is still outside the struck span (:399). A screen reader hears "Fix open rules · taken by Content Agent, what's left is yours in the Rules tab", as before. A CSS strike isn't announced. Wrapping the name in a span doesn't change the line's text, sopage.test.tsx:6585("Fix open rules· yours in the Rules tab") still holds. - The test. It fails without the change: on main the name is a bare text node, so no span's text is exactly "Fix open rules". It also checks that neither the note, the name's wrapper nor the row is struck, which guards against striking the whole line as a done step is. I read it but didn't run it.
- Merge.
- One commit on 3b650fb (main).
git merge-treewith main gives the head's tree (e659b7f4). - It shares no files with #1560, and the two merge cleanly (tree 438cdb18). #1560 changes when a pass holds (
thirdStepPasses), not how the path draws one. With both, a Fix open rules pass that holds while the page comes within its Length still shows struck.
- One commit on 3b650fb (main).
- Before the API deploy. Web only: no strings, no API, no migration.
Follow-up:
- Pin the two things the PR keeps (
_next-step.test.tsx:144-167).- The test checks
step.textContentfor "yours in the Rules tab". The visible note and thesr-onlytext both contain that, so dropping either still passes. Nothing checks the dot either. - Fix: add
expect(step.querySelector('.sr-only')!.textContent).toBe(" · taken by Content Agent, what's left is yours in the Rules tab");expect(step.querySelector('span[aria-hidden]')!.textContent).toBe('3').
- The test checks
This was referenced Oct 27, 2026
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
From the user's live test on a draft: Next now moves past step 3 once the agent took it (#1550, #1556), and step 4 shows. But in the basket's path, step 3 wasn't crossed out as a done step is, so it read as still open.
A passed step's name is now crossed out, like a done one. Its note ("yours in the Rules tab", the rule left for the person) isn't crossed out, since that part is still the person's. The dot keeps its number: a passed step isn't done.
Related issue
Follow-up to #1556 (the path's
passedstate).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
cd web && yarn vitest run 'src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.test.tsx'. The new case fails without the change.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn format,yarn lint(0 errors),yarn typecheck,yarn testandyarn buildinweb/. The full test run was on a heavily loaded machine: 40 tests in 17 files timed out there, all outside this change. Each of those files passes when run on its own, except the content editor'spage.test.tsx(it renders this basket), where 252 of 257 pass alone and the five that timed out pass when run by name.No screenshot yet: the Mac's memory was full. One follows from the next local test session.
🤖 Generated with Claude Code