Skip to content

intake(lote-C): import upstream PR #1599#12

Open
nsalvacao wants to merge 3 commits intobaseline/develop-sync-2026-02-17from
intake/lote-C-pr-1599
Open

intake(lote-C): import upstream PR #1599#12
nsalvacao wants to merge 3 commits intobaseline/develop-sync-2026-02-17from
intake/lote-C-pr-1599

Conversation

@nsalvacao
Copy link
Owner

Upstream intake PR for isolated review.

Notes:

  • Contains unresolved conflict markers in apps/backend/core/client.py for later resolution.
  • Added docs/intake-conflicts/pr-1599-conflict-notes.md to guide resolution.

Checklist:

  • Automated checks green
  • Bot review comments triaged
  • Manual review complete
  • Safe for baseline merge

creator-hian and others added 3 commits January 29, 2026 19:42
…on failures

Clear git environment variables (GIT_INDEX_FILE, GIT_DIR, GIT_WORK_TREE, etc.)
from both frontend and backend subprocess environments to prevent contamination
from parent processes (pre-commit hooks, IDE integrations, Electron app).

Changes:
- Frontend: Wrap getAugmentedEnv() with getIsolatedGitEnv() when spawning
  Python agent subprocess
- Backend: Delete git env vars from os.environ before SDK instantiation
  (SDK merges with os.environ, so deletion is required - setting to "" fails)
- Backend: Add HUSKY=0 to disable pre-commit hooks during agent operations

This provides defense-in-depth against git environment contamination that can
cause "Could not reset index file to revision 'HEAD'" errors in worktrees.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move GIT_ENV_VARS_TO_CLEAR import from inside create_client() function
to module-level imports section, following PEP 8 best practices.
Add brief explanatory comment at import site while keeping detailed
operational comments at the deletion site for context.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

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.

2 participants