Skip to content

Conversation

jog1t
Copy link
Contributor

@jog1t jog1t commented Oct 7, 2025

TL;DR

Added Sentry tunnel configuration and improved actor list UI layout.

What changed?

  • Added a tunnel property to the Sentry configuration in both the HTML template and TypeScript interfaces
  • Initialized Sentry with the tunnel configuration from the app config
  • Simplified the runnerByNameQueryOptions function by removing the redundant namespace parameter
  • Enhanced the actors list UI by:
    • Adding flex layout with centered items to the actor information container
    • Adding proper spacing between datacenter information and other elements
    • Ensuring consistent margin for the datacenter display regardless of content

How to test?

  1. Verify that Sentry initialization works with the new tunnel configuration by setting the VITE_APP_SENTRY_TUNNEL environment variable
  2. Check that the actors list displays correctly with proper spacing between elements
  3. Confirm that runner queries still work correctly with the simplified namespace handling

Why make this change?

The Sentry tunnel configuration allows for proxy routing of error reports, which can be useful in environments with strict CSP policies or when direct access to Sentry servers is restricted. The UI improvements to the actors list enhance readability by providing better spacing and alignment of actor information elements.

@jog1t jog1t requested a review from MasterPtato October 7, 2025 21:23
Copy link
Contributor Author

jog1t commented Oct 7, 2025


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jog1t jog1t requested a review from NathanFlurry October 7, 2025 21:23
Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@jog1t jog1t marked this pull request as ready for review October 7, 2025 21:23
Copy link

pkg-pr-new bot commented Oct 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@3100
npm i https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner-protocol@3100

commit: c93c462

Copy link
Contributor

graphite-app bot commented Oct 7, 2025

Graphite Automations

"Test" took an action on this PR • (10/07/25)

1 assignee was added to this PR based on Kacper Wojciechowski's automation.

Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rivet-cloud Canceled Canceled Oct 7, 2025 10:06pm
rivet-inspector Canceled Canceled Oct 7, 2025 10:06pm
rivet-site Canceled Canceled Oct 7, 2025 10:06pm

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link
Contributor

graphite-app bot commented Oct 7, 2025

Merge activity

  • Oct 7, 9:57 PM UTC: jog1t added this pull request to the Graphite merge queue.
  • Oct 7, 9:58 PM UTC: CI is running for this pull request on a draft pull request (#3103) due to your merge queue CI optimization settings.
  • Oct 7, 9:59 PM UTC: Merged by the Graphite merge queue via draft PR: #3103.

gcTime: 5000,
queryKey: ["actor", actorId, "database", table],
queryKey: [hash, "actor", actorId, "database", table],
queryFn: async ({ queryKey: [, actorId, , table] }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The query key destructuring pattern doesn't account for the hash parameter that was added to the query key array. The current pattern [, actorId, , table] will extract incorrect values since the actual array structure is now [hash, "actor", actorId, "database", table]. This should be updated to [, , actorId, , table] to properly extract the values from their new positions in the array.

Suggested change
queryFn: async ({ queryKey: [, actorId, , table] }) => {
queryFn: async ({ queryKey: [, , actorId, , table] }) => {

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

This comment came from an experimental review—please leave feedback if it was helpful/unhelpful. Learn more about experimental comments here.

}) => {
const def = createDefaultActorContext();
const def = createDefaultActorContext({
hash: btoa(url + inspectorToken + (engineToken || "")).slice(0, 8),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appears to be a variable name mismatch in the hash calculation. The function parameters include token, but the hash calculation uses inspectorToken which isn't defined in the scope. This should be updated to use token instead:

hash: btoa(url + token + (engineToken || "")).slice(0, 8),

This will ensure the hash is calculated using the correct parameter values.

Suggested change
hash: btoa(url + inspectorToken + (engineToken || "")).slice(0, 8),
hash: btoa(url + token + (engineToken || "")).slice(0, 8),

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

This comment came from an experimental review—please leave feedback if it was helpful/unhelpful. Learn more about experimental comments here.

graphite-app bot pushed a commit that referenced this pull request Oct 7, 2025
### TL;DR

Added Sentry tunnel configuration and improved actor list UI layout.

### What changed?

- Added a `tunnel` property to the Sentry configuration in both the HTML template and TypeScript interfaces
- Initialized Sentry with the tunnel configuration from the app config
- Simplified the `runnerByNameQueryOptions` function by removing the redundant namespace parameter
- Enhanced the actors list UI by:
  - Adding flex layout with centered items to the actor information container
  - Adding proper spacing between datacenter information and other elements
  - Ensuring consistent margin for the datacenter display regardless of content

### How to test?

1. Verify that Sentry initialization works with the new tunnel configuration by setting the `VITE_APP_SENTRY_TUNNEL` environment variable
2. Check that the actors list displays correctly with proper spacing between elements
3. Confirm that runner queries still work correctly with the simplified namespace handling

### Why make this change?

The Sentry tunnel configuration allows for proxy routing of error reports, which can be useful in environments with strict CSP policies or when direct access to Sentry servers is restricted. The UI improvements to the actors list enhance readability by providing better spacing and alignment of actor information elements.
@graphite-app graphite-app bot closed this Oct 7, 2025
@graphite-app graphite-app bot deleted the 10-07-fix_actor_runners_by_name_query branch October 7, 2025 21:59
@vercel vercel bot temporarily deployed to Preview – rivet-site October 7, 2025 22:06 Inactive
@vercel vercel bot temporarily deployed to Preview – rivet-cloud October 7, 2025 22:06 Inactive
@vercel vercel bot temporarily deployed to Preview – rivet-inspector October 7, 2025 22:06 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants