perf(webui): streamline model preset saves (#6631)

* perf(webui): streamline model preset saves

* fix(webui): type optional settings usage payload
This commit is contained in:
chengyongru authored and GitHub committed 2026-11-11 22:02:42 +08:00
1 parent 3c61bcfdf0
commit 28d73b6942
10 files changed
+174 -59

No files matched your search

+2 -1
View File
@@ -29,6 +29,7 @@ UPDATE_CHANNEL_CAPABILITY = "webui.update-channels.v1"
CONTEXT_GRAPH_REFERENCES_CAPABILITY = "webui.context-graph.references.v1"
PROMPT_NAVIGATION_CAPABILITY = "webui.prompt-navigation.v1"
SANDBOX_SETTINGS_CAPABILITY = "webui.sandbox-settings.v1"
MODEL_PRESET_SAVE_CAPABILITY = "webui.model-preset-save.v1"
class Compatibility(TypedDict):
@@ -49,7 +50,7 @@ def webui_contract() -> dict[str, object]:
UPDATE_JOB_CAPABILITY, UPDATE_PREPARATION_CAPABILITY, UPDATE_EXECUTION_CAPABILITY,
UPDATE_RETRY_CAPABILITY, UPDATE_SETTLE_HANDOFF_CAPABILITY, UPDATE_FLOW_CAPABILITY, UPDATE_CHANNEL_CAPABILITY,
PROMPT_NAVIGATION_CAPABILITY, CONTEXT_GRAPH_REFERENCES_CAPABILITY,
SANDBOX_SETTINGS_CAPABILITY,
SANDBOX_SETTINGS_CAPABILITY, MODEL_PRESET_SAVE_CAPABILITY,
],
}