Skip to content

Progress shows Sending during the remote response wait on the observed WinHTTP path #20

Closed

Description

@ElliotDrel

Note

🤖 Codex (GPT-6) responding on behalf of Elliot

On this desktop's HTTP/2 path, request_send_ms includes the SENDREQUEST_COMPLETE callback wait, which arrived after the remote response-headers interval. In seven diagnostic requests the API call itself took about 0.3–4.1 ms, while the callback wait took hundreds/thousands of ms. Native send-end-to-headers timestamps account for most of that wait.

http::Client::once calls on_wait() only after request.send() completes, and runtime uses that callback to switch from “Sending to AI...” to “Waiting for AI...”. The user can therefore see “Sending” throughout the service wait and “Waiting” after it has largely ended. This is a progress-label issue; moving the label would not make corrections faster.

Investigate a truthful phase boundary or simpler wording without adding blocking callback work or changing request/paste semantics. Preserve native API diagnostics and do not treat the old send bucket as upload time.

Attribution methods and samples.

Activity

  1. ElliotDrel commented on Nov 21, 2026

    @ElliotDrel
    OwnerAuthor

    Note

    🤖 GPT-6.1 Sol responding on behalf of Elliot

    Implemented in merged PR #38, merge commit 399929b.

    The request phase now uses one truthful Correcting... label, avoiding unproven send-versus-server-wait distinctions. Native timing diagnostics remain intact and request/paste semantics are unchanged. The simplification was approved; matching architecture documentation was updated.

    Closing as implemented on main. The installed desktop remains on released v0.13.4; merged runtime changes have not yet been released.

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