Conversation
π Hi Oliver, want a second pair of eyes on this?I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.
Or comment |
isekovanic
approved these changes
Dec 4, 2026
1 of 4 tasks
isekovanic
added a commit
that referenced
this pull request
Dec 4, 2026
β¦4054) Ticket: https://linear.app/stream/issue/RN-561 ## π― Goal With the `GetStream` organization IP allow list enabled, GitHub-hosted `ubuntu-latest` runners can no longer make authenticated GitHub API calls. #4024 moved `develop`'s Linux jobs to the static-IP `github-public-amd64` runner group, but `v9-release` was never updated. As a result, every PR into `v9-release` fails `Lint PR title` with "your IP address is not permitted to access this resource" (for example #4053). ## π Implementation details Switches every `runs-on: ubuntu-latest` on `v9-release` to `runs-on: { group: github-public-amd64 }`, the same change #4024 made on `develop`: - `lint-pr-title.yml` (`lint_pr_title`) - `cancel-pr-checks.yml` (`cancel`) - `changelog-preview.yml` - `sdk-size-metrics.yml` (`sdk_size`) - `release.yml` (`publish`, for v9 maintenance releases) - `e2e-test.yml` (`check`, `android`, `result`) Unchanged: - `check-pr.yml` already runs on the self-hosted `public` runner. - The `macos-15` jobs make no authenticated GitHub calls (#4046 moved their `develop` counterparts to GitHub-hosted `macos-26`, not to an allow-listed group). - `sample-distribution.yml` on `v9-release` only runs on pushes to `develop` or a manual dispatch. ## π¨ UI Changes None. ## π§ͺ Testing This PR's own `Lint PR title` run uses the updated workflow, so it should pass. Once this is merged, re-running the title check on #4053 should pass as well. ## βοΈ Checklist - [x] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [ ] PR targets the `develop` branch (targets `v9-release`) - [ ] Documentation is updated (not applicable) - [ ] New code is tested in main example apps, including all possible scenarios (CI only)
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.
Ticket: https://linear.app/stream/issue/REACT-1512
π― Goal
Make
fromStreamMessagegeneric on v9, as it is ondevelop, so the same code compiles on both lines. With it,adapt: fromStreamMessage<LocalMessage>(asuseAgentConversationfrom@stream-io/stream-agents/reacttakes it) works on v9,isAssistantgets the caller's message type, soisAssistant: (message) => message.user?.id === 'juno'compiles, and aMessageResponse, such as an event's message, is accepted.π Implementation details
The types from
develop, none of its v10 field changes (custom):fromStreamMessage = <M extends AdaptableMessage>(message: M, options?: FromStreamMessageOptions<M>), whereAdaptableMessage(internal) isPick<LocalMessage | MessageResponse, 'attachments' | 'id' | 'text'>, without theRecord<string, unknown>thatMessageResponsefailed (TS2345). The body reads the other fields (ai_generated,generating,ai_ui,support_branch,resent_from) through a cast, as ondevelopcreateFromStreamMessage<M>(options?)takes and caches the sameMFromStreamMessageOptions<M>:isAssistanttakesM. The exportedAIStreamMessageis unchanged and is the default for both, so code that names them still compilesNo runtime change, and not breaking:
Mis inferred from the message.π¨ UI Changes
None.
π§ͺ Testing
conversation.test.tsxgains a test that passes aLocalMessageand readsmessage.userinisAssistant, and one that passes aMessageResponse.yarn test:typecheck,tsc -p tsconfig.jsonand thesrc/ai-componentsJest suites pass.βοΈ Checklist
developbranch (targetsv9-release: a v9 backport)