feat(console): "Edit with AI" — open the build agent pre-scoped to an app's package#2018
Merged
Conversation
… app's package ADR-0070 follow-up (UI half). Adds an "Edit with AI" action to each app in App Management that opens the build agent in a fresh conversation pre-scoped to that app's package: it navigates to `/ai/build?package=<packageId>&new=1`, and the AI chat page forwards the package as `context.packageId`. The cloud agent seeds it as the conversation's active package, so the AI's metadata reads scope to THIS app and edits bind to it from the first message (no reliance on the model calling set_active_package). Shown only for apps that have a package id. - AppManagementPage: a Sparkles "Edit with AI" button beside "Edit app". - AiChatPage: read `?package=` and forward it as `context.packageId` (threaded into ChatPane, the component that builds the chat request context). Pairs with the cloud seeding mechanism (objectstack-ai/cloud#590). Type-check clean (app-shell + console); app-shell 927 + console 4656 tests pass, 0 regressions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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
Adds an "Edit with AI" action to each app in App Management that opens the build agent in a fresh conversation pre-scoped to that app's package.
AppManagementPage— aSparkles"Edit with AI" button beside "Edit app", shown for apps that have a package id. It navigates to/ai/build?package=<packageId>&new=1.AiChatPage— reads the?package=query param and forwards it to the build agent ascontext.packageId(threaded intoChatPane, the component that builds the chat request context).Why
ADR-0070 made the conversation's active package load-bearing (scoping + the keystone). Resuming a conversation already keeps editing the same app, but opening an existing app to edit in a new conversation had no signal — so the AI wasn't scoped to that app, and a granular edit could scatter into a fresh package unless the model remembered to call
set_active_package. This supplies the signal: the cloud agent seedscontext.packageIdas the conversation's active package, so the AI's reads scope to THIS app and edits bind to it from the first message.Pairs with
The cloud seeding mechanism: objectstack-ai/cloud#590 (already merged).
context.packageIdis optional and backward-compatible.Verification
@object-ui/app-shell(0 errors) +apps/console(0 errors).ChatPaneprop — the chat context is built in the child component, not the page.)🤖 Generated with Claude Code