Skip to content

feature/parts based message streaming - #7

Merged
ivanfenenko merged 13 commits into
mainfrom
feature/parts-based-message-streaming
Jun 8, 2026
Merged

ivanfenenko merged 13 commits into
mainfrom
feature/parts-based-message-streaming

Conversation

@ivanfenenko

Copy link
Copy Markdown
Collaborator
  • Add session chat status bar
  • Promote session status bar component
  • Adjust session status bar sizing
  • Use status tokens for connection dot
  • Use icon tokens for context ring
  • Add context usage status thresholds
  • Use context usage presets in gallery
  • Update session status bar docs
  • Implement parts-based message model with incremental SSE updates

- Add MessagePart domain model (TextPart, ToolPart) on both platforms
- Expand DTOs to parse all server part types (text, reasoning, tool, step-*,
  agent, subtask, snapshot, patch, compaction, retry)
- Add rawProperties to OpencodeEvent/EventDomainAdapter for incremental processing
- Rewrite DefaultMessageLiveStore: incremental cache with SSE event handlers
  instead of full REST reload on every event
- Map tool status to friendly labels (⌛ pending, ⏳ running, ✓ completed, ✕ error)
- Add isStreaming flag to SessionChatRow/SessionChatMessageItem
- Update CONTEXT.md glossary with message part terminology

Tests:
- 9 new iOS DefaultMessageLiveStore tests (cache, handlers, reconnection)
- 21 new iOS adapter tests (tool states, parsing, flattened text)
- 3 new iOS ViewModel tests (isStreaming propagation)
- 2 new Android live store tests (incremental with raw properties)
- 17 new Android adapter tests (tool states, parsing, flattened text)
- 3 new Android ViewModel tests (isStreaming propagation)
- Update existing tests for new architecture (77 pass on each platform)
…essage-streaming

# Conflicts:
#	android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/SessionChatViewModel.kt
#	android/app/src/test/java/dev/opencode/mobile/ui/sessionchat/SessionChatViewModelTest.kt
#	docs/features/session-chat/decisions.md
#	ios/OpenCode Mobile/OpenCode Mobile/SessionChatViewModel.swift
#	ios/OpenCode Mobile/OpenCode MobileTests/SessionChatViewModelTests.swift
@ivanfenenko
ivanfenenko merged commit abe22c9 into main Jun 8, 2026
@ivanfenenko
ivanfenenko deleted the feature/parts-based-message-streaming branch October 26, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant