fix(proxy): исправлены маршрутизация Codex и запуск Claude

- Зачем:
  - Codex app-server обходил прокси, а Claude удерживал окно Windows Terminal.
- Что:
  - добавлен общий ~/.codex/.env и упрощён запуск Codex Desktop.
  - ярлык Claude переведён на скрытый запуск через wscript.exe.
  - документация приведена в соответствие с новой схемой.
- Проверка:
  - соединения ChatGPT.exe и codex.exe направлены через 127.0.0.1:12334.
  - проверены синтаксис PowerShell, состояние chezmoi и ярлык; Claude проверен вручную.
This commit is contained in:
Dmitry Dementiev committed 2026-07-25 13:01:26 +03:00
1 parent 0e283daad8
commit 69507ce96c
5 files changed
+76 -64

No files matched your search

@@ -5,6 +5,7 @@ if (-not ($IsWindows -or $PSVersionTable.PSEdition -eq 'Desktop')) {
}
$LauncherPath = Join-Path $HOME '.local\bin\start-claude-proxy.ps1'
$LauncherHostPath = Join-Path $HOME '.local\bin\start-claude-proxy.vbs'
$ProgramsPath = [Environment]::GetFolderPath('Programs')
if ([string]::IsNullOrWhiteSpace($ProgramsPath)) {
Write-Warning 'Start Menu Programs folder was not found.'
@@ -12,17 +13,8 @@ if ([string]::IsNullOrWhiteSpace($ProgramsPath)) {
}
$ShortcutPath = Join-Path $ProgramsPath 'Claude Proxy.lnk'
$PwshAliasPath = Join-Path $env:LOCALAPPDATA 'Microsoft\WindowsApps\pwsh.exe'
$PwshCommand = Get-Command pwsh -ErrorAction SilentlyContinue
if (Test-Path -LiteralPath $PwshAliasPath) {
$TargetPath = $PwshAliasPath
} elseif ($null -ne $PwshCommand) {
$TargetPath = $PwshCommand.Source
} else {
$TargetPath = 'pwsh.exe'
}
$Arguments = "-NoLogo -NoProfile -ExecutionPolicy Bypass -File `"$LauncherPath`""
$TargetPath = Join-Path $env:WINDIR 'System32\wscript.exe'
$Arguments = "//NoLogo `"$LauncherHostPath`""
$WorkingDirectory = $env:USERPROFILE
function Get-ClaudeIconExecutable {
@@ -60,7 +52,7 @@ $ClaudeExecutable = Get-ClaudeIconExecutable
if ($null -ne $ClaudeExecutable) {
$IconLocation = "$ClaudeExecutable,0"
} else {
$IconLocation = "$TargetPath,0"
$IconLocation = "$LauncherPath,0"
}
New-Item -ItemType Directory -Path (Split-Path -Parent $ShortcutPath) -Force | Out-Null