Repository navigation
Conversation
6 of 8 tasks
Author
|
Closing this draft as I am moving the broader contribution to a branch based directly on stablyai/orca main. The focused regression and commit remain available here for reference; this is not waiting on action from this branch author. |
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.
ELI5
A Claude profile that points at an existing credential directory should launch with that directory. Currently, selecting a managed Claude account can replace the profile's directory during spawn preparation.
What Changed
This is a focused follow-up to stablyai/orca#18674, targeting its feature branch rather than creating a competing profile catalog.
Why
At the parent PR head, a custom profile with
env.CLAUDE_CONFIG_DIR=/external/workcan reach the child as the selected managed account's directory. Simply checking for a profile ID plus a home variable also changes args-only profiles when the home comes fromagentDefaultEnv. Recording provenance while composing the profile distinguishes these cases without changing the existing secondary-home resolver or Codex account-selection checks.Linked Issue
Related to stablyai/orca#2284; fixes the custom-home regression reported in this review comment. This does not close the broader feature request.
Visual Proof
N/A — authentication preflight and process environment handling only; no UI or interaction changes.
Testing
Linux Docker with synthetic HOME and mocked PTY/auth boundaries: 55 tests passed across 3 files:
pnpm test src/main/ipc/pty-spawn-env-terminal-basics.test.ts \ src/shared/agent-launch-profile/agent-launch-profile.test.ts \ src/main/agent-launch-profile/launch-profile-home.test.tsThe explicit-home regression failed before the candidate fix; desktop and runtime inherited-home cases also failed before the provenance correction. Changed-code quality reports zero new findings;
git diff --checkpasses. Node, web and CLI TypeScript checks pass.Full application build, full test suite, native macOS/Windows, SSH integration and real OAuth refresh have not been exercised for this patch. The tests prove spawn preparation and environment preservation, not complete account isolation across every authentication layer.
The fork's
track-community-prworkflow fails while creating the upstreambufo-bottoken because itsprivate-keyinput is empty. It does not execute code checks; the local results above are independent of that repository-secret configuration.AI Disclosure
Implemented and reviewed with OpenAI Codex. A separate Codex review found the inherited-default-home case, which is covered by the regression tests. No human review is claimed.
Review
Please focus on the profile provenance boundary and parity between the two spawn entry points. The parent branch can adopt this commit or request adjustments; this draft carries only the complementary fix.
Agent skill upstream boundary
Notes
The environment metadata uses existing string-map transport and does not add a protocol opcode or settings field. Older code does not gain this fix merely by receiving the marker; the executing host must include the preflight change. Existing built-in home markers and profile attribution remain intact. No real credentials or installed Orca state were used in testing.
Checklist