Skip to content

Hide stale printer status after a print session ends - #365

Merged
bliatun-code merged 2 commits into
mainfrom
codex/expire-stale-print-telemetry
Dec 4, 2026
Merged

bliatun-code merged 2 commits into
mainfrom
codex/expire-stale-print-telemetry

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Printer status after a completed job

A temperature-only MQTT report can refresh the printer connection hours after a print ends while carrying forward its PREPARE state, progress and remaining time. Printers and Dashboard could therefore show a completed job as still in progress, even after restarting the app.

When the printer has no open live usage session, the shared display read compares each job field's observation time with the last session's finish time. This keeps fresh temperatures visible, drops obsolete job details and preserves running or paused states across partial reports. The change only affects the display copy.

Verification

  • Replayed a completed job with PREPARE, 92% progress and two minutes remaining, followed by a temperature-only report. Checked both refresh and reopening the SQLite database.
  • Tested running and paused jobs across unrelated MQTT reports, session rollover and a late progress report after a terminal state.
  • Rendered both printer cards and checked their state, temperature and progress display.
  • npm run verify passed locally on macOS.

@bliatun-code
bliatun-code merged commit 1d2abc3 into main Dec 4, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/expire-stale-print-telemetry branch December 4, 2026 01:02
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.

1 participant