mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
feat(arena): Short worktree names and UX improvements
- Use 8-char short names derived from session UUID for worktrees - Fix cleanup to use short worktreeDirName - Simplify model display names (remove authType prefix) - Improve messaging when <2 models available - Show agent worktree paths in startup output Prevents long path issues and provides clearer model setup guidance. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
c905b94d78
commit
fa2f2fd5ce
4 changed files with 85 additions and 22 deletions
|
|
@ -49,7 +49,9 @@ export function ArenaStartDialog({
|
|||
const selectableModelCount = modelItems.filter(
|
||||
(item) => !item.disabled,
|
||||
).length;
|
||||
const shouldShowMoreModelsHint = selectableModelCount < 3;
|
||||
const needsMoreModels = selectableModelCount < 2;
|
||||
const shouldShowMoreModelsHint =
|
||||
selectableModelCount >= 2 && selectableModelCount < 3;
|
||||
|
||||
useKeypress(
|
||||
(key) => {
|
||||
|
|
@ -107,13 +109,28 @@ export function ArenaStartDialog({
|
|||
</Box>
|
||||
)}
|
||||
|
||||
{hasDisabledQwenOauth && (
|
||||
<Box marginTop={1}>
|
||||
<Text color={theme.text.secondary}>
|
||||
{t(
|
||||
'qwen-oauth models are disabled because they are not supported in Arena.',
|
||||
)}
|
||||
</Text>
|
||||
{(hasDisabledQwenOauth || needsMoreModels) && (
|
||||
<Box marginTop={1} flexDirection="column">
|
||||
{hasDisabledQwenOauth && (
|
||||
<Text color={theme.status.warning}>
|
||||
{t('Note: qwen-oauth models are not supported in Arena.')}
|
||||
</Text>
|
||||
)}
|
||||
{needsMoreModels && (
|
||||
<>
|
||||
<Text color={theme.status.warning}>
|
||||
{t('Arena requires at least 2 models. To add more:')}
|
||||
</Text>
|
||||
<Text color={theme.status.warning}>
|
||||
{t(
|
||||
' - Run /auth to set up a Coding Plan (includes multiple models)',
|
||||
)}
|
||||
</Text>
|
||||
<Text color={theme.status.warning}>
|
||||
{t(' - Or configure modelProviders in settings.json')}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue