aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT
- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser, device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity, runtime agent instance, backend-client e openapi-models, workspace routing. - Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin remoti (catalogo, sync, share), cyber access program, daybreak, cloud config e requirements (config_server ora fail-closed), attestation, frozen cloud skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/ routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime. - Messaggi d'errore senza link a chatgpt.com. - Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed. - Test: cancellati solo quelli del codice rimosso; test di sicurezza (sandbox estensioni, permessi, redazione, auth storage, requirements) adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents). - Istruzioni di sistema invariate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,92 +59,6 @@ cargo run -p codex-app-server-test-client -- \
|
||||
test-logout
|
||||
```
|
||||
|
||||
## Testing Plugin Analytics
|
||||
|
||||
The `plugin-analytics-smoke` command exercises `plugin/installed`, plugin
|
||||
enable/disable config writes, and a structured plugin mention through one
|
||||
app-server connection. Analytics are captured to a local JSONL file and are
|
||||
not sent to the analytics backend. The model turn uses a loopback Responses
|
||||
API server.
|
||||
|
||||
The selected plugin must already be installed and enabled remotely, and the
|
||||
active Codex profile must be authenticated. On a fresh local cache, the command
|
||||
retries ephemeral turns while the installed remote bundle finishes syncing.
|
||||
|
||||
```bash
|
||||
# Build a debug Codex binary; analytics capture is unavailable in release builds.
|
||||
cargo build -p codex-cli --bin codex
|
||||
|
||||
cargo run -p codex-app-server-test-client -- \
|
||||
--codex-bin ./target/debug/codex \
|
||||
plugin-analytics-smoke \
|
||||
--plugin-id linear@openai-curated-remote
|
||||
```
|
||||
|
||||
Use `--capture-file /tmp/plugin-analytics.jsonl` to select the output path.
|
||||
The command validates one `codex_plugin_disabled`, `codex_plugin_enabled`, and
|
||||
`codex_plugin_used` event with the expected local and remote plugin identities
|
||||
and capability metadata. Each event includes the local ID in `plugin_id` and the
|
||||
backend ID in `remote_plugin_id`. The enabled and disabled events come from
|
||||
successful writes to the temporary config; the command does not mutate the
|
||||
remote enabled state. It prints the events and leaves the JSONL file in place
|
||||
for inspection. It does not install or uninstall plugins and does not modify
|
||||
the profile's persistent config.
|
||||
|
||||
### Testing remote install and uninstall analytics
|
||||
|
||||
`plugin-analytics-mutation-smoke` is a manually invoked live smoke test. It
|
||||
contacts the configured remote plugin API and temporarily changes the active
|
||||
account's installed-plugin state. It is not run by `cargo test`, `just test`,
|
||||
or CI.
|
||||
|
||||
Choose a remote plugin that is available to the active account and is not
|
||||
currently installed. The command refuses to run when the plugin is already
|
||||
installed, installs it, validates `codex_plugin_installed`, uninstalls it, and
|
||||
validates `codex_plugin_uninstalled`, and verifies that the original
|
||||
uninstalled state was restored.
|
||||
|
||||
The mutation events include the local Codex ID in `plugin_id` and the backend ID
|
||||
in `remote_plugin_id`.
|
||||
|
||||
`--remote-plugin-id` takes the backend ID, such as `plugins~Plugin_...`, not the
|
||||
local `<plugin>@<marketplace>` ID.
|
||||
|
||||
```bash
|
||||
cargo run -p codex-app-server-test-client -- \
|
||||
--codex-bin ./target/debug/codex \
|
||||
plugin-analytics-mutation-smoke \
|
||||
--remote-plugin-id <REMOTE_PLUGIN_ID> \
|
||||
--confirm-account-mutation \
|
||||
--capture-file /tmp/plugin-mutation-analytics.jsonl
|
||||
```
|
||||
|
||||
Analytics use the normal queue, reduction, batching, and serialization path,
|
||||
but the debug capture destination suppresses analytics network delivery. The
|
||||
command prints one of these final states:
|
||||
|
||||
- `PASS`: the install and uninstall events validated and the plugin is uninstalled.
|
||||
- `FAIL-CLEAN`: validation failed, but the original uninstalled state was
|
||||
restored.
|
||||
- `FAIL-LOCAL-CACHE`: the backend is uninstalled, but local cleanup reported
|
||||
an error.
|
||||
- `FAIL-DIRTY`: cleanup failed and the plugin still appears installed.
|
||||
- `FAIL-UNKNOWN`: the command could not verify the final installed state.
|
||||
|
||||
For a dirty or uncertain result, retry cleanup with:
|
||||
|
||||
```bash
|
||||
cargo run -p codex-app-server-test-client -- \
|
||||
--codex-bin ./target/debug/codex \
|
||||
plugin-remote-uninstall \
|
||||
--remote-plugin-id <REMOTE_PLUGIN_ID> \
|
||||
--confirm-account-mutation
|
||||
```
|
||||
|
||||
Cleanup does not require analytics capture or a debug Codex binary. When the
|
||||
smoke uses global `--config` overrides, its printed recovery command preserves
|
||||
them so cleanup targets the same backend and account.
|
||||
|
||||
## Watching Raw Inbound Traffic
|
||||
|
||||
Initialize a connection, then print every inbound JSON-RPC message until you stop it with
|
||||
|
||||
Reference in New Issue
Block a user