Skip to content

fix: canonicalize journey exit reasons - #1

Merged
levi merged 1 commit into
mainfrom
codex/issue-724-exit-model-cleanup
Mar 16, 2026
Merged

levi merged 1 commit into
mainfrom
codex/issue-724-exit-model-cleanup

Conversation

@levi

@levi levi commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Dismissed to the Unreal journey exit-reason enum
  • parse the canonical dismissed exit reason from the Android bridge payload
  • align the Unreal wrapper with the exit-model cleanup tracked in nuxieio/nuxie-dev#724

Testing

  • Not run in this repo

@levi
levi marked this pull request as ready for review March 16, 2026 18:55
@levi
levi merged commit e05dcee into main Mar 16, 2026
2 checks passed
@levi
levi deleted the codex/issue-724-exit-model-cleanup branch March 16, 2026 18:55

@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: 550d960ecf

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

enum class ENuxieJourneyExitReason : uint8
{
Completed,
Dismissed,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve existing enum ordinals when adding Dismissed

Adding Dismissed between existing ENuxieJourneyExitReason members shifts the underlying uint8 values for GoalMet, TriggerUnmatched, Expired, Error, and Cancelled. In Unreal, this enum is exposed as UENUM(BlueprintType) and used in a UPROPERTY, so previously serialized values (e.g., save data, replicated state, persisted Blueprint defaults) can be decoded as the wrong reason after upgrading. To avoid data corruption across versions, keep prior ordinals stable by appending new values or assigning explicit numeric constants.

Useful? React with 👍 / 👎.

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