Skip to content

test: owned deadline timer is registered after synchronous launch begins #838

Open

Description

@agenteinstinct1-max

Description

The owned-deadline helper starts Effect.runPromiseExit before registering its wall-clock timer. Synchronous launch work therefore begins before the deadline is armed.

PR #836 corrects that ordering and clears the armed timer when launch throws synchronously. Its ordering regression fails on the old source and passes with the correction.

Acceptance is limited to timer registration before launch, synchronous-throw timer cleanup, and preserved existing lifecycle/timeout behavior. This does not make synchronous JavaScript preemptible and does not establish the cause of the historical missing-interruption-log failure in #828. Keep #828 and the broader #442 open until their own acceptance is met.

Plugins

No response

OpenCode version

dev-vibecoded 7b84622; Bun 1.3.14

Steps to reproduce

Use the owned-deadline ordering spy regression in PR #836 against the base helper, then against the corrected helper. Check that timer registration precedes synchronous launch, and that a synchronous launch throw clears the timer. Keep the standard CI gates and existing budgets/assertions.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    priority: medium
    on Nov 12, 2026
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

    priority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions