Repository navigation
OPE-82 / OPE-88 / OPE-92: Stream deltas, TextMate highlighting, structure-first code blocks - #80
Conversation
Apply incremental SSE text deltas on both platforms, coalesce display publishes at a flat cadence, and skip heavy markdown while large replies are still streaming. Co-authored-by: Cursor <[email protected]>
… pill Paint session history before TextMate enrich so opens stay responsive, and show the Android scroll-to-end pill as soon as the bottom anchor leaves the viewport. Co-authored-by: Cursor <[email protected]>
Cache prepared markdown across leave/reopen and avoid MainActor stalls from layoutIfNeeded and per-row enrich publishes so big histories open and scroll like Android without reprinting messages. Co-authored-by: Cursor <[email protected]>
Ship generation-gated prep modes, two-batch enrichment, bounded event staging and iOS warm cache on both platforms, with verification and docs closeout. Co-authored-by: Cursor <[email protected]>
Ship dual-lane plain-first decoration, stable block IDs, TimelineFrame projection, and declared-ID hosts on both platforms; close the hardening plan with soak docs and lock Phase 7b as coverage-only follow-up (OPE-86/87). Co-authored-by: Cursor <[email protected]>
Separate content vs layout timeline applies, coalesce Android scroll-time updates, reuse unchanged rows, and pin iOS lists with absolute bottom offset plus unanimated self-sizing so opens and scroll-to-end land cleanly. Co-authored-by: Cursor <[email protected]>
Default TextMate off behind a Settings toggle, fix Final upgrade after streaming placeholders, and close ```markdown fences on the first bare fence like CommonMark/web. Co-authored-by: Cursor <[email protected]>
Adopt ConnectionEpoch on reconnect so MessageSync does not latch Recovering, and debounce Android SSE stop across photo/document pickers. Co-authored-by: Cursor <[email protected]>
Keep plain/fallback publication responsive by moving priority, coalescing, deadlines, trim, and queue metrics into a shared scheduler driven by each platform owner. Co-authored-by: Cursor <[email protected]>
Compile immutable grammar/rule programs, reuse prepared UTF-8 line buffers, and coordinate weighted lease-safe grammar/rule/regex caches so Phase 5 can add incremental unchanged-prefix reuse on a stable hot path. Co-authored-by: Cursor <[email protected]>
Reuse unchanged-prefix line checkpoints with one-line backup and suffix convergence so streaming revisions avoid full reparse while remaining equal to full-reparse semantic spans. Co-authored-by: Cursor <[email protected]>
Default TextMate on behind the top-ten language allowlist, wire memory and thermal pressure into the engine, and record provisional host calibration so Phases 1–6 can close without blocking on physical Tier B hardware. Co-authored-by: Cursor <[email protected]>
Let Developer Tools opt out of promoted languages or force-enable packaged ones, and show Fast/OK/Slow plus chars/ms throughput in the logbook. Top bar titles use theme tokens so they stay readable in dark mode. Co-authored-by: Cursor <[email protected]>
Gate per-search metrics by default, short-circuit earliest rule matches, reuse Joni matchers, and scan with a two-pass findEarliest path for physical latency work. Co-authored-by: Cursor <[email protected]>
Publish structured code-block chrome for streaming and history without leaving raw markdown on screen; TextMate upgrades spans asynchronously. Fix commonMain @volatile so the iOS KMP framework builds. Co-authored-by: Cursor <[email protected]>
Tolerate Swift-omitted nil language in HighlightRequest decode so admit cannot abort the process, and bump renderTreeVersion on attach so timeline equality notices colored documents after format-first scaffolds. Co-authored-by: Cursor <[email protected]>
Own keyboard overlap padding in Session Chat so the UIKit timeline host and UITextView composer do not leave the input under the software keyboard. Co-authored-by: Cursor <[email protected]>
Resign the composer first responder on drag because it sits outside the UICollectionView host, where keyboardDismissMode alone is not enough. Co-authored-by: Cursor <[email protected]>
OPE-92 Structure-first code blocks while streaming
Streaming assistant replies briefly show raw markdown (literal fences) until decoration finishes, then jump into real code-block chrome. Publish a structure-only MarkdownDocument on the text-lane coalesce so fences render as monospace code blocks immediately; semantic/TextMate colors upgrade in place afterward. Remaining:
OPE-82 Stream assistant text from message.part.delta
OPE-82: Wire SSE Remaining:
Acceptance
Docs
Branch
OPE-88 TextMate Phase 3 scheduling and backpressure
Add TextMate engine priority scheduling, latest-wins coalescing, work limits, deadlines, trim handling, and queue/cancellation metrics so plain publication cannot stall behind a blocked highlighter. Remaining:
Docs: |
This comment has been minimized.
This comment has been minimized.
Force-enable unpromoted languages in TextMate coverage suites, restore iOS empty-parts timeline fallback, and align structure-first / logbook expectations. Co-authored-by: Cursor <[email protected]>
…n targets Structure-first frames were clearing awaitingTextMateUpgrade on sibling rows, and Android decoration targeting ignored tool-boundary runs. Sync docs for Phase 6 default-on format-always. Co-authored-by: Cursor <[email protected]>
Summary
Combines the previous stacked PRs (#78, #79, #80) into one PR targeting
main.message.part.deltainto Android and iOS MessageSync so assistant text streams live during replies; harden the assistant message pipeline and Session Chat streaming UI.Docs
docs/features/message-store/docs/features/session-chat/docs/features/message-repository/docs/features/foreground-event-stream/Linear
Supersedes
fix/ope-82-message-part-delta→main)feature/ope-88-textmate-phase-3-scheduling→ OPE-82 Stream message.part.delta and harden Session Chat display #78)Test plan