You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
fix: derive commit identity from GitHub token owner
Replace repository-history-based git author/committer resolution with token-owner identity lookup via GitHub /user so commit attribution matches the configured product token owner. When the profile email is unavailable, derive a deterministic noreply address (<id>+<login>@users.noreply.github.com) while preserving stable name fallback to login.
Also keep env propagation unchanged for local and containerized runs (GITHUB_TOKEN, GH_TOKEN, GIT_AUTHOR_*, GIT_COMMITTER_*), add a dedicated TokenOwnerProfile DTO to satisfy boundary typing rules, and extend RealCursorCliAgentDriver tests to cover profile identity and noreply fallback behavior.
Copy file name to clipboardExpand all lines: src/LlmIntegration/docs/cursor-integration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ The driver passes a minimal, explicit environment to the subprocess:
179
179
|`CURSOR_API_KEY`|`product-config.yaml` → ProductConfig entity | Authenticates with the Cursor API |
180
180
|`GITHUB_TOKEN`|`product-config.yaml` → ProductConfig entity | Allows the agent to interact with GitHub |
181
181
|`GH_TOKEN`| Same as `GITHUB_TOKEN`| Compatibility variable for tools that expect `GH_TOKEN`|
182
-
|`GIT_AUTHOR_*` / `GIT_COMMITTER_*`| Derived from repo latest commit, fallback to ProductBuilder bot identity | Ensures commits work even when workspace git config has no identity|
182
+
|`GIT_AUTHOR_*` / `GIT_COMMITTER_*`| Derived from GitHub token owner (`GET /user`), with noreply fallback when profile email is missing | Ensures commits are attributed to token owner without mutating git config|
183
183
|`HOME`| Inherited from container | Needed so the agent finds `~/.cursor/cli-config.json` and `~/.local/bin/`|
184
184
|`PATH`| Inherited from container | Needed so the agent can invoke tools like `git`, `curl`, etc. |
0 commit comments