Skip to content

feat(webui): trace SSR runtime dependencies - #968

Merged
alcholiclg merged 6 commits into
modelscope:mainfrom
Col0ring:feat/runtime-trace
Sep 11, 2026
Merged

feat(webui): trace SSR runtime dependencies#968
alcholiclg merged 6 commits into
modelscope:mainfrom
Col0ring:feat/runtime-trace

Conversation

@Col0ring

@Col0ring Col0ring commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Change Summary

  • Trace and package the WebUI SSR runtime dependency closure for image builds.
  • Add traced-cache handling and a configurable frontend runtime directory.
  • Keep keyboard-selected command suggestions visible.
  • Render antd's empty states with the project illustration and let an empty
    model picker add a model on the provider it is pointed at.
  • Stop add_model from writing a provider name and protocol.

Related issue number

N/A

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Relevant Python tests and frontend type checking pass
  • Documentation reflects the changes where applicable

- add `scripts/traceRuntime.ts` and a `build:image` script that assemble
  `build-runtime/` via @vercel/nft
- add `@vercel/nft`; drop `@react-router/serve`
- gate tracing behind `MS_AGENT_WEBUI_TRACE_RUNTIME` in
  `ms-agent ui --prepare-only` and stamp the cache as `traced`
- add a `--frontend-dir` launcher option that rejects a mismatched traced tree
- enable tracing in the Docker build and ignore local `build-runtime/`
Scroll the highlighted suggestion into view on keyboard navigation,
reset the selection when the filtered list changes, and guard Enter
against an empty list.
Create a new provider entry with only its `models` list, and cover adding
a model to a built-in provider in the SDK and backend tests.
- add an `xs` size to `EmptyState` and a `renderAntdEmpty` handler, wired
  into `ConfigProvider.renderEmpty` in `root.tsx`
- add the `common.noData` string to the en and zh locales
- add an "add model" action to the model selector's empty pane, linking to
  model settings with `?provider=` for the browsed provider
- read `?provider=` on the model settings page as the initial selection
- add the same action to the default-model picker, opening the model modal
  and selecting the saved model
@alcholiclg
alcholiclg merged commit 5bdaeb3 into modelscope:main Sep 11, 2026
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.

2 participants