Repository navigation
fix(mobile): a bodyless thinking row is a label, not a disclosure - #864
Merged
Merged
Conversation
On a lean feed the reasoning row carries no body at all — the trim removes every
reasoning delta and the row is a status ("思考中" / "已思考"), which is the point.
It still rendered the chevron and stayed tappable, so tapping it expanded an
empty box: the row promised content that can never arrive.
The disclosure affordance is now gated on having something to disclose. A row
with a body keeps the chevron and toggles exactly as before; a bodyless row is a
plain view with no chevron and no press handler.
`opened` and `expanded` are deliberately not conflated: `opened` is the layout (a
row inside a folded run sits on the open rail) while `expanded` is the reader's
own tap, and only the second one is a disclosure.
The render scenarios asserted the old behaviour ("a lean reasoning row must have
no body" after tapping it), so they now assert the row is not a button at all —
which is also what a phone was showing.
huichen
enabled auto-merge (squash)
September 26, 2026 03:13
Collaborator
Author
Render verification (all five scenarios, real UI in headless Chrome)Ran the five lean/full render scenarios against this branch (worktree
Falsified: forcing Main tree checked afterwards: clean, no dangling symlinks, no stray dev server/Chrome. |
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.
What a phone showed
Tap 已思考 on a lean feed and it expanded to an empty box. On a real device that reads as a broken row.
The lean trim removes every reasoning delta by design, so the row is a status ("思考中" / "已思考") and nothing more. It still rendered the chevron and stayed tappable, so the affordance promised content that can never arrive.
The change
The disclosure is gated on having something to disclose:
openedandexpandedare deliberately kept apart:openedis the layout (a row inside a folded run sits on the open rail),expandedis the reader's own tap. Only the second is a disclosure, and conflating them broke the folded-run layout when I first tried it (caught by an existing test).Verification
scenarios.jsonparses and the scenarios are re-run below.npx jest --runInBand— 2063 passed, exits cleanly (that matters: a leaked retry timer hangs the CI job rather than failing it, see fix(remote): stop reading a trimmed feed as a broken one #863);tsc --noEmit,eslintclean.