Skip to content

[Amber] Fix: fix(runner): mid-run GITHUB_TOKEN refresh via MCP tool does not reach CLI subprocess#1068

Merged
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-1067-fix-runner-mid-run-github-token-refresh-via-mcp-to
Mar 27, 2026
Merged

[Amber] Fix: fix(runner): mid-run GITHUB_TOKEN refresh via MCP tool does not reach CLI subprocess#1068
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-1067-fix-runner-mid-run-github-token-refresh-via-mcp-to

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated Fix by Amber Agent

This PR addresses issue #1067 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 70ec92b
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #1067

…I subprocess

The git credential helper runs inside the already-spawned CLI subprocess
whose environment is fixed at creation time. Updating os.environ mid-run
never propagated into that subprocess, so any token refreshed via the
refresh_credentials MCP tool was silently ignored for git operations.

Write GITHUB_TOKEN and GITLAB_TOKEN to mode-600 files on every credential
populate and delete them on clear. The updated credential helper reads
from these files first, falling back to env vars, so git operations within
an ongoing Claude session always use the latest token.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added amber-generated PR created by Amber background agent auto-fix labels Mar 27, 2026
@Gkrumbach07 Gkrumbach07 merged commit a126200 into main Mar 27, 2026
6 checks passed
@Gkrumbach07 Gkrumbach07 deleted the amber/issue-1067-fix-runner-mid-run-github-token-refresh-via-mcp-to branch March 27, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(runner): mid-run GITHUB_TOKEN refresh via MCP tool does not reach CLI subprocess

1 participant