diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue
index 5f13f479..596ded20 100644
--- a/static/src/components/input/InputComposer.vue
+++ b/static/src/components/input/InputComposer.vue
@@ -390,7 +390,7 @@
:disabled="!isConnected || streamingMessage"
@click="$emit('open-versioning-dialog')"
>
- 版本控制:{{ versioningEnabled ? '开启' : '关闭' }}
+ 版本控制
{
return matched ? matched.label : props.currentPermissionMode;
});
-const currentExecutionLabel = computed(() => {
- const options = props.executionModeOptions || [];
- const currentMode = String(props.currentExecutionMode || '');
- const currentMatched = options.find((item) => item.value === currentMode);
- return currentMatched ? currentMatched.label : currentMode;
+const currentExecutionShortLabel = computed(() => {
+ const mode = String(props.currentExecutionMode || '');
+ if (mode === 'direct') return '完全访问';
+ if (mode === 'sandbox') return '沙箱';
+ return mode;
});
const modelContextWindow = computed(() => {
diff --git a/static/src/styles/components/input/_composer.scss b/static/src/styles/components/input/_composer.scss
index cf13b3ec..92c3bbec 100644
--- a/static/src/styles/components/input/_composer.scss
+++ b/static/src/styles/components/input/_composer.scss
@@ -528,6 +528,14 @@ body[data-theme='light'] {
transition: transform 0.18s ease;
}
+.permission-switcher__exec {
+ color: var(--text-secondary);
+}
+
+.permission-switcher__exec--warn {
+ color: var(--state-warning);
+}
+
.permission-switcher__caret.open {
transform: rotate(270deg);
}