Repository navigation
feat(cloudflare): diagnose failed checks, and react when they fail - #22
Merged
Merged
Conversation
…art on its own when they fail Pull request sessions get github_pull_request_checks, listing the checks on the latest commit with their IDs, and github_check_failure, showing a failed check's output, annotations, failed steps, and the end of its job log, with the whole log saved in the workspace. Saving long tool output moved to ToolOutput.ts, shared with bash. When checks fail, time out, need action, or cannot start on the latest commit of a pull request the app follows, onSubscribedPrEvents sends the AgentSession a request listing them and hands the delivery off. The agent fixes and pushes if the cause is clear, and otherwise explains the cause and what to change. Older commits' checks and passing checks are ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> HumanLayer-Session: https://app.dev.codelayer.gg/sessions/01a1196a-ea93-79e6-9500-a2651678f1ea
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.
What this does
github_pull_request_checkslists the checks on the latest commit with their IDs.github_check_failureshows a failed check's output, annotations, failed steps, and the end of its job log; the whole log is saved in the workspace.onSubscribedPrEventshands a request listing them to the AgentSession. The agent fixes and pushes if the cause is clear, otherwise explains.There is no limit on repeated attempts: a fix whose checks fail again starts another turn.
Tested
bun run checkandbun run test(742 tests).🤖 Generated with Claude Code