fix(agent): 解决 kimi code 初始化和登陆问题#1566
Conversation
解决kimi code初始化和登陆问题,Tutti 自己下载一个固定版本、带 SHA256 校验的 uv 私有副本,安装 kimi-code 时只使用这个私有 uv,就地安装,失败回滚;登陆只支持kimi会员使用,需要新增使用api_key使用 api_key使用时不掉用云端kimicode,改为调用本地kimicode,必须更新本地kimicode,tutti中的kimicode才会更新 Co-Authored-By: Claude <noreply@anthropic.com>
| targetSetupAuthFailed: "登录未完成", | ||
| targetSetupNoAuthMethods: "运行时未返回支持的登录方式,请重新检测", | ||
| targetSetupTerminalAuthHint: | ||
| "该登录方式需要在终端中完成。在终端运行以下命令,按提示完成登录后,回到这里点击「重新检测」。", |
There was a problem hiding this comment.
🟡 Chinese terminal sign-in hint ends with a forbidden full stop
The new Chinese sign-in hint text ends with a Chinese full stop 。 (zh-CN.agentGui.ts:64), which the repository's copy rule forbids, while every neighboring setup string in the same file avoids it.
Impact: The sign-in hint shown to Chinese users is punctuated inconsistently with the rest of the product's Chinese UI copy.
Rule source and inconsistency
AGENTS.md states: "Chinese user-facing UI copy must not end with a Chinese full stop (。); keep this punctuation rule consistent across settings and other product surfaces." Adjacent strings like targetSetupAuthRequired (packages/agent/gui/app/renderer/i18n/locales/zh-CN.agentGui.ts:42) and targetSetupNoAuthMethods (:62) end without 。. Only the trailing 。 is prohibited; the mid-sentence 。 is fine.
| "该登录方式需要在终端中完成。在终端运行以下命令,按提示完成登录后,回到这里点击「重新检测」。", | |
| "该登录方式需要在终端中完成。在终端运行以下命令,按提示完成登录后,回到这里点击「重新检测」", |
Was this helpful? React with 👍 or 👎 to provide feedback.
| targetSetupCommandCopied: "已复制", | ||
| targetSetupTerminalLoginStart: "开始登录", | ||
| targetSetupTerminalLoginWaiting: | ||
| "已在工作台中打开终端,请在终端中按提示完成登录,这里会自动检测登录状态。", |
There was a problem hiding this comment.
🟡 Chinese terminal waiting message ends with a forbidden full stop
The new Chinese "waiting for sign-in" message ends with a Chinese full stop 。 (zh-CN.agentGui.ts:69), which the repository's copy rule forbids, unlike the surrounding setup strings in the same file.
Impact: The waiting message shown to Chinese users is punctuated inconsistently with the rest of the product's Chinese UI copy.
Rule source
AGENTS.md: "Chinese user-facing UI copy must not end with a Chinese full stop (。); keep this punctuation rule consistent across settings and other product surfaces." Neighboring entries such as targetSetupChecking (packages/agent/gui/app/renderer/i18n/locales/zh-CN.agentGui.ts:53) end without 。.
| "已在工作台中打开终端,请在终端中按提示完成登录,这里会自动检测登录状态。", | |
| "已在工作台中打开终端,请在终端中按提示完成登录,这里会自动检测登录状态", |
Was this helpful? React with 👍 or 👎 to provide feedback.
| targetSetupTerminalLoginCancel: "取消", | ||
| targetSetupTerminalLoginTimedOut: "等待登录完成超时,请重试", | ||
| targetSetupTerminalLoginUnavailable: | ||
| "无法在此窗口打开终端,请复制命令后在自己的终端中执行。", |
There was a problem hiding this comment.
🟡 Chinese terminal-unavailable message ends with a forbidden full stop
The new Chinese "terminal unavailable" message ends with a Chinese full stop 。 (zh-CN.agentGui.ts:73), which the repository's copy rule forbids, unlike the surrounding setup strings in the same file.
Impact: The fallback message shown to Chinese users is punctuated inconsistently with the rest of the product's Chinese UI copy.
Rule source
AGENTS.md: "Chinese user-facing UI copy must not end with a Chinese full stop (。); keep this punctuation rule consistent across settings and other product surfaces." Sibling entries like targetSetupTerminalLoginTimedOut (packages/agent/gui/app/renderer/i18n/locales/zh-CN.agentGui.ts:71) end without 。.
| "无法在此窗口打开终端,请复制命令后在自己的终端中执行。", | |
| "无法在此窗口打开终端,请复制命令后在自己的终端中执行", |
Was this helpful? React with 👍 or 👎 to provide feedback.
解决kimi code初始化和登陆问题,Tutti 自己下载一个固定版本、带 SHA256 校验的 uv 私有副本,安装 kimi-code 时只使用这个私有 uv,就地安装,失败回滚;登陆只支持kimi会员使用,需要新增使用api_key使用
api_key使用时不掉用云端kimicode,改为调用本地kimicode,必须更新本地kimicode,tutti中的kimicode才会更新