@@ -266,16 +87,14 @@ export function AgentPage({ agents, page, proxy, account }: {
const [error, setError] = useState<{ page: AgentId | null; message: string }>();
const pageError = error?.page === page ? error.message : undefined;
const isChangeInProgress = isPreparingPlan || preparedChange !== undefined;
- const activeHub = account.account?.profile?.hubs.find((item) => item.hub_id === account.account?.active_hub_id);
const hub: Hub = {
...useHubTokens(account.account?.active_hub_id),
signedIn: account.signedIn,
- tokenSource: activeHub && (activeHub.is_personal ? "Токен из личного хаба" : `Токен из хаба ${hubDisplayName(activeHub)}`),
};
- const claudeDesktopToken = useTokenMenu("claude_desktop", agents.claude_desktop.status === "found" ? agents.claude_desktop.data.token : null, hub);
+ const claudeDesktopToken = getAgentToken("claude_desktop", agents.claude_desktop.status === "found" ? agents.claude_desktop.data.token : null, hub);
const claudeInstall = useDesktopInstall("claude");
// ChatGPT downloads use the token of the shared ChatGPT / Codex routing.
- const codexToken = useTokenMenu("codex", agents.codex.status === "found" ? agents.codex.data.token : null, hub);
+ const codexToken = getAgentToken("codex", agents.codex.status === "found" ? agents.codex.data.token : null, hub);
const chatGptInstall = useDesktopInstall("chatgpt");
async function prepare(change: AgentChange, token: TokenChoice | null) {
@@ -320,7 +139,7 @@ export function AgentPage({ agents, page, proxy, account }: {
Прокси для ChatGPT
- {chatGptProxyStopped && Прокси для ChatGPT не запущен, нажмите «Применить».}
+ {chatGptProxyStopped && Прокси для ChatGPT не запущен, нажмите «Завершить настройку».}
{codex.status === "found" && (
@@ -336,7 +155,7 @@ export function AgentPage({ agents, page, proxy, account }: {