Skip to content

Sprites: first login after a restart fails on the in-flight-create fence instead of waiting #3904

Done

Description

@integry

Seen live on a dashboard-launched Fly instance using the Sprites runtime, built from #3852 on the epic.

Repro:

  1. Add SPRITES_TOKEN/PROPR_AGENT_RUNTIME=sprites as Fly secrets. The Machine restarts.
  2. Within about a minute, go to Coding agents → add Claude → Add Agent & Log In.

Actual: the login fails right away with "Could not start the login on Sprites: ProPR is waiting up to 47 s for Sprite creates that may still be in flight after its Redis state was reset. Try again after 00:35:12 UTC." The user has to close the dialog, wait, and click Log in again. The retry worked: the Sprite was created and the Claude sign-in link appeared.

Expected: a new instance's first action shouldn't fail on an internal grace period. The login (and run admission) should wait out the fence and show a short status line such as "Waiting for Sprite capacity (up to 47 s)…", then continue on its own. Fail only if the fence is still up after the wait.

The worker log also showed TimeoutNegativeWarning: -1.32 is a negative number at boot. That's probably the fence timer computing a past deadline, so clamp it to 0.

Acceptance: a unit test where the fence is active at login start, and the login continues after the fence lifts. Live: restart → immediate login → the provider prompt appears without a manual retry.

Activity

  1. propr-dev commented on Nov 30, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3904/gpt-6.2-sol-sprites-first-login-after-20261130-0041-ngy
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3904-20261130-0041-gpt-6.2-sol-ngy

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3905, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions