Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/3796-github-detail-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-react": patch
---

The chat's GitHub components can load what a GitHub tool result left out without putting it in the model's context (#3796). Two internal routes serve it to the chat's owner account only, for an issue or pull request a GitHub tool result in that session returned: `GET /api/sessions/:id/github/:owner/:repo/:number/:part` pages its `comments`, `reviews`, `review-comments`, `commits`, `files` or `checks`, at most 30 items a page with a cursor, under the dedicated `BRAIN_UI_GITHUB_TOOLS_TOKEN`; and `GET /api/sessions/:id/github/avatars/:login` serves the avatar of a user in those results from the brain's own origin, fetched without credentials, accepted only as PNG, JPEG, GIF or WebP by its bytes within a byte and pixel cap, and kept in a bounded in-memory cache. Every direct link passes `githubDirectUrl` or is `null`. Failures are typed, and a spent rate limit names its reset time. Nothing either route serves is added to the conversation, journaled as turn input or recorded as taint. The SDK adds the page, item and error schemas; ui-react adds the internal `fetchGithubDetailPage` and `githubAvatarUrl` helpers.
Loading
Loading