fix(ci): force code reviews to run as pi-reviewer #6

Merged
sam merged 1 commit from fix/code-review-pi-reviewer-identity into main 2026-09-26 13:28:04 +00:00
Member

Why

Code reviews triggered by this workflow were still posting as pi-agent, not the dedicated pi-reviewer account. Root cause: paseo run --provider pi-review does not reliably apply the provider's configured command, so the launched agent falls back to the default Forgejo identity (FORGEJO_ACCESS_TOKEN -> pi-agent). A pi-agent review on pi-agent's own PRs is limited to COMMENT (Forgejo forbids approve/reject on your own PR), so blocking reviews never landed with REQUEST_CHANGES.

Fix

Resolve the FORGEJO_REVIEW_TOKEN from the paseo container (the runner shell does not have it) and pass it as --env FORGEJO_ACCESS_TOKEN=... to paseo run. The launched agent's forgejo MCP server then authenticates as pi-reviewer.

Verified: a pi-review-provider agent launched with that env override has its forgejo-mcp child authenticate with the pi-reviewer token (confirmed via /api/v1/user identity check).

## Why Code reviews triggered by this workflow were still posting as `pi-agent`, not the dedicated `pi-reviewer` account. Root cause: `paseo run --provider pi-review` does **not** reliably apply the provider's configured command, so the launched agent falls back to the default Forgejo identity (`FORGEJO_ACCESS_TOKEN` -> `pi-agent`). A `pi-agent` review on `pi-agent`'s own PRs is limited to `COMMENT` (Forgejo forbids approve/reject on your own PR), so blocking reviews never landed with `REQUEST_CHANGES`. ## Fix Resolve the `FORGEJO_REVIEW_TOKEN` from the paseo container (the runner shell does not have it) and pass it as `--env FORGEJO_ACCESS_TOKEN=...` to `paseo run`. The launched agent's forgejo MCP server then authenticates as `pi-reviewer`. Verified: a `pi-review`-provider agent launched with that env override has its `forgejo-mcp` child authenticate with the pi-reviewer token (confirmed via `/api/v1/user` identity check).
sam merged commit ae6348fa70 into main 2026-09-26 13:28:04 +00:00
sam deleted branch fix/code-review-pi-reviewer-identity 2026-09-26 13:28:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
code-review
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
norobo/webstream!6
No description provided.