Skip to content

Start a new chat's engine on the composer's first keystroke (hides ~2.2 s of the first reply) #851

Done

Description

@SSFSKIM

What

Start a new chat's engine when the person types the first key in its composer, not when they send. The owner's call of 2026-11-23: build it after word cut M4.

Why (measured 2026-11-23, sessions on the build at b42c0f7)

From spawn to the first drawn row takes about 4–5 s:

Step Time
Record created → spawn 0.13–0.23 s
Engine boot 1.2–1.4 s
SessionStart hooks 0.5–0.7 s
Initialize answered at about 2.0 s
First-prompt hold 0.6 s
Turn assembly 0.7 s
Request written at about 3.5 s
Model to message_start 0.6–1.4 s

MAWS's own calls take 1–120 ms. Starting at the first keystroke hides the boot, the hooks and the initialize (about 2.2 s), which leaves Send → first row at about 2–2.9 s. The engine's own steps and the model's first token are not MAWS's to change (D-1). The diagnosis scripts are on the owner's Mac, not in the repository.

Done when

  • Typing into a fresh New chat composer starts its session's engine, with the launch spec as it stands at that moment: folder, model, mode, profile.
  • Sending reuses the running engine.
  • A change to the launch spec before Send (another folder, model or mode) relaunches it, or applies it through the control protocol where one exists.
  • An abandoned draft's engine is reaped like any idle session.
  • The prewarmed spare pool (charter §P1, claim_session) stays deferred.
  • The first-row time is measured before and after on the same machine.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  2. added
    status:in-review
    and removed
    status:in-progress
    on Nov 24, 2026
  3. added a commit that references this issue on Nov 24, 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

    enhancementpriority:P2status:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions