Skip to content

fix(nexus): do not pass on empty token for sync nexus calls#439

Merged
chris-olszewski merged 1 commit into
mainfrom
olszewski/fix_nexus_token
May 18, 2026
Merged

fix(nexus): do not pass on empty token for sync nexus calls#439
chris-olszewski merged 1 commit into
mainfrom
olszewski/fix_nexus_token

Conversation

@chris-olszewski
Copy link
Copy Markdown
Member

@chris-olszewski chris-olszewski commented May 18, 2026

What was changed

  • No longer pass on "" as an operation token to end users for sync nexus operations.
  • Remove race in test_nexus_operation_handle_async_has_token

Why?

  • nil is more idiomatic than "" for missing value
  • We observed test_nexus_operation_handle_async_has_token flake in CI. This can happen if core receives a nexus completion from server before a start which will have core emit a [SyncStart, Complete] activation even if the operation is async. With the previous behavior of forwarding the empty operation token this would trigger the test to fail when we asserted that the length was non-zero. With the nil token change this test would still fail, but earlier while it was waiting on a token to be populated.

Checklist

  1. Closes N/A

  2. How was this tested:
    Updated unit tests

  3. Any docs updates needed?
    N/A, our doccomments/types already call out that for sync ops this should be nil

@chris-olszewski chris-olszewski changed the title fix(nexus): 💥 do not pass on empty token for sync nexus calls fix(nexus): do not pass on empty token for sync nexus calls May 18, 2026
@chris-olszewski chris-olszewski marked this pull request as ready for review May 18, 2026 12:58
@chris-olszewski chris-olszewski requested a review from a team as a code owner May 18, 2026 12:58
@chris-olszewski chris-olszewski force-pushed the olszewski/fix_nexus_token branch from 2bcf88d to b3c4fe6 Compare May 18, 2026 15:19
@chris-olszewski chris-olszewski merged commit 9ca13a0 into main May 18, 2026
8 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_nexus_token branch May 18, 2026 15:43
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