Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(worktree): 为刷新提示的两段说明增加间距
fmfsaisai12dc5eccecb6
diff --git a/apps/desktop/scripts/fixtures/branch-sync/ui-page.mjs b/apps/desktop/scripts/fixtures/branch-sync/ui-page.mjsindex 29bfe52980..b3a8fa0ab2 100644--- a/apps/desktop/scripts/fixtures/branch-sync/ui-page.mjs+++ b/apps/desktop/scripts/fixtures/branch-sync/ui-page.mjs@@ -23,6 +23,18 @@ export default {});await trigger.waitFor();await ui.capture('capsule');+ if (ui.case === 'default' || ui.case === 'worker') {+ const action = page.getByRole('button', {+ name: await ui.t('newChat.branchSync.action', {+ remote: 'origin',+ remoteBranch: 'main',+ }),+ exact: false,+ });+ await action.hover();+ await page.getByRole('tooltip').waitFor();+ await ui.capture('action-hint');+ }if (ui.case === 'conflict' || ui.case === 'diverged') {const action = page.getByRole('button', {name: await ui.t(`newChat.branchSync.${ui.case}`, {diff --git a/apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx b/apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsxindex aa89c54946..bdb90ee2c3 100644--- a/apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx+++ b/apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx@@ -880,7 +880,11 @@ export function BranchWorktreeChip({side="top"className="max-w-[320px] whitespace-pre-line break-normal [overflow-wrap:anywhere]">- {sync.hint}+ <div className="space-y-2">+ {sync.hint.split('\n').map((paragraph, index) => (+ <p key={index}>{paragraph}</p>+ ))}+ </div></Tooltip.Content></Tooltip.Root>)}