Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Problem
Maka currently has two owners for streamed text presentation:
StreamingAssistantBubbleandDeepThinkingpace accumulated text through Maka's customuseSmoothStreamContent.- Astryx renders the resulting Markdown, but its own streaming path is intentionally disabled.
- Maka therefore retains extra frame scheduling, catch-up state, terminal handoff logic, reduced-motion handling, helpers, and tests around behavior Astryx already owns.
This split increases work and lifecycle complexity without a demonstrated product requirement for a separate Maka pacing layer. It also prevents Astryx from owning its streaming Markdown pipeline end to end.
Issue #1565 assigned stream pacing to Maka in Slice 9. This issue supersedes only that ownership decision; runtime events, message identity, scroll policy, and product trust boundaries remain Maka-owned.
Desired outcome
Astryx is the single owner of progressive text rendering for both assistant responses and reasoning:
- Maka passes accumulated text and the current streaming state to Astryx.
- Assistant responses and reasoning use the same Astryx-owned streaming model.
- Terminal handoff renders the complete final text once, without an empty frame, duplicate response, or missing tail.
- Maka's custom smoothing implementation, obsolete state, comments, and dedicated tests are deleted.
- No feature flag, fallback path, or parallel implementation remains.
Scope
- Enable Astryx streaming in the shared Markdown boundary.
- Migrate assistant-response streaming from
useSmoothStreamContent. - Migrate reasoning streaming from
useSmoothStreamContent. - Align the existing settled callback with Astryx's terminal render.
- Delete the retired smoother and code that exists only to support it.
- Add the narrowest behavioral coverage for streaming completion.
Acceptance criteria
- Assistant responses and reasoning no longer import or call Maka's custom stream smoother.
- Astryx receives the real streaming state for both paths.
- On completion, the final accumulated text is rendered in full and exactly once.
- Streaming-to-completed handoff does not show an empty frame or lose the final tail.
- The retired smoother, obsolete helpers, tests, and comments are removed.
- Existing runtime-event, message-identity, scroll, Markdown URL-safety, and product trust boundaries remain unchanged.
Alternatives considered
- Keep Maka pacing and use Astryx only as a Markdown renderer: preserves duplicate ownership and the custom lifecycle.
- Add a switch between the two implementations: adds state and test combinations without a current product need.
- Build a performance baseline framework first: disproportionate to this ownership cleanup; profile separately only if the simplified path still shows a reproducible problem.
Non-goals
- Proving or quantifying overall concurrent-session CPU/GPU improvement; profile separately if a reproducible performance problem remains after this ownership cleanup.
- Adding a performance benchmark or telemetry framework.
- Adding, expanding, or redesigning secret redaction, including cross-delta redaction.
- Changing the existing Markdown URL policy or other product trust boundaries.
- Session-list refresh optimization.
- Upstream Astryx changes.
- Streaming typography or visual redesign.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
Astro-Han commentedon Aug 3, 2026
I’m taking this. I’ll keep it to one ownership cut: move assistant-response and reasoning streaming to Astryx, remove Maka’s custom smoother, and add narrow completion-handoff coverage. I’ll record one bounded before/after multi-session observation without introducing a benchmark framework. Redaction changes and unrelated performance hypotheses remain out of scope.