Skip to content

Fix progress display#580

Merged
baijumeswani merged 4 commits intomainfrom
bhamehta/fix-progress-display
Apr 3, 2026
Merged

Fix progress display#580
baijumeswani merged 4 commits intomainfrom
bhamehta/fix-progress-display

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

Improve EP progress download printing in samples

bmehta001 and others added 2 commits April 2, 2026 18:53
The previous logic printed \n when percent >= 100, which caused
duplicate lines when the core sends multiple 100% callbacks, and
double newlines between EPs. Instead, print \n only when a new EP
name appears, and a final \n after the call completes. This is
simpler and handles the case where an EP fails before reaching 100%.

Updated in both samples (JS, C#) and all 4 SDK READMEs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 00:01
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment Apr 3, 2026 1:26am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts how execution provider (EP) download progress is printed in SDK READMEs and sample apps, aiming to produce cleaner per-EP progress output (single trailing newline) and nicer EP list formatting in samples.

Changes:

  • Move newline printing for per-EP download progress out of the progress callback and into a single final print after the download completes (Rust/Python/JS/C# READMEs, JS/C# samples).
  • Improve EP list display in samples by adding aligned columns (Name / Registered) and padding EP names for consistent output.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/rust/README.md Print a single newline after EP download progress completes (avoids repeated newlines).
sdk/python/README.md Same progress-printing adjustment as Rust (single newline at end).
sdk/js/README.md Same progress-printing adjustment (single newline at end).
sdk/cs/README.md Same progress-printing adjustment (single newline at end).
samples/js/native-chat-completions/app.js Add aligned EP table output and keep progress output aligned; compute shared column width.
samples/cs/native-chat-completions/Program.cs Add aligned EP table output and keep progress output aligned; compute shared column width.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Avoids empty-array crash when no EPs are discovered.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baijumeswani baijumeswani merged commit 63bc479 into main Apr 3, 2026
49 of 50 checks passed
@baijumeswani baijumeswani deleted the bhamehta/fix-progress-display branch April 3, 2026 02:29
prathikr pushed a commit that referenced this pull request Apr 3, 2026
Improve EP progress download printing in samples

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
baijumeswani pushed a commit that referenced this pull request Apr 3, 2026
Improve EP progress download printing in samples

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants