Commit 2021b5f
feat(console): "Edit with AI" — open the build agent pre-scoped to an app's package (#2018)
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>1 parent 66316a3 commit 2021b5f
2 files changed
Lines changed: 31 additions & 0 deletions
File tree
- apps/console/src/pages/system
- packages/app-shell/src/console/ai
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
244 | 262 | | |
245 | 263 | | |
246 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
| |||
849 | 854 | | |
850 | 855 | | |
851 | 856 | | |
| 857 | + | |
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
| |||
920 | 926 | | |
921 | 927 | | |
922 | 928 | | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
923 | 932 | | |
924 | 933 | | |
925 | 934 | | |
| |||
935 | 944 | | |
936 | 945 | | |
937 | 946 | | |
| 947 | + | |
938 | 948 | | |
939 | 949 | | |
940 | 950 | | |
| |||
1040 | 1050 | | |
1041 | 1051 | | |
1042 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1043 | 1056 | | |
1044 | 1057 | | |
1045 | 1058 | | |
| |||
0 commit comments