feat(studio): coordinate integrated AI activity and internal language services
Start project-owned language and authenticated MCP services when opening a project, reusing the embedded LSP backend without a desktop TCP listener. Keep editor overlays separate from saved-file MCP queries. Reserve conflicting editing before ACP prompt delivery and retain protection through native/tool termination, runtime cleanup and document refresh. Preserve drafts on rejected admission, provide cleanup/preparation recovery, distinguish terminal outcomes and redact permission previews. Add lifecycle, language parity, activity, composition and UI regressions and update the canonical Studio contracts. Keep distribution update alignment as the separate WRK-002A follow-up. Validation: complete make -C tooling verify PASSED in 20261127T035822Z-ec5d9266 (1172 unit, 131 compiler fixture, 31 headless tests). Opt-in real-model and native AI-view qualification are outside that gate. Work: WRK-0029; decision: DEC-0001.
This commit is contained in:
@@ -152,3 +152,25 @@ Codex connection, sending, streaming, explicit permissions and cancellation foll
|
||||
[specification 16](16.%20Codex%20ACP%20Integration%20Specification.md). Asset attachment
|
||||
and persisted chat resumption remain future capabilities. Integration MUST preserve
|
||||
shared-composer ownership, independent drafts and the project lifetime boundary.
|
||||
|
||||
|
||||
## Project activity and readiness
|
||||
|
||||
Send MUST require ACP readiness and current project tool preparation. Authentication
|
||||
success alone MUST NOT imply MCP readiness. Preparation failures MUST remain
|
||||
visible, preserve drafts and offer an explicit retry. Activity admission and cleanup
|
||||
MUST run off FX through the shared Core guard. Admission refuses unsaved project
|
||||
buffers and conflicting manual/Play work without silent saving or stopping.
|
||||
|
||||
During admitted/finalizing AI work, the shell MUST stay in the AI area and disable
|
||||
conflicting project editing/Play/settings entry points. Chat selection, independent
|
||||
conversation drafts, reading, explicit permissions and Cancel remain usable. Model
|
||||
completion MUST wait for actual tool workers/runtime cleanup and document refresh
|
||||
before editing becomes available. Cleanup failure MUST retain protection, show the
|
||||
failure and provide an explicit cleanup retry. Cancel acknowledgement is not proof
|
||||
of termination.
|
||||
|
||||
Terminal presentation MUST distinguish `end_turn`, `cancelled`, `max_tokens`,
|
||||
`max_turn_requests`, `refusal`, transport failure and unknown interruption. Limited,
|
||||
refused and interrupted turns MUST NOT be shown as successful completion. Preserve
|
||||
the supplied stop reason without inventing missing tool outcomes.
|
||||
|
||||
Reference in New Issue
Block a user