Repository navigation
Conversation
Generated-by: Maka
This branch has not been deployed
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
Fixes three ordering bugs in iOS
ChatScreen's collapsible thought process (CollapsibleActivity) and live streaming preview:thinking,tools,bodies) with a single chronological activity timeline sothinking 1 → tool A → thinking 2 → tool Bandwork A → intermediate body → work B → final replyrender in their actual event order while keeping quote/copy actions intact. Late tool results update their original call entry in place rather than moving to the end.work.toolsgrows), and merges overlapping/replayed history chunks idempotently by source row and UTF-8 byte range.LivePreviewAccumulator(app/streaming.ts), tracks actual held UTF-8 byte ranges so replayed short prefixes never truncate text and full recovery slices restore missing prefixes after handoff, and prevents stale same-attempt cuts from cancelling pending handoffs. Also wiresproducts/maka/ios-shell/tests/streaming.test.mjsintoscripts/ci/run.mjs.Verification
maka-ios-shell: 82 passed (12 lib, 66 behavior including chronological y-coordinate ordering, folded work + intermediate body ordering, cross-boundary tool dedup, narrow-screen wrapping, and 4 language tests).streaming.test.mjs: 7 passed (interleaved ordering, replay prefix protection, post-handoff recovery, plus 1,365 UTF-8 slice combinations verified during review).aarch64-apple-ios --lockedcheck, TypeScripttsc --noEmit, CItooling-tests, ASF license headers, migration lock, 12-locale i18n, Biome,cargo fmt --check, andgit diff --check origin/main..HEADall passed.Known test gaps
Screenshots
Captured on iPhone 18 Pro Simulator (iOS 27.2, integrated preview build):