Repository navigation
Ask Muse Spark about a story's change - #62
Merged
Merged
Conversation
…rom GitHub Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cleanup pass: the route gets the review API's errors, body parsing, and headers through an extra-routes hook, how an answer ends is read in one place, and what's kept of the code is what's sent rather than all GitHub returned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On a changed story's page at
hackathon.selfie.dev, anyone can now ask Muse Spark about the change. It reads the before, after, and diff images, and the commits and code diff from GitHub since the commit that was approved. The answer streams in, and the page says what code it read and what it left out. Spec:docs/specs/chat.md.muse-spark-1.3on Meta's Responses API, standard mode, withstore: false. Nothing of a conversation is kept on the server: the page holds it and sends it with each question.createReviewApi. It isn't onReviewSource, soselfie uiis unchanged.Testing:
pnpm testandpnpm typecheckpass. The route runs in the workerd suite with stand-ins for GitHub and the model. One real call to Meta's API, with a rendered image, returned the stream the parser expects. The 8 newParts/Chatstories rendered with no failures./simplifyran. Left as they are: sharing the notes form, since Enter, controlled text, and restoring a failed question all differ; a single-story comparison in the store; and sending image URLs in place ofdata:URLs, which the spec doesn't allow.🤖 Generated with Claude Code