Skip to content

host-kit: own one C-locale lstart parser for host-process and simulator-boot #4875

Closed as not planned

Description

@thymikee

Follow-up from #4682 review.

After #4682, two modules parse the C-locale ps -o lstart rendering:

  • packages/host-kit/src/internal/host-process.ts (posixStartTimeToken): it pins LC_ALL=C TZ=UTC and reads the fields as UTC.
  • packages/platform-apple/src/simulator-boot.ts (parseProcessStartTimeMs): it pins only LC_ALL=C and reads the fields in local time.

host-kit should own one field parser, and both callers should use it. Simulator boot observation could then pin TZ=UTC too and stop depending on the reader's time zone.

Scope: the shared parser and its two callers, with tests for both. Simulator boot observation is device-facing, so the PR needs one iOS simulator open run.

Wait until #4682 merges.

Activity

  1. apex-sentinel-staging commented on Nov 21, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: feature

    The issue requests a follow-up refactor to introduce a shared C-locale ps lstart parser in host-kit and update two existing callers, including timezone-pinning behavior; it is a concrete enhancement tied to a previous PR.

  2. thymikee commented on Nov 21, 2026

    @thymikee
    MemberAuthor

    Closing as not planned. The shared parser removes about 15 duplicated lines and changes no behavior. In exchange, it would push host-process.ts back toward its 1000-line limit, add a host-kit dependency to simulator boot observation, and need a device run. The rationale is in #4682 (comment).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions