Skip to content

Offer the display update as soon as the display is behind - #140

Merged
mLampir merged 2 commits into
mainfrom
claude/project-thread-5nanib
Oct 23, 2026
Merged

mLampir merged 2 commits into
mainfrom
claude/project-thread-5nanib

Conversation

@mLampir

@mLampir mLampir commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Requested by Michael · project thread

The Pi looked for a release a minute after it started and then every six hours. The app only showed the display update once the Pi had found one, so a release published in between stayed hidden for hours. That's what happened with v1.0.1: the Pi on v1.0.0 last looked about two hours before it was published.

Two changes:

  • App (Michael's idea): when the display's version is below the app's own, the app shows the update button and the dot on More right away, as "Version {app version} ist da". Pressing it makes the Pi look again (start() already did that) and install the newest release up to the app's version. There is one edge case: a beta app with a Pi that has no betas = yes. There the button answers "no update", and the toast for that is now visible (Show the toast over the offline and update covers #137).
  • Pi: GET /api/state starts a background look when the last one is more than ten minutes old (Updates.lookIfOlder). This is for the settings page, which knows no app version. One look at a time, so at most six requests an hour to GitHub. README says when the Pi looks.

Tested: npm test, npm run check; new test in pi/test/update.test.ts.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gby235Tvdg4WjSB3MXB5YG

The Pi looked a minute after it started and then every six hours, so a
release published in between stayed hidden for hours: the app only shows
the update button once the Pi has found one. GET /api/state, which the app
asks for while More is open and the settings page asks for too, now starts
a look in the background when the last one is older than ten minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gby235Tvdg4WjSB3MXB5YG
@mLampir mLampir self-assigned this Oct 23, 2026
The app knows its own version, so a display below it has a fitting
release waiting even before the Pi's next look has found it. The button
then shows right away and makes the Pi look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gby235Tvdg4WjSB3MXB5YG
@mLampir mLampir changed the title Look for a new release while the update is on screen Offer the display update as soon as the display is behind Oct 23, 2026
@mLampir
mLampir merged commit f057fd4 into main Oct 23, 2026
5 checks passed
@mLampir
mLampir deleted the claude/project-thread-5nanib branch October 23, 2026 15:30
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.

2 participants