Repository navigation
fix(chat): 归档恢复可用且不毁历史,单页渲染与图片解码封顶 - #12
Merged
Merged
Conversation
Follow-ups to the session-loss and long-session fixes: - Restoring archived messages is now a menu action with a count, not dead code and not an automatic reload. It slots rows back by created_at instead of appending them after everything typed since, and it retires only the rows it restored — the session-wide archive wipe was deleting the pre-edit history of messages that are still live. - Deleting from an assistant reply anchors on the visible user bubble, including an image-only prompt. Skipping it because its text is empty cut the previous turn as well. - The "load older" fallback and the split-turn prefix share the cold-open row cap. One tap no longer materialises every earlier row, and one huge tool turn can no longer undo the render window. - Chat image thumbnails, the fullscreen preview and the composer chip decode through the display-size ceiling the markdown renderer already uses. The OOM was per-bitmap, not per-row.
aapt merges string resources through a parser that treats a bare ' as a quote delimiter; the English and French restore body used chat's / l'archive verbatim and mergeReleaseResources died with an NPE.
restorableCount was declared after the LaunchedEffect that assigns it; delegated properties must be declared before use.
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.
做了什么
PR11 的后续。三条:
测试
没做的