Repository navigation
feat: broker macOS Claude through the Aqua session - #99
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
CI note after three Windows reruns at the unchanged head
The four production/test files involved in the Shim failures have no diff from I am intentionally not mixing an unrelated lifecycle-test repair into this PR. The safe follow-up is a separate bounded Windows fix that retries only transient |
38dbcbb to
a1551b9
Compare
Managed SSH Hosts run in a background audit session that cannot use the interactive user's native Claude login. Install an owner-only LaunchAgent broker in the current Aqua session and route managed macOS Claude adapters through its authenticated Unix socket, with bounded lifecycle recovery and writer leases.
a1551b9 to
bdcadda
Compare
…oker feat: broker macOS Claude through the Aqua session
Summary
Managed macOS SSH Hosts run in a detached Background audit session, while native Claude Code login and Keychain access belong to the logged-in Aqua session. Launching Claude directly from the remote Host therefore makes a valid native login appear expired.
This change adds a current-user Aqua Harness broker and routes Claude Code through it only for managed macOS remote Hosts.
Design
ai.bytepioneer.codexhost.native-harness-brokerin the current non-rootgui/<uid>Aqua domain;codexhost broker install|status|stop|uninstalland composes broker lifecycle with macOSremote install|status|uninstall;remote statusmachine-readable JSON on stdout and sends broker status diagnostics to stderr.The Background Host never unlocks Keychain, asks for a password, copies Claude credentials, changes
~/.claude, or proxies Claude through OpenCodex.Validation
npm run check-D warningspassed;0.4.0-main.38dbcbb.1:100015while the managed SSH Host ran in Background ASID305362;codexhost/harness/inspectreturned 5 native Claude models and 5 native permission modes;HOST_BROKER_OK;Rollback
The candidate is versioned independently.
broker uninstallremoves the LaunchAgent, and the prior0.4.0candidate plus pre-switch remote shim/manifest backup remain available for a controlled rollback.