fix(miniapp): finalize agent-generated updates - #1902
Merged
Conversation
Add a first-class FinalizeMiniApp tool that syncs source files, recompiles runtime output, and notifies open MiniApps. Track content hashes so no-op syncs and draft applies do not manufacture versions, and keep customization actions blocked until the Agent turn finishes. Document the active-app and draft workflows in the bundled skill.
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
Type and Areas
Type:
Bug fix / regression fix
Areas:
Rust product domains, Agent tools, MiniApp runtime, Web UI, bundled skills
Motivation / Impact
Agent-created MiniApps could report a newer version while the running application still used stale compiled content. Generic file edits had no explicit lifecycle handoff, open runtimes were not notified, and the skill did not require a final synchronization step. Users can now update generated MiniApps reliably, while no-op finalization keeps the existing version.
Verification
Reviewer Notes
A full cargo check --workspace was attempted. The Desktop Tauri build script stopped before compilation because src/mobile-web/dist is absent in this worktree. The non-Desktop workspace check and focused bitfun-core tests passed.
The persisted runtime.content_hash field is serde-defaulted for backward compatibility. Existing apps are upgraded when their runtime state is next loaded.
Checklist