You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
host-kit: own one C-locale lstart parser for host-process and simulator-boot #4875
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.
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.
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).
Activity
apex-sentinel-staging commentedon Nov 21, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe 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.
thymikee commentedon Nov 21, 2026
Closing as not planned. The shared parser removes about 15 duplicated lines and changes no behavior. In exchange, it would push
host-process.tsback 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).