Repository navigation
fix(desktop,mobile): fold every settled reply onto its answer again - #1632
Merged
Merged
Conversation
#1627 put a ceiling on the fold — a reply stayed whole once it would hide more than two prose blocks or 800 characters — so a completed reply that narrated its work between calls came back as five paragraphs with its tool rows interleaved, the shape the `detailed` display level exists for. The fold is not a judgement to make reply by reply: a settled reply is its answer plus the work that produced it, and that work belongs behind one row the reader can open, however much of it there is. A reader who wants the work in place picks `detailed` once, in settings. Streaming is unchanged and was never part of the ceiling: while the reply is being written nothing is folded away. Drops FOLD_PROSE_BLOCKS / FOLD_PROSE_CHARS from both clients and the tests that pinned them; the tests now pin the opposite — a reply narrating ten notes, or thousands of characters of them, still folds onto its last prose. Both clients keep the same rule and the same cases.
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.
A settled reply should read as its answer plus the work that produced it, with that work behind one row the reader can open. #1627 put a ceiling on that fold — a reply stayed whole once folding it would hide more than two prose blocks or 800 characters — so a completed reply that narrated its work between calls came back as five paragraphs with its tool rows interleaved. This removes the ceiling from both clients, so every settled reply folds back onto its last prose. Streaming is untouched: nothing is folded while the reply is still being written.
Commits
fix(desktop,mobile): fold every settled reply onto its answer again — dropFOLD_PROSE_BLOCKS/FOLD_PROSE_CHARSfrom the desktop rule and the phone copy, and flip the tests that pinned them to pin the opposite (ten narrated notes, thousands of characters, a wall of tool rows all still fold).Verification
Run at
11d99c4b5on a clean tracked tree (origin/dev-huichentip), Node 26.3.0:npx tsc --noEmit(desktop) → cleannpx eslint src/features/agent/replyBlocks.ts src/features/agent/replyBlocks.test.ts(desktop) → cleannpx vitest run src/features/agent/replyBlocks.test.ts(desktop) → 1 file / 22 tests passednpx tsc --noEmit(mobile) → cleannpx eslint src/features/chat/messages/ReplyBlocks.tsx src/features/chat/__tests__/replyBlocks.test.ts(mobile) → cleannpx jest src/features/chat/__tests__/replyBlocks.test.ts(mobile) → 1 suite / 11 tests passedUser-visible changes
detaileddisplay level in settings, where nothing is folded.687164b29(restores the pre-fix(desktop,mobile): keep a long reply whole instead of folding its notes away #1627 behaviour and removes the ceiling constants).Notes
This intentionally reverts the ceiling introduced by #1627; the reasoning that motivated that ceiling is recorded there. Nothing changes in data formats, defaults, or settings.