Skip to content

fix(workspace): preserve git env for remote clones#411

Merged
christso merged 1 commit into
mainfrom
fix/workspace-init-auth
May 21, 2026
Merged

fix(workspace): preserve git env for remote clones#411
christso merged 1 commit into
mainfrom
fix/workspace-init-auth

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

  • preserve the inherited process environment when allagents shells out to git
  • keep non-interactive git safeguards while allowing user git config and credentials to remain available
  • apply the same env handling to managed repository clone/pull paths and cover the helper with a unit test

Reproduction

npx allagents@next workspace init ./cargowise-allagents-1 --from https://github.com/WiseTechGlobal/WTG.AI.Prompts/tree/main/scripts/allagents-setup/cargowise

Before this change, that failed with:

Error: Failed to initialize workspace: Authentication failed for WiseTechGlobal/WTG.AI.Prompts.
  Check your SSH keys or git credentials.

E2E

cd /home/entity/projects/EntityProcess/allagents.worktrees/fix-workspace-init-auth
bun run build
node ./dist/index.js workspace init /tmp/cargowise-allagents-green --from https://github.com/WiseTechGlobal/WTG.AI.Prompts/tree/main/scripts/allagents-setup/cargowise

Verified the workspace initializes successfully and writes /tmp/cargowise-allagents-green/.allagents/workspace.yaml.

Validation

bun run lint
bun test
bun run build

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 75bc7be
Status: ✅  Deploy successful!
Preview URL: https://87b1b7c1.allagents.pages.dev
Branch Preview URL: https://fix-workspace-init-auth.allagents.pages.dev

View logs

@christso christso merged commit 806ed5f into main May 21, 2026
1 check passed
@christso christso deleted the fix/workspace-init-auth branch May 21, 2026 04:42
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