Repository navigation
Conversation
demrom
force-pushed
the
feature/embedded-herdr
branch
from
October 18, 2026 16:54
308b557 to
a3e8a22
Compare
demrom
marked this pull request as ready for review
October 18, 2026 16:54
…Settings The host runs min(worker_limit setting, hw.physicalcpu, bundled ShellWorkerCount) workers at once and returns ENOSPC beyond that. ShellWorkers/generate-targets.sh (POSIX sh and awk, like the other scripts of the repo) keeps the extension targets and the Settings list in line with ShellWorkerCount. The new Settings strings are localized in the existing Root.strings files. tests/worker-pool.m gains a limit check.
…-app # Conflicts: # README.md
# Conflicts: # a-Shell.xcodeproj/project.pbxproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run
herdrin the mini app to open local shell panes and tabs. This embeds Herdr 0.9.3's Rust client, server and Ghostty terminal engine in the app, with each pane using a shell in the extension worker pool. The adapter forwards command streams, terminal size, interrupts and close through the pool API.Herdr/build.shfetches pinned source and applies the iOS adapter patches, using Rust 1.96.1, Zig 0.16.0 and locked dependencies. The mini target links the resulting archive, registersherdr, forwards resize events and bundles the Apache 2.0 license. The embedded command supports the local terminal UI and informational flags; desktop background-server operations return status 78.In an arm64 iOS Simulator app built with Xcode 27.1, the public terminal reports
herdr: command not foundwithout this change andherdr 0.9.3with it. The sameHerdr/tests/three-panes.shpublic UI harness fails on the baseline's first missing receipt; with this change, three tabs produce distinct extension-worker PIDs and all three workers remain alive together. Normal detach and a secondherdr --versioninvocation in the same app process pass. The harness confirms tab-name dialogs before submitting shell commands and paces keystrokes to avoid losing Simulator input.This depends on the ten-worker pool, a-shell#1089 and dash_iOS#2, including its libedit patch. The prerequisites ios_system#180, #181, #182, #183, #184 and dash_iOS#1 are merged. Matching released library artifacts, worker WASM interpreter routing and the remaining host terminal fixes are pending. CPU overlap, per-pane cancellation and crash isolation, full teardown/capacity recovery, saved-session migration, physical-device behavior, background execution and App Store acceptance remain unqualified for this extracted change. Codex, optional native tools and the remote-control service are separate contributions.
Refs #1055 (mini app only).