Repository navigation
feat(desktop,service,features,host): sync Files changed's Viewed boxes with GitHub as the member - #3645
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
luke-agent
Bot
changed the base branch from
main
to
feat/files-changed-image-diffs
October 18, 2026 17:34
…an agent's pull request files Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
…Hub, counts N / M viewed, and marks one with its box or V Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
…ad never undoes one, and unmarking opens a file Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
luke-agent
Bot
force-pushed
the
feat/files-changed-viewed
branch
from
October 18, 2026 17:42
5a161e9 to
491343d
Compare
…r a refused one is still sent, and a later fold outlasts a refusal Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
…he calls Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 18, 2026
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 18, 2026
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
This branch was successfully deployed
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
Files changed extras, E3 of the "Files changed extras" stack, stacked on #3638.
What was asked: each file's "Viewed" checkbox reads and writes GitHub's own viewed state (
viewerViewedState,markFileAsViewed/unmarkFileAsViewed), with progress shown as "N / M viewed". Viewed state belongs to each GitHub user, so both the read and the write go through the member's own GitHub sign-in, via the shared "writes as the member" seam (memberPullRequestWrite, from #3272/W1), and never fall back to the Luke GitHub App.Service
GET /api/agents/{id}/pull-request/viewed.apps/web/server/routes/agents/pull-request-viewed.tsand a segment rewrite;api-rewrites.jsonandvercel.jsonare regenerated.memberPullRequestWrite, thenpullRequestViewedStates, a GraphQLfiles { path viewerViewedState }read in pages of 100, up to the 300 files a changes read lists.{ outcome: "done", files: [{ path, state }] }, where state is viewed, unviewed, or dismissed (viewed but changed since)sign-in-required, when the member has no usable sign-in, or GitHub refuses their token (401)refused, with GitHub's wordspull-request/action:mark-file-viewedandunmark-file-viewed, each with a boundedpath, sent asmarkFileAsViewed/unmarkFileAsViewed.codingAgents.pullRequestViewed), the host (compose-coding-agents,host-operator), and a panel-only act router entry (CODING_AGENTS_PULL_REQUEST_VIEWED).Window (
viewed-files.ts,changes-list.tsx)@luke/uiCheckbox).PullRequestWriteNotethe tab's other changes use.· N / M viewed.Goldens
LUKE_UPDATE_FIXTURES=1:pullRequestActionRequestSchemaandcodingAgentPullRequestActionParamsSchemagain the two new actions, each{ action, path }.pull-request-write-wire-pullRequestViewedAnswerSchema.jsonandcoding-agent-view-codingAgentPullRequestViewedAnswerViewSchema.json.PRIVACY.md
Adds one sentence to the Pull request tab paragraph. It says the Viewed boxes are GitHub's own, kept per account; that our service reads and sets them only on the member's own GitHub sign-in, never as the App; and that it stores none of it.
Screenshots
2 / 15 viewedEvidence
tsc: desktop, service, features, host, all pass.pnpm lint,pnpm knip,pnpm discarded-effect,./scripts/repository-checks.sh(rewrites and api-callers included): all pass.coding-agents-app.test.ts"changing an agent's pull request": 14 passed, 2 new.Bearer ghu_teammate.sign-in-required, and nothing is tried as the App.act-router/coding-agent-acts.test.ts: the panel can read the marks; the voice window is refused.compose-coding-agents.test.ts: the gateway method reaches the client.agent-changes-tab.test.ts, 5 new tests:hosted-wire-schemas.test.ts: goldens as above.Invariants
./scripts/check.shgreen. (CI)asassertion.Effect.run*outside the edges.CLAUDE.md/AGENTS.mdsentence names a changed part.PRIVACY.mdchanged, as above.Notes
main.