Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/t3code/server-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"driver": "claudeAgent",
"displayName": "Claude (CLIProxy)",
"enabled": true,
"homePath": "~/.claude-cliproxy",
"environment": [
{
"name": "ANTHROPIC_BASE_URL",
Expand All @@ -29,6 +28,7 @@
}
],
"config": {
"homePath": "~/.claude-cliproxy",
"launchArgs": "",
"autoCompactWindow": ""
}
Expand All @@ -37,7 +37,6 @@
"driver": "codex",
"displayName": "Codex (CLIProxy)",
"enabled": true,
"homePath": "~/.codex-t3/cliproxy",
"environment": [
{
"name": "CLIPROXY_API_KEY",
Expand All @@ -46,6 +45,7 @@
}
],
"config": {
"homePath": "~/.codex-t3/cliproxy",
"launchArgs": ""
}
}
Expand Down
14 changes: 14 additions & 0 deletions spec/t3code_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ When run env HOME="$TEMP_DIR" bash -c "bash '$SETTINGS_SCRIPT' '$MANAGED_SERVER'
The status should be success
End

# T3 Code's ProviderInstanceConfig schema has no top-level homePath; the
# drivers read it from the opaque `config` blob. Keeping it at the top level
# makes T3 drop it on rewrite, so the instance falls back to the login-backed
# default home and reports the stale credential as logged out.
It 'carries the instance home path inside the config blob'
When run bash -c "jq -e '.providerInstances[\"claude-cliproxy\"].config.homePath == \"~/.claude-cliproxy\" and .providerInstances[\"codex-cliproxy\"].config.homePath == \"~/.codex-t3/cliproxy\"' '$MANAGED_SERVER' >/dev/null"
The status should be success
End

It 'declares no top-level home path on the managed instances'
When run bash -c "jq -e '[.providerInstances[] | select(has(\"homePath\"))] | length == 0' '$MANAGED_SERVER' >/dev/null"
The status should be success
End

It 'injects the CLIProxy key from the dotenv'
cat >"$TEMP_DIR/.env" <<'ENV'
CLIPROXY_API_KEY=test_cliproxy_key
Expand Down
Loading