Repository navigation
Continue Sites builds across model turns with durable compaction - #939
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: recoupable/api/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was successfully deployed
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.
Site generation previously required the complete HTML, CSS and JavaScript in one model response. An output cutoff discarded the build even when the task needed more calls.
Replace that single response with an incremental builder using write_file, patch_file and finish tools. The workflow checkpoints each model turn independently, including review-driven rebuilds. Output-limited turns continue with saved files and valid signed reasoning; incomplete tool calls are not replayed. Conversation compacts before it grows too large, or after a recognized context-length rejection, retaining exact source files, the original task, assets, art direction and the agent-maintained working summary. There is no fixed builder turn-count limit; existing credit checks and provider failure handling remain in effect. Existing artifact validation and browser review still gate the completed draft.
Validation: all 136 Sites tests pass, including continuation, reasoning preservation, compaction, invalid-source repair and a 12-turn durable loop. Changed-file lint passes. Type checking reports existing unrelated errors, none in changed files. Real Moonwalk end-to-end verification remains pending: the prior isolated Supabase preview was retired after database PR #80 merged. The prior 64K output fix was merged in #938.
Summary by cubic
Site generation previously required the complete HTML, CSS and JavaScript in a single model response, and hitting the output limit discarded the build. Replaces that with an incremental builder that checkpoints each model turn independently and resumes after output-limited turns.
write_fileandpatch_filetools and submit viafinish; each completed file write is persisted per turn and orphaned tool calls are never replayed.All 136 Sites tests pass, including continuation, reasoning preservation, compaction, invalid-source repair, and a 12-turn durable loop. Real Moonwalk end-to-end verification remains pending.
Written for commit 5822e59. Summary will update on new commits.