Repository navigation
Conversation
…r/ios_system/direct-interrupt-status into feature/openssh-10.6-public
…r/ios_system/ssh-10.6-stack into preparation/host-policy-313
…r/ios_system/direct-interrupt-status into feature/openssh-10.6-public
…r/ios_system/ssh-10.6-stack into preparation/host-policy-313
This was referenced Oct 24, 2026
demrom
marked this pull request as ready for review
October 24, 2026 02:57
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.
An SSH shell running in an extension can select a command whose memory needs exceed that extension's budget. Let the application opt those commands into its existing host runner with
ASHELL_HOST_COMMANDS.The policy applies only inside a worker and excludes stock SSH clients, which still require isolated workers. Missing or busy host execution returns status 125. Host commands run under Dash with its foreground input lease. If host cancellation is rejected, the proxy asks that foreground command to stop, closes input and drains output until the host reports completion. It retries until an interrupt is accepted or the host command completes. Cooked commands that reach pthread cancellation points return 130 and release the host slot. This cannot forcibly stop an uncooperative CPU loop or a raw command that ignores EOF: it retains the only host slot until completion or app restart. Strict POSIX spawn keeps its extension-only admission rules. This requires #202 exporting
ios_interruptpid, ios_system#201 and #203; the server companion supplies the host-runner API.Codex owns its terminal input like Vim, so it belongs in the existing interactive command list. The socket relay preserves CR and Ctrl-D before host execution. The application companion keeps this mode in the owning pane; its runtime hook leaves other sessions on the existing UI callbacks. Stopping the local terminal's interactive mode must not change the remote pane's raw input or interrupt result. The public Simulator consumer passed a local
/statuscommand with delayed CR and two interrupts followed by same-shell recovery.On Simulator, the application companion's
tests/host-cancellation.mconsumer callsios_interruptpid, drains 2 MiB after rejected host cancellation and requires command and host status 7. Itstests/pane-interrupt.mconsumer also passes after the local embedding UI stops interactive mode while its remote raw reader remains active.Dash restores the saved interactive mode after external commands, pipeline errors and exec; the socket consumer also checks a raw reader followed by a cooked sleep interrupted with status 130 and same-shell recovery.
On Simulator, the application companion scopes both input mode and foreground-PID exchange to the pane context. Its cooked-isolation consumer keeps an unrelated local Dash running while interrupting the remote sleep: remote status 130 and recovery pass, and the local Dash finishes with status 0.
Native Codex ran on the iPhone in both Vim/Codex orders with separate fresh credential-free homes, answered delayed /status for the local fixture provider and returned to the same shell after double Ctrl-C. The TUI checks used a server-only prompt and skipped the user profile.