Repository navigation
OPE-28: Refactor message store and domain markdown preparation - #18
Merged
Merged
Conversation
Replace MessageLiveStore with MessageSync/InMemoryMessageStore behind MessageRepository, add DisplayMessagePipeline and MessageContentPreparer so Session Chat observes display-ready rows instead of enriching in the UI timeline. Co-authored-by: Cursor <[email protected]>
Emit empty message lists after SSE removal so Session Chat can reach the empty timeline state, and mark MessageSyncTests helper as @mainactor for test compilation. Co-authored-by: Cursor <[email protected]>
…nfo. Move abort/stop into SessionChatComposer, replace SessionChatStatusBar with SessionInfo for session id, SSE connection, work status, and context usage, and slim the ViewModel merge to three feature regions on both platforms. Co-authored-by: Cursor <[email protected]>
Persist composer model/variant per server, worktree, and session; restore cached selection before history hints. Move Android cache orchestration into SessionChatComposer and document ViewModel facade guardrails so regional ownership stays explicit. Co-authored-by: Cursor <[email protected]>
Move iOS cache orchestration into SessionChatComposer, add stale-cache notices on both platforms, and cover re-bind, fallback, and clear-data paths with tests and docs updates. Co-authored-by: Cursor <[email protected]>
Apply cached model selection on empty/error timelines, route MessageSync fetch failures through domain error mapping, and reset Session Chat UI state immediately on bind to avoid mixed-session flashes. Co-authored-by: Cursor <[email protected]>
OPE-28 Fix Bugbot findings for session bind, model cache, and message errors
Address three Bugbot findings from PR #18 review on the message-store refactor branch. Shipped:
PR: ivanfenenko/opencode-mobile#18 Docs: |
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
MessageLiveStorewithMessageSync+InMemoryMessageStorebehindMessageRepositoryon both platforms.MessageContentPreparerandDisplayMessagePipelineso Session Chat observesDisplayMessagerows (message + optional rendered markdown) instead of parsing in the UI timeline.RenderedMarkdownMapperfrom the UI layer.docs/features/message-store/.Test plan
./gradlew :app:assembleDebugMessageContentPreparerTest,MessageSyncTest,SessionChatViewModelTest(2 flaky timing cases in full suite; pass in isolation)xcodebuild build -scheme "OpenCode Mobile" -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NOOpenCode MobileTestson simulatorLinear: OPE-28