Repository navigation
Reviews: show only my PRs, by the login of my GitHub credential - #1719
Merged
Merged
Conversation
A personal token saved in Settings -> Credentials had no account data. So engrams did not know whose token it was (for GitHub: the login). A connector can now declare `userCredential.token.identity`: one bounded "who am I" request to one of its hosts. The orchestrator sends it with the token in `PutCredentialRequest.identity`. The coordinator runs it with the token before the seal, and keeps the display and workspace names. The account id stays empty, so a later OAuth connect to a different account still replaces the token. If the provider refuses the token, the token is not saved, and the route returns 400 with a plain message. GitHub declares `GET /user` -> `login`. The parse of the probe moves out of `parseOauth` into shared helpers, so the OAuth metadata probe and the token identity probe use one validation. The credentials form now shows the server's message instead of the status line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Mine" shows only pull requests whose author is the reader's GitHub login, as their connected GitHub credential names it. It uses the existing server author filter, and hides the Author filter while it is on. The rail uses the same per-browser choice, so the switcher and the ledger list the same pull requests. If GitHub is not connected, or the token was saved before engrams recorded the login, "Mine" says how to fix it instead of showing an empty list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest Buf updates on your PR. Results from workflow CI / buf (pull_request).
|
6 of 7 tasks
The identity probe of a pasted token reported every failure as "probe_failed", and the route answered each one with 400 "Check the token". A GitHub outage or a 5xx then told the user that the token was bad. The probe now reports HTTP 401 and 403 as "probe_rejected". The route answers a refusal with 400 and tells the user to check the token. It answers any other probe failure with 503 and tells the user to try again. The token is not saved in either case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nikhilunni
approved these changes
Nov 4, 2026
nikhilunni
enabled stacked auto-merge
November 4, 2026 15:28
stacked auto-merge was automatically disabled
November 4, 2026 20:37
Auto-merge was disabled for another pull request in the stack
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Reviews tab now has an All / Mine switch. "Mine" shows only the pull requests whose author is the reader's GitHub login, as their connected GitHub credential names it.
Before this change, engrams did not know the login: a pasted personal token was saved with no account data. This PR has two commits:
userCredential.token.identity, a bounded "who am I" request to one of its hosts. The orchestrator sends it with the token in the newPutCredentialRequest.identityfield. The coordinator runs it before the seal and keeps the display and workspace names. GitHub declaresGET /user→login.accountId). A stored id would block a later OAuth connect to a different account./me/… → 400.parseOauthinto shared helpers, so both probes use one validation.Upgrade note
A GitHub token saved before this change names no login. Users must save their GitHub token again in Settings → Credentials once before "Mine" works. Settings then shows the login next to the GitHub entry.
Notes
buf.buildwas not reachable when I generated the bindings. I made the TypeScript bindings with localprotoc-gen-esv2.2.5 (the pinned version). Only the new field changed inoauth_pb.ts.Test plan
cargo nextest run -p engram-coordinator --test oauth_user_credentials: the new tests show that the lookup names the account with an empty account id, and that a refused token is not savedjust check: fmt, clippy and hakari pass. 3195 of 3196 tests pass whenengram-harness-codexis left out. The tests that fail (engram-harness-codexdynamic-tool tests,engram-uffd-handlerstalled_alt_source_…) fail the same way on the base commit in my environment.bun run typecheck, andbun testforconnectors,me-oauthandslack-integration. In the full suite,github-events-routefailed once on a 9 s timeout and passes alone.pnpm format:check,pnpm lint,pnpm build, and vitest forpages/reviews,components/settingsandrouter🤖 Generated with Claude Code