vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Stream reasoning tokens in real time in Copilot Harness (parity with Local Harness)

Open hello-sebastian opened this issue 2 weeks ago • 2 comments

Description:

In the Local Harness, the model's reasoning process is streamed token-by-token, so I can watch the agent think in real time. In the Copilot Harness, reasoning blocks are buffered and only rendered after the entire block is complete — even with Remote connection turned off.

Problem:

When the agent falls into a repetition loop (repeating the same paragraphs or reasoning until timeout), I cannot detect it while it is happening. I can only react after the whole process has been interrupted by the timeout, which wastes minutes of compute and context. The stop button works, but I have no signal that I should press it — the visible output looks normal (or empty) until the buffered block finally arrives.

Expected behavior:

Stream reasoning tokens to the UI as they are generated, the same way the Local Harness does. At minimum, show a live, growing reasoning block (even collapsed/abbreviated) so the user can:

See that reasoning is actively progressing (not stuck), Detect repetition loops early, Decide to stop the turn before the timeout fires. Acceptance criteria:

Reasoning tokens appear in the UI incrementally during generation (not only after block completion). Works with Remote connection both on and off. The existing "show completed reasoning block" behavior remains available (e.g. as a toggle or after the block finalizes).

hello-sebastian avatar Nov 14 '26 16:11 hello-sebastian

@hello-sebastian Is this issue for BYOK models? I am not able to reproduce this issue for built in models.

vijayupadya avatar Nov 18 '26 15:11 vijayupadya