Skip to content

feat(studio): simplify MPA creation with runtime names and latest images - #21

Merged
superops-team merged 4 commits into
superops-team:mainfrom
PolarisCzh:czh/fix-mpa-tos-copy
Oct 9, 2026
Merged

superops-team merged 4 commits into
superops-team:mainfrom
PolarisCzh:czh/fix-mpa-tos-copy

Conversation

@PolarisCzh

@PolarisCzh PolarisCzh commented Oct 9, 2026 •

Copy link
Copy Markdown

Changes

Simplify Studio MPA creation to require a Runtime name and description instead of exposing generated Agent IDs and editable images. The backend derives a stable owner/request-scoped ID, injects it into the existing Agent/Worker flow, and forwards the entered name to the new Runtime. New requests use the published mpa/mpa_agent:latest and mpa/mpa_codex_worker:latest images in the configured Beijing registry.

Preserve submitted legacy requests, image snapshots, retry ownership and existing Runtime names. Retain the original TOS copy correction: blank credentials use server defaults, and mounting is disabled when none are configured. Update bilingual contracts/operator docs and packaged WebUI assets. No dependency or schema changes.

Invalid-name feedback now uses a red border/message and a valid-name placeholder. Shared Button disabled states visibly dim instead of looking clickable; correcting the name restores Next. All six variants and loading appearance have computed-style regression coverage.

Validation

  • Targeted backend/CLI: 481 passed; frontend: 1,377 Node tests + 54 component tests passed.
  • Added executable-line coverage: 100%; the feedback follow-up adds one covered JSX line (1/1), with CSS verified by computed styles and browser checks. Python coverage uses -o addopts='' to avoid the existing Pydantic warning-filter/pytest-cov import conflict.
  • Build, i18n, packaged assets, changed production Python Ruff/Pyright, new test Pyright, repository pre-commit secret scans and whitespace checks passed. A separate machine-local advisory commit scanner timed out at its two-second limit; the required repository Gitleaks and YAML scans completed successfully.
  • Browser with isolated fake APIs: name validation, removed controls, three-step/keyboard navigation, error/input locking and 390px layout verified. IME composition, retry and cancellation covered by component tests.
  • Full Python regression: 6,239 passed; 7 failures and 2 collection errors reproduce on the unchanged baseline (optional llama_index/anthropic dependencies and a host MIME-type assertion). Existing test-service Pyright errors also reproduce on the baseline.

Deployment

Updated the user-specified Studio to stable revision 38. The homepage references the new app JS and stylesheet, whose SHA256 values match the local build; all 44 existing environment values are unchanged. Packaged backend changes match the tested source. No real MPA provisioning or message-delivery E2E was run; mutable latest tags do not upgrade existing agents.

Design and detailed evidence: prd-spec/features/mpa-agent-oneclick-provision/2026-10-09-named-studio-creation.md and its Chinese counterpart.

名称示例文案

  • 名称输入框统一使用中性示例:中文 例如 test-agent,英文 e.g. test-agent;同步生成前端资源。无接口或运行行为变化,无新增可执行逻辑。
  • 验证:前端 1377 项 Node 测试及 54 项 Vitest 测试通过,生产构建、构建资源检查、全量 pre-commit 和 diff 空白检查通过。已检查构建产物包含新示例且不含旧示例;本次未进行真实浏览器回归或云端部署。

Clarify in Chinese and English that blank TOS fields preserve server defaults and disable mounting when none are configured. Rebuild packaged WebUI assets.

Validation: 1377 Node tests and 47 component tests passed; i18n catalogs, production build, packaged assets and all pre-commit hooks passed. Copy-only change; no runtime or API contract changes. Browser and cloud deployment checks were not run.
@PolarisCzh PolarisCzh changed the title fix(studio): clarify TOS mount defaults in MPA creation feat(studio): simplify MPA creation with runtime names and latest images Oct 9, 2026
@superops-team
superops-team merged commit 42b5062 into superops-team:main Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants