From 10cf60989a9909c065bff06d59da7bb1e7fa476e Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Sun, 14 Jun 2026 14:30:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(effort):=20/effort=20=E6=97=A0=E5=8F=82?= =?UTF-8?q?=E6=97=B6=E6=8C=82=E8=BD=BD=20EffortPanel=20=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 无参 → 透传 AppState.effortValue - current/status → 仍显示文本(不变) - 有参 → 直跳 executeEffort(不变) - help/-h/--help → 不变 Co-Authored-By: glm-5.2 --- src/commands/effort/effort.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/commands/effort/effort.tsx b/src/commands/effort/effort.tsx index 4b1d76b58..4967e4943 100644 --- a/src/commands/effort/effort.tsx +++ b/src/commands/effort/effort.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import { EffortPanel } from '../../components/EffortPanel/EffortPanel.js'; import { useMainLoopModel } from '../../hooks/useMainLoopModel.js'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, @@ -161,9 +162,18 @@ export async function call(onDone: LocalJSXCommandOnDone, _context: unknown, arg } if (!args || args === 'current' || args === 'status') { - return ; + if (args === 'current' || args === 'status') { + return ; + } + // 完全无参 → 打开交互面板 + return ; } const result = executeEffort(args); return ; } + +function EffortPanelWrapper({ onDone }: { onDone: (result: string) => void }): React.ReactNode { + const effortValue = useAppState(s => s.effortValue); + return ; +}