Skip to content

refactor(zig): drop deprecated 0.16 APIs and tighten io/allocator threading - #400

Merged
forketyfork merged 3 commits into
mainfrom
refactor/zig-016-api-cleanup
Sep 3, 2026
Merged

refactor(zig): drop deprecated 0.16 APIs and tighten io/allocator threading#400
forketyfork merged 3 commits into
mainfrom
refactor/zig-016-api-cleanup

Conversation

@forketyfork

@forketyfork forketyfork commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Issue

Complete the requested Zig 0.16 migration cleanup. No issue number was supplied for this maintenance change.

Solution

  • Replace deprecated bufPrintZ calls with bufPrintSentinel.
  • Use init.gpa in the runtime, manage URL launches through a bounded joinable opener, and simplify spawnDetached.
  • Route shell forks through the errno-aware POSIX wrapper and use std.testing.io in the listed tests.
  • Update the Zig 0.16 API notes and architecture documentation.

Context

The runtime receives its allocator from main. The URL opener owns joinable worker threads, copies the caller-provided allocator and I/O context into each worker, and joins active workers during runtime shutdown before startup teardown. No new dependencies were added.

Test plan

  • On macOS with a display, click an OSC 8 terminal URL and verify it opens in the browser.
  • On macOS with a display, open the config file from the menu and verify it still opens in the configured editor/browser path.

@forketyfork
forketyfork merged commit b251298 into main Sep 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant