From 5be8f608109843fce94f21fd75287f8d4fee3ec6 Mon Sep 17 00:00:00 2001 From: chengluyu <2239547+chengluyu@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:43:31 +0800 Subject: [PATCH 1/5] fix(web): refine goal mode controls --- .../kimi-web/src/components/chat/Composer.vue | 3 +- .../src/components/chat/GoalStrip.vue | 211 ++++++++++++++++-- apps/kimi-web/src/i18n/locales/en/status.ts | 3 + apps/kimi-web/src/i18n/locales/zh/status.ts | 3 + 4 files changed, 200 insertions(+), 20 deletions(-) diff --git a/apps/kimi-web/src/components/chat/Composer.vue b/apps/kimi-web/src/components/chat/Composer.vue index 368069faaf..336e777696 100644 --- a/apps/kimi-web/src/components/chat/Composer.vue +++ b/apps/kimi-web/src/components/chat/Composer.vue @@ -1236,7 +1236,8 @@ function selectModel(modelId: string): void { --composer-send-inset: var(--space-2); position: relative; border: 1px solid var(--line); - border-radius: calc((var(--composer-send-size) / 2) + var(--composer-send-inset)); + border-radius: calc((var(--composer-send-size) / 2) + var(--composer-send-inset) + var(--space-3)); + corner-shape: superellipse(1.5); background: var(--bg); box-shadow: var(--shadow-md); transition: border-color 0.15s, box-shadow 0.15s; diff --git a/apps/kimi-web/src/components/chat/GoalStrip.vue b/apps/kimi-web/src/components/chat/GoalStrip.vue index 11dab6b78c..61cd7032d7 100644 --- a/apps/kimi-web/src/components/chat/GoalStrip.vue +++ b/apps/kimi-web/src/components/chat/GoalStrip.vue @@ -1,5 +1,5 @@ + {{ t('status.goalLabel') }} {{ goal.objective }} - + {{ goal.objective }} Done when @@ -73,7 +125,7 @@ function formatMs(ms: number): string { - + + + + + {{ t('status.goalCancelConfirm') }} + + + {{ t('status.goalCancelConfirmNo') }} + + + {{ t('status.goalCancelConfirmYes') }} + + + + diff --git a/apps/kimi-web/src/i18n/locales/en/status.ts b/apps/kimi-web/src/i18n/locales/en/status.ts index 8b7f022785..23f7f2cbbe 100644 --- a/apps/kimi-web/src/i18n/locales/en/status.ts +++ b/apps/kimi-web/src/i18n/locales/en/status.ts @@ -28,6 +28,9 @@ export default { goalPause: 'Pause', goalResume: 'Resume', goalCancel: 'Cancel', + goalCancelConfirm: 'Cancel this goal? It cannot be resumed afterwards.', + goalCancelConfirmYes: 'Yes', + goalCancelConfirmNo: 'No', goalStatusActive: 'Active', goalStatusPaused: 'Paused', goalStatusBlocked: 'Blocked', diff --git a/apps/kimi-web/src/i18n/locales/zh/status.ts b/apps/kimi-web/src/i18n/locales/zh/status.ts index 0256b119b3..b88d7907a9 100644 --- a/apps/kimi-web/src/i18n/locales/zh/status.ts +++ b/apps/kimi-web/src/i18n/locales/zh/status.ts @@ -28,6 +28,9 @@ export default { goalPause: '暂停', goalResume: '继续', goalCancel: '取消', + goalCancelConfirm: '是否需要取消当前目标?取消后将无法恢复。', + goalCancelConfirmYes: '是', + goalCancelConfirmNo: '否', goalStatusActive: '进行中', goalStatusPaused: '已暂停', goalStatusBlocked: '已阻塞', From b178cf4a7a80294e9842608840ace0e2ed3dca56 Mon Sep 17 00:00:00 2001 From: chengluyu <2239547+chengluyu@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:44:34 +0800 Subject: [PATCH 2/5] fix(web): hide goal progress without budget --- apps/kimi-web/src/components/chat/GoalStrip.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/kimi-web/src/components/chat/GoalStrip.vue b/apps/kimi-web/src/components/chat/GoalStrip.vue index 61cd7032d7..67e073b622 100644 --- a/apps/kimi-web/src/components/chat/GoalStrip.vue +++ b/apps/kimi-web/src/components/chat/GoalStrip.vue @@ -110,7 +110,7 @@ onBeforeUnmount(() => setCancelConfirmOpen(false)); size="sm" class="goal-status" >{{ goalStatusLabel(goal.status) }} - + From 78ef28ba2bdf9eec76e6a054d5499481cd99b557 Mon Sep 17 00:00:00 2001 From: chengluyu <2239547+chengluyu@users.noreply.github.com> Date: Tue, 14 Jul 2026 12:46:29 +0800 Subject: [PATCH 3/5] fix(web): use design system for goal cancellation --- .../src/components/chat/GoalStrip.vue | 144 +++--------------- 1 file changed, 21 insertions(+), 123 deletions(-) diff --git a/apps/kimi-web/src/components/chat/GoalStrip.vue b/apps/kimi-web/src/components/chat/GoalStrip.vue index 67e073b622..b09998f799 100644 --- a/apps/kimi-web/src/components/chat/GoalStrip.vue +++ b/apps/kimi-web/src/components/chat/GoalStrip.vue @@ -1,7 +1,8 @@ @@ -154,45 +116,19 @@ onBeforeUnmount(() => setCancelConfirmOpen(false)); {{ t('status.goalResume') }} - - - - {{ t('status.goalCancel') }} - - + + + {{ t('status.goalCancel') }} + - - - - {{ t('status.goalCancelConfirm') }} - - - {{ t('status.goalCancelConfirmNo') }} - - - {{ t('status.goalCancelConfirmYes') }} - - - -
{{ t('status.goalCancelConfirm') }}