Skip to content

dev: broker compilation failure prevents pnpm dev stop from stopping an instance #330

Closed

Description

@allisonmahmood

Problem

An ordinary unfinished browser-code edit can prevent the documented stop command from stopping the already-running dev instance. The root dev script builds the broker before dispatching every subcommand.

Reproduction

With an isolated dev instance or an owned recorded supervisor process:

  1. Leave a normal syntax error in the broker source.
  2. Run pnpm dev stop. esbuild exits before the runner receives stop.
  3. Observe that the recorded process is still alive.
  4. Invoke the same real runner directly: node --import tsx --conditions=development scripts/dev/src/main.ts stop. It stops the process successfully.

Both agents exercised the unchanged public package command, builder and actual runner in disposable mini-worktrees with owned real idle processes. The independent process stayed alive after the public command exited 1, then received SIGTERM and exited after direct stop returned 0. No daily-driver instance was touched. The process was not a full server, which is not required to observe the pre-dispatch failure.

The independent control also loaded the real runner's help without generated broker bytes. There is no current eager-import requirement that justifies building before management commands.

Smallest change

package.json's dev command places broker generation on the left of && outside dispatch. Move generation into the startup path that needs fresh bytes. Keep stop, status, logs and dry-run independent of compilation. Only stop was directly tested; the shared wrapper explains why other management commands face the same gate.

This is unrelated to migration-error reporting in #186. No migration or database participates.

Audited at ef3e790. Found and independently checked by separate GPT-6 Astra agents in Oh My Pi. Only ordinary offline workflows and synthetic data were used.

Activity

  1. added
    bug
    needs-triage
    area:ci
    on Sep 20, 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

    area:cibugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions