Repository navigation
fix: handle malformed GitHub responses during repository analysis - #20
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-spec-kit-api-error-github-flow-analytics.yuval-yeret.workers.dev (commit 7871f17)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
There was a problem hiding this comment.
Tessl Reviewer
Advisory findings (1)
The malformed top-level GitHub-response handling and frontend non-JSON error reporting are in place. Nested malformed pull-request fields can still bypass the collector's controlled error path and produce an unhandled server error.
| Severity | Findings |
|---|---|
| Minor | 1 |
Advisory findings (1)
- Minor · Advisory · Non-blocking · Nested malformed pull-request fields still cause an unhandled analysis error
analyze.py:359
Reviews are incremental. The first review shows every valid finding. A later round checks the latest changes and earlier findings, and adds a fresh finding when it still applies. It never repeats one you refuted or declined. Ask for a full review to inspect the whole change and show earlier findings again.
Mention @tessl-reviewer to run another review.
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
Spec Kit analysis could crash with a plain-text 500 when GitHub returned a payload that was not a PR list. The dashboard then hid the server failure behind
Unexpected token Iwhile trying to decode that text as JSON. Malformed upstream responses now produce a sanitized JSON 502, and analysis/chat display useful HTTP failures even when a server response is not JSON.Successful responses retain their existing behavior. This is a focused hotfix against the deployed code; it does not include the unmerged Jev feature.
Validation
spec-kit-api-error-review); Claude authentication failed and a separate local adversarial review completed instead.The original malformed upstream body was not retained. Production recovery will be verified after the authorized deployment.