DEVELOP-2280-15: Devin.ai is now able to respond to automation events.#4
Open
tim-field wants to merge 3 commits into
Open
Conversation
Simplify attachment fetching
tim-field
commented
Feb 10, 2026
|
|
||
| export type CreateSession = z.infer<typeof CreateSessionSchema>; | ||
|
|
||
| // Converts a string to bytes (replacement for TextEncoder which isn't available) |
Contributor
Author
There was a problem hiding this comment.
Moved to devin.ts
Dropped base64 related image handling functions which we no longer need
tim-field
commented
Feb 10, 2026
| resultSchema: DevinSessionDataSchema, | ||
| handler: async (args, { settings: rawSettings }) => { | ||
| const { prompt, title, attachments = [] } = args; | ||
| const { record } = args; |
Contributor
Author
There was a problem hiding this comment.
Updated to so that the automation rule and the UI pass the same payload,
record: {id:string, typename: 'Feature' | 'Requirement' }
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.
Support triggering via automation
Designed to work with https://github.com/aha-app/aha-app/pull/44965 this moves most logic to the server side lambda we then call this same event listener from both the UI and the automation rules.
Simplify attachment fetching
When https://github.com/aha-app/aha-app/pull/44965 merges we can fetch token based URL's which enable us to fetch the attachments server side. This significantly simplifies the attachment upload process as we no longer need to base64 encode client side