Skip to content

Add prompt_progress stream chunk + prefill progress on the status line - #841

Closed
jonathanKingston wants to merge 1 commit into
mainfrom
claude/surface-percentages-ui-ug0792
Closed

jonathanKingston wants to merge 1 commit into
mainfrom
claude/surface-percentages-ui-ug0792

Conversation

@jonathanKingston

Copy link
Copy Markdown
Collaborator

Recovered from the previously-unmerged branch claude/surface-percentages-ui-ug0792 (no PR had been opened), rebased onto current main.

What

Adds a prompt_progress stream chunk and surfaces prefill progress on the status line: a prompt_progress member on ProviderStreamChunk, forwarding through the agent run loop, a renderer case 'prompt_progress', and a tested promptProgressLabel() helper.

Notes

  • Opened as draft — this is intentionally dormant scaffolding: no provider emits prompt_progress yet, so nothing renders until an emitter is added (e.g. an LM Studio prefill producer). Adopt as groundwork or close until the producer exists.
  • Rebase adapted the branch's original StreamChunk addition to main's refactor by placing the member on ProviderStreamChunk (its correct home, matching how text/tool_call/reasoning are forwarded). npm run typecheck (node+web) passes clean.

🤖 Generated with Claude Code


Generated by Claude Code

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

E2E screenshot updates

Refreshed (1)

Clearly-different shots re-rendered by the CI e2e run and committed:

Ignored as render noise (2)

These re-rendered below the variance threshold (font hinting / anti-alias wobble) and were not committed. To accept them anyway, add the update-screenshots label or commit the rendered PNGs by hand:

  • ask-user-dialog.png — 0 px (0.0000%)
  • open-in-editor-open.png — 0 px (0.0000%)

These PNGs live under tests/e2e/screenshots/ for human visual review; CI asserts DOM structure, not pixel diffs.

@jonathanKingston
jonathanKingston force-pushed the claude/surface-percentages-ui-ug0792 branch from 438ca23 to 19c6b38 Compare July 14, 2026 11:18
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Merge conflict needs a human

main advanced and screenshot conflicts were resolved automatically, but these non-screenshot files conflict and can't be auto-merged. Resolve them by hand (merge or rebase main):

  • src/renderer/controller/agent.ts

@jonathanKingston jonathanKingston added area:ui Renderer UI, interaction, and visual behavior enhancement New feature or request priority:p3 Normal-priority backlog work labels Jul 16, 2026 — with Cursor
Surfaces prompt-processing (prefill / time-to-first-token) progress on the
live agent status line. Adds a `prompt_progress` StreamChunk carrying an
optional 0–1 `fraction`, forwards it through the agent loop and the
agent:chunk IPC, and renders "Processing prompt… N%" (or an indeterminate
"Processing prompt…" when no fraction is reported) on the current step.

The chunk is provider-agnostic: any provider that can report prefill
progress (e.g. a future LM Studio native-API provider via its
prompt_processing.progress events) lights up the indicator. Cloud
OpenAI/Anthropic don't expose this, so they simply never emit the chunk.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4AStYh3tVN4kxG9o4aoc4
@jonathanKingston
jonathanKingston force-pushed the claude/surface-percentages-ui-ug0792 branch from 6eede3c to dbe2f90 Compare July 19, 2026 21:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR health — leaving draft

CI is CLEAN, but the PR body marks this as intentional dormant scaffolding (prompt_progress with no provider emitter yet). Not marking ready / not enabling auto-merge until a producer lands or you want the groundwork merged alone.

Open in Web View Automation 

Sent by Cursor Automation: Check in with agent-pane prs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ui Renderer UI, interaction, and visual behavior enhancement New feature or request priority:p3 Normal-priority backlog work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants