Skip to content

Felt speed 1/10: cap streaming content redraws without delaying input #50

Open

Description

@n0rpan

Parent: #43, owner O-383. Milestone v0.2.2, label after-0.2.1. No implementation or merge in v0.2.1. This is a self-contained task for an assigned DeepSeek-on-Go helper; first read AGENTS.md and recheck current main. Verification below is source-only at 69a81515ad3ce39dbf048112fd0cfad476f4b73f: no build, benchmark, provider call or hardware run was performed. Claimed gains remain hypotheses unless a separate immutable measurement receipt is supplied.

Verified on main

oxa/oxa-interactive/src/app.rs:423 polls with zero delay while dirty; worker_msg marks dirty at driver.rs:730. oxa/oxa-interactive/src/driver.rs:171 compares cached blocks and fully renders a changed block. oxa/oxa-tui/src/markdown.rs:115 invalidates the Markdown cache when text changes. The reviewer’s O(n²) cost and CPU savings are inferred, not measured.

Bounded spec

Cap streaming content redraws near 30 Hz using the existing loop/clock. Continue draining worker messages and input promptly; the first editable frame, key echo, dialogs, cancellation, resize and final completed reply must not wait behind a content throttle. Preserve fullscreen/regular behavior and final rendered bytes. Incremental paragraph/fence rendering is a later design, not part of this patch.

Acceptance

Add deterministic fake-clock coverage for batching and immediate first/final/input frames; retain existing terminal snapshots. In hosted CI drive the real CLI/PTY with 100 deltas/s and a 300-line fenced reply, verify all final text and key handling, and compare UI-thread CPU plus key-to-echo p95 against the parent. Use #43 scorecard row6 (proposed <=5% of one core, <=30ms p95) as a baseline target, not an unmeasured guarantee. Report repaint count, RSS and thread changes; no render-frequency win that loses input or terminal events.

Execution boundary: keep the patch small and consumed by existing callers; no new daemon/framework, credentials, real provider/sign-in calls, security/test weakening or force-push. Tests/builds run in GitHub CI with synthetic loopback fixtures and isolated HOME/XDG, CARGO_BUILD_JOBS=3. No local builds/tests. Preserve required checks; draft until own checks pass. Hardware work requires the owner’s explicit handoff. Do not merge. Report exact source, test result, before/after measurement and limitations.

Activity

  1. n0rpan commented on Nov 19, 2026

    @n0rpan
    ContributorAuthor

    Triage 2026-11-19: this issue is now tracked in #165 (Cluster: Felt speed: redraw cap, startup, scorecard, priority P2), planned PR 1: "Redraw and startup". It will be fixed there together with its related issues, not one by one.

  2. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions