Skip to content

Refresh device metadata after app updates#284

Merged
niteshbalusu11 merged 1 commit into
masterfrom
codex/refresh-device-metadata
Jul 16, 2026
Merged

Refresh device metadata after app updates#284
niteshbalusu11 merged 1 commit into
masterfrom
codex/refresh-device-metadata

Conversation

@niteshbalusu11

Copy link
Copy Markdown
Member

Summary

  • attach device metadata to the existing launch-time last-login request only when the app/build/OS/device fingerprint changes
  • persist the last successful fingerprint and refresh unchanged metadata after 30 days as a self-healing backstop
  • add native build tracking, an optional server payload, and a database upsert/migration
  • keep normal launches at the existing empty {} last-login payload

Root cause

Device metadata was only written during server registration. The persisted registration flag survives app upgrades, so users could continue launching newer builds while their devices row remained on the version seen during initial registration.

Validation

  • just check-all
  • cargo test
  • cargo test test_report_last_login_upserts_device_info

Closes #283

@niteshbalusu11
niteshbalusu11 marked this pull request as ready for review July 16, 2026 15:29

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89a7be46b9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread client/src/lib/server.ts
@niteshbalusu11
niteshbalusu11 merged commit 92a8979 into master Jul 16, 2026
10 checks passed
@niteshbalusu11
niteshbalusu11 deleted the codex/refresh-device-metadata branch July 16, 2026 15:38
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.

Refresh device metadata after app and OS updates

1 participant