You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .codex-plugin/plugin.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "codex-fast-proxy",
3
3
"version": "0.1.0",
4
-
"description": "Codex App Fast/Priority proxy for third-party OpenAI-compatible Responses API providers.",
4
+
"description": "Codex App proxy for third-party OpenAI-compatible Responses API providers with Fast/Priority controls.",
5
5
"author": {
6
6
"name": "gaoguobin",
7
7
"url": "https://github.com/gaoguobin"
@@ -24,8 +24,8 @@
24
24
"skills": "./skills/",
25
25
"interface": {
26
26
"displayName": "Codex Fast Proxy",
27
-
"shortDescription": "Fast/Priority proxy for Codex App with third-party APIs.",
28
-
"longDescription": "Manage a local, safety-bounded proxy and Agent Skill so Codex App users on third-party OpenAI-compatible API providers can enable, verify, benchmark, update, and uninstall the Fast/Priority path.",
27
+
"shortDescription": "Third-party API proxy for Codex App with Fast/Priority controls.",
28
+
"longDescription": "Manage a local, safety-bounded proxy and Agent Skill so Codex App users on third-party OpenAI-compatible API providers can preserve the App Fast toggle, optionally force global Fast/Priority, split upstream auth for ChatGPT login, verify traffic, benchmark, update, and uninstall.",
Copy file name to clipboardExpand all lines: .codex/UPDATE.md
+48-1Lines changed: 48 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,16 @@ Fetch and follow instructions from https://raw.githubusercontent.com/gaoguobin/c
10
10
11
11
## Update steps
12
12
13
+
If the user only asks to check whether an update is available, run this read-only command and stop:
14
+
15
+
```powershell
16
+
python -m codex_fast_proxy check-update
17
+
```
18
+
19
+
Report the JSON, including `relation`, `update_available`, `local_changes`, and `next_action`. If
20
+
`relation=local_ahead`, do not report it as an available update. Do not pull, install, restart the
21
+
proxy, edit Codex config, or write proxy state unless the user then explicitly asks to update.
22
+
13
23
If the Codex environment uses sandbox or approval controls, request approval/escalation for the update block because it fetches from GitHub, installs a Python package, may write under `%USERPROFILE%\.codex`, may write `%USERPROFILE%\.codex\hooks.json`, and may create a junction under `%USERPROFILE%\.agents`.
14
24
15
25
If any command fails because of network, permissions, sandbox write limits, or junction creation, do not try unrelated workarounds. Ask for approval and rerun the same intended update step.
@@ -50,4 +60,41 @@ status JSON as the current state. If the skill was newly linked or changed, expl
50
60
请重启 Codex App 并回到这个对话,或新开 CLI 实例,让它重新扫描 ~/.agents/skills;然后再说“启用 Codex Fast proxy”。
51
61
```
52
62
53
-
If `install --start` ran during update, it refreshes `~/.codex/hooks.json` and enables Codex `SessionStart` autostart for future App/CLI starts. It also compares the running proxy runtime with the installed code; if the proxy is healthy but stale, it restarts the proxy before returning. Use the final `status` output to report `runtime_matches` and `needs_restart`. If `status.needs_restart` is still `true`, tell the user to restart Codex App or open a new CLI process; the `SessionStart` hook will retry the stale runtime restart when config still points to the local proxy. Codex may fire `SessionStart` for each new or resumed session; `autostart --quiet` does not log normal no-op checks.
63
+
If `install --start` ran during update, it refreshes `~/.codex/hooks.json` and enables Codex `SessionStart` autostart for future App/CLI starts. It also compares the running proxy runtime with the installed code; if the proxy is healthy but stale, explicit `install --start`/`start` may restart the proxy before returning. Use the final `status` output to report `runtime_matches` and `needs_restart`. If `status.needs_restart` is still `true`, tell the user to restart Codex App, open a new CLI process after the old proxy is gone, or run `python -m codex_fast_proxy start` when it is safe to refresh runtime code. Codex may fire `SessionStart` for each new or resumed session; `autostart --quiet` does not restart an already healthy proxy just because runtime code is stale, and it does not log normal no-op checks.
64
+
65
+
Current Codex builds may require trusted user hooks. After update, `startup_hook: true` means the
66
+
hook exists, is enabled, and its current command hash is trusted. If `startup_hook_trust` reports
67
+
`modified` or `untrusted`, rerun `python -m codex_fast_proxy install --start` before asking the user
68
+
to rely on autostart.
69
+
70
+
Current behavior after update:
71
+
72
+
- New installs default to `auto`: ChatGPT-login or unclear states preserve Codex App/CLI Fast UI
73
+
choices, while API-key mode can use global priority when Codex omits `service_tier`.
74
+
- Existing `service_tier_policy` and `upstream_api_key_env` settings are preserved during
75
+
`install --start`.
76
+
- Older installs that never recorded `service_tier_policy` and do not have `upstream_api_key_env`
77
+
are treated as `inject_missing` to keep their previous global Fast behavior. Missing policy plus
78
+
`upstream_api_key_env` is treated as App-controlled `preserve`, because that shape belongs to the
79
+
ChatGPT-login auth split path. If the user explicitly wants auto behavior, run:
80
+
81
+
```powershell
82
+
python -m codex_fast_proxy set-upstream --service-tier-policy auto
83
+
```
84
+
85
+
Do not pass `--restart` unless the user accepts interrupting current proxy-backed Codex sessions.
86
+
87
+
- For ChatGPT login compatibility after update, first prepare the provider key env without printing
88
+
the key, then configure only the upstream API key environment variable name:
0 commit comments