Skip to content

fix(api): clean up bad JSON noise and fix progress bar going backwards#165

Open
iammojogo-sudo wants to merge 12 commits into
lightningpixel:devfrom
iammojogo-sudo:fix/progress-logging
Open

fix(api): clean up bad JSON noise and fix progress bar going backwards#165
iammojogo-sudo wants to merge 12 commits into
lightningpixel:devfrom
iammojogo-sudo:fix/progress-logging

Conversation

@iammojogo-sudo
Copy link
Copy Markdown

Two small backend fixes.

First, when an extension's generator.py prints anything to stdout — debug
lines, tqdm bars, torch loading messages — it was showing up in the logs
as "[model] bad JSON: " on every single one. The lines weren't
malformed, they were just plain text that isn't part of the JSON protocol.
They now get forwarded to stderr as normal extension output instead.

Second, the progress bar could visibly snap backwards during generation.
The model loading phase slowly walks progress up to around 7%, but then
the extension starts its own generation and reports 0% first, resetting it.
Added a simple guard so progress can only move forward, never back.

@lightningpixel lightningpixel changed the base branch from main to dev June 5, 2026 07:03
@lightningpixel
Copy link
Copy Markdown
Owner

You’ll need to pull the dev branch and resolve the conflicts.
Then send me the PR, and it should be good

@lightningpixel lightningpixel self-requested a review June 5, 2026 07:12
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.

4 participants