Skip to content

Windows WHPX: pause unsupported but unpause reports misleading running-state error #253

Closed

Description

@ZhiXiao-Lin

Summary

On Windows WHPX (a3s-box 3.2.5), a3s-box pause correctly rejects with:

Error: <box>: execution backend unavailable: pause is not supported by the local MicroVM backend on Windows for execution <id>

A follow-up a3s-box unpause on the same still-running box then fails with a misleading lifecycle message:

Error: <box>: Box <box> changed while waiting to unpause: Cannot unpause box <box> because it is running. Use `a3s-box ps -a` to inspect state.

ps -a still shows running after the failed pause (expected). Operators are steered toward a state-reconciliation story instead of the real platform limitation: pause/unpause is unsupported on Windows MicroVM/WHPX.

Environment

  • a3s-box 3.2.5, VM backend: whpx, named-pipe control channel

Repro

a3s-box run -d --name pause-demo alpine:3.20 -- sleep 180
a3s-box pause pause-demo
a3s-box ps -a --filter name=pause-demo
a3s-box unpause pause-demo
a3s-box rm -f pause-demo

Expected

Fail closed at the same clarity level as PTY / pool / health:

  • pause → short “not supported on Windows / WHPX MicroVM” diagnostic (ideally before any “execution backend unavailable” wrapping)
  • unpause when pause is unsupported → same platform diagnostic, not “Cannot unpause because it is running”
  • Acceptance matrix row WIN-NEG-10 covering pause/unpause

First-principles note

Negative safety requires diagnostics that name the unsupported capability, not a transient state machine interpretation of a no-op failed pause.

Activity

  1. added
    bug
    area/runtime
    priority/medium
    on Sep 7, 2026
  2. ZhiXiao-Lin commented on Sep 7, 2026

    @ZhiXiao-Lin
    Author

    Part of matrix expansion #255 (WIN-NEG-10 / WIN-SLO-04). Parent matrix: #252.

  3. added a commit that references this issue on Sep 7, 2026
    7c262d4
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/runtimebugpriority/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions