mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
fix(studio): the work-mode menu follows the board and no longer lists Ask
300px panel, a bold title with the scope on the right, two-line rows with a 12px description, the current row in a grey wash with a blue tick. The unimplemented Ask row and its two strings are gone; it comes back when the mode exists.
This commit is contained in:
1 parent
f0aca7b212
commit
9e95d0837e
4 files changed
+9
-6
No files matched your search
@@ -104,3 +104,11 @@
|
||||
.compose .studio-model-group { flex: none; margin-left: auto; }
|
||||
.compose .model-picker .nm { flex: none; max-width: none; }
|
||||
.compose .studio-model-control { flex: none; min-width: 0; }
|
||||
.composer-menu.mode-menu { width: 300px; padding: 0 0 6px; border-color: var(--border); }
|
||||
.mode-menu .mi.head { height: auto; padding: 12px 14px 8px; color: var(--faint); font: var(--w-reg) var(--fs-meta)/1.3 var(--ui); }
|
||||
.mode-menu .mi.head .lb { color: var(--text); font: var(--w-semi) var(--fs-ui)/1.3 var(--ui); }
|
||||
.mode-menu .mi.head .rt { color: var(--faint); font: var(--w-reg) var(--fs-meta)/1.3 var(--ui); }
|
||||
.mode-menu button.mi { box-sizing: border-box; width: calc(100% - 8px); margin: 0 4px 2px; padding: 7px 10px; }
|
||||
.mode-menu button.mi .lb { line-height: 1.4; }
|
||||
.mode-menu button.mi .ds { font: var(--w-reg) var(--fs-meta)/1.4 var(--ui); }
|
||||
:root .composer-menu.mode-menu .mi[data-on]::after { color: var(--net-ink); }
|
||||
@@ -1687,8 +1687,6 @@ export const EN: Record<string, string> = {
|
||||
"工作模式": "Work mode",
|
||||
"执行任务并使用已启用工具": "Run tasks with enabled tools",
|
||||
"先整理步骤,不写入文件": "Plan steps before changing files",
|
||||
"直接回答,不调用工具": "Answer directly without tools",
|
||||
"Ask(未实现)": "Ask (Not implemented)",
|
||||
"当前 Git 分支": "Current Git branch",
|
||||
"后续任务会继续使用这个分支": "Later tasks will continue on this branch",
|
||||
"由模型自动选择": "Let the model choose",
|
||||
|
||||
@@ -11,12 +11,10 @@ export const COMPOSER: Messages = {
|
||||
"composer.adding_attachments": { zh: "正在添加附件…", en: "Adding attachments…" },
|
||||
"composer.adopt": { zh: "采用", en: "Adopt" },
|
||||
"composer.an_attachment_failed_retry_or": { zh: "有附件添加失败,请重试或移除", en: "An attachment failed; retry or remove it" },
|
||||
"composer.answer_directly_without_tools": { zh: "直接回答,不调用工具", en: "Answer directly without tools" },
|
||||
"composer.answering": { zh: "正在回答", en: "Answering" },
|
||||
"composer.answers_chat_but_refuses_tool": { zh: "能对话但不接受工具调用,用不了", en: "Answers chat but refuses tool calls, so it cannot run here" },
|
||||
"composer.ask": { zh: "提问…", en: "Ask…" },
|
||||
"composer.ask_about_this_code_or": { zh: "在这里问关于这段代码、这个报错的问题:它只能读文件和搜索,不会改动任何东西。", en: "Ask about this code or this error here: it can only read files and search, and changes nothing." },
|
||||
"composer.ask_not_implemented": { zh: "Ask(未实现)", en: "Ask (Not implemented)" },
|
||||
"composer.ask_the_side_question": { zh: "向辅助会话提问", en: "Ask the side question" },
|
||||
"composer.availability_is_still_unknown": { zh: "尚未确认", en: "Availability is still unknown" },
|
||||
"composer.background_blocked": { zh: "后台 · 受阻", en: "Background · blocked" },
|
||||
|
||||
@@ -681,14 +681,13 @@ export function Composer({ port, status, running, queued = false, quote, restore
|
||||
ariaPressed={status?.plan ?? false}
|
||||
place="bottom"
|
||||
title={t("composer.work_mode")}
|
||||
menuClassName="composer-menu"
|
||||
menuClassName="composer-menu mode-menu"
|
||||
current={status?.plan ? "plan" : "agent"}
|
||||
pending={busy["plan"]}
|
||||
items={[
|
||||
{ value: "__mode", label: t("composer.work_mode"), right: t("common.current_task"), header: true },
|
||||
{ value: "agent", label: "Agent", desc: t("composer.run_tasks_with_enabled_tools") },
|
||||
{ value: "plan", label: "Plan", desc: t("composer.plan_steps_before_changing_files") },
|
||||
{ value: "ask", label: t("composer.ask_not_implemented"), desc: t("composer.answer_directly_without_tools"), disabled: true },
|
||||
]}
|
||||
onPick={(value) => change("plan", () => port.setPlanMode(value === "plan"))}
|
||||
label={<><StudioIcon name="agent" /><span className="studio-sr-label">{t("common.plan")}</span><span>{status?.plan ? "Plan" : "Agent"}</span><StudioIcon name="down" /></>}
|
||||
|
||||
Reference in new issue
Block a user