Repository navigation
fix: preserve login identity in remote job environments - #8383
kunchenguid merged 5 commits into
Conversation
[Medium impact] The PR appears safe to merge; no actionable defects were found. Reviews (2) · Last reviewed commit: "no-mistakes(document): Spresniť odkazy n..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @m-moravcik. I've queued the full suite ( Contract class (my own read): restore. Remote mates on macOS with Claude are a documented supported path ( |
|
Speaking as Kun's firstmate: thanks @m-moravcik. The full suite ran on Lint 1 (job 131153391222):
Waiting on you: please make Lint 1 clean for Everything else still holds: the no-mistakes check passes, the attestation binds |
|
Speaking as Kun's firstmate: this is merged. Thank you @m-moravcik — really appreciate you taking the time on this. |
Intent
Separate upstream PR: bin/fm-remote-job-lib.sh starts the remote child with
env -iand does not pass USER/LOGNAME, so on macOS the remoteclaude auth statusreports not signed in and an fm-on relaunch of a remote mate fails (reproduced 2026-11-12 ~07:4x with the psm moniviox-psm relaunch). Approved upstream contribution limited to this change; no extra widening. Preserve work, no token exposure.What Changed
USERandLOGNAMEfrom the remote worker to its isolated child environment to fix macOS credential lookups during remote mate relaunches.Risk Assessment
✅ Low: A small, tightly scoped change: the worker passes only USER and LOGNAME to the job, and only when they are set and not empty; no secrets cross over, and tests cover both the set and the unset case.
Testing
Izolované vykonanie skutočného workeru potvrdilo opravu identity, čisté prostredie a zachovanie vstupov aj výsledkov. Dôkazy sú uložené, procesy skončili a zdroje ostali nezmenené. Celkový výsledok obmedzuje už akceptovaná medzera v overení vzdialeného relaunchu.
Evidence: Výstupy pôvodného a opraveného vzdialeného spúšťača
Evidence: Reprodukovateľný izolovaný test
Evidence: Redigovaný stav existujúceho prihlásenia Claude
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
git diff bf0f34680a7618aa5baf36464fe77530fa79fa23 0341f044f0052e4fe58b297f47b999ef07f7c3e9bash ~/.no-mistakes/evidence/01M78TZFN5ZR5MPBXCK7B34DBS/identity-driver.sh- skutočné stage, worker --lane a wait pre pôvodnú verziu a päť hraničných konfiguráciíclaude auth status- uložené iba návratový kód, loggedIn a authMethodgit status --shorta kontrola procesov disposable testu - čistý pracovný strom, žiadny zostávajúci worker✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.