Consume typed Sentry signals through ChatKit conversion - #16
Merged
Merged
Conversation
Greptile SummaryThe PR upgrades the ChatKit integration to consume typed Sentry signals directly and allows remediation from ordinary chat prompts.
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code defect established. The typed signal conversion, endpoint-level timeout handling, and expanded chat-triggered flow are internally consistent, and the investigated message-delivery and authorization concerns were either explicitly intended or lacked a reachable contradictory contract.
|
| Filename | Overview |
|---|---|
| sentry-remediation-bot/app/api/sentry-remediation/route.ts | Replaces raw signal polling with typed ChatKit conversion, supports chat-triggered runs, and delegates timeout cancellation to the endpoint wrapper. |
| sentry-remediation-bot/lib/remediation/signal.ts | Converts typed issue-created signals into AI SDK user messages with fallbacks for optional Sentry fields. |
| code-review-bot/app/api/code-review/route.ts | Moves timeout configuration into chatKitEndpoint while preserving request cancellation and cleanup behavior. |
| sentry-remediation-bot/package.json | Upgrades the Vercel AI harness SDK dependency to the stable 0.2.0 release. |
| code-review-bot/package.json | Upgrades the Vercel AI harness SDK dependency to the stable 0.2.0 release. |
Sequence Diagram
sequenceDiagram
participant T as Tilde ChatKit
participant E as Agent endpoint
participant C as convertToAiSdkMessages
participant M as Remediation model
participant R as MCP and sandbox tools
T->>E: Signed signal or chat request
E->>T: Load session history
E->>C: History plus current messages
alt Sentry issue-created signal
C->>C: Convert typed signal to user task
end
C-->>E: UI messages
E->>M: Stream model messages
M->>R: Investigate and remediate
M-->>T: Stream response
E->>R: Close resources
Reviews (1): Last reviewed commit: "chore: use stable harness SDK release" | Re-trigger Greptile
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
convertToAiSdkMessageswith a strongly typed callback@trytilde/harness-sdk-vercel-ai-node@0.2.0releaseValidation
pnpm typecheck,pnpm lint,pnpm testpnpm typecheck,pnpm lintDependency
Uses the merged harness SDK releases from trytilde/harness-sdk#17, #10, and #18.