Conversation
…eation to Data API - Add temporary Redux dispatches in StreamingService to keep store in sync with cache-based streaming updates (blocks and messages) - Replace Dexie db.topics.add with dataApiService.post for topic creation in Inputbar, using server-returned data - Add mapLegacyTopicToDto helper in AssistantService for v2 migration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…l topics - Create DataApiMessageDataSource that fetches messages via GET /topics/:topicId/messages and converts shared format back to renderer Message + MessageBlock format - Update DbService.fetchMessages to route normal topics through the Data API, keeping agent sessions on the existing path - Handle NOT_FOUND gracefully for pre-migration topics - Map shared MessageStats to renderer usage/metrics fields Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0xfullex
approved these changes
Mar 8, 2026
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.
What this PR does
Before this PR:
db.topics.add) directly, which is being removed in v2.After this PR:
dataApiService.post('/topics', ...)with the server-returned data, aligning with the v2 Data API architecture.mapLegacyTopicToDtohelper bridges the legacy Topic type to CreateTopicDto during migration.Why we need it and why it was done in this way
The following tradeoffs were made:
TODO: temp fix) and will be removed after the full message refactoring is complete. This is a pragmatic bridge to keep the UI working during the v2 migration.The following alternatives were considered:
Breaking changes
None
Special notes for your reviewer
The Redux dispatches in StreamingService are intentionally temporary. They exist to bridge the gap between the new cache-based streaming architecture and the existing Redux-dependent UI components.
Checklist
Release note