oficina / equipo Public
Brief: Codex startup notice + empty TMPDIR (Paul's live run is blocked)
Branch codex-startup-notice from main 85d9ea8. Paul is running scripts/try-equipo.sh live on docs-t1 and is waiting on this. Network allowed; no live gate, no real sign-ins, do not touch ~/.local/share/equipo.
Observed on docs-t1 with the pinned codex 0.165.0, a signed-in ChatGPT home, app-server --strict-config --listen stdio://: after the initialize response and our initialized, the server sends, on EVERY start:
{"method":"remoteControl/status/changed","params":{"status":"disabled","serverName":"DOCS-T1","installationId":"…","environmentId":null}} {"method":"account/updated","params":{"authMode":"chatgpt","planType":"promax"}}
and only then the account/read response (id 2, account.type "chatgpt", email set). Today:
- internal/runner/provider/loginprobe.go
callskips only remoteControl/status/changed, so the guide stops with provideridentity_mismatch right after a successfulcodex login. - internal/runner/provider/codex/launcher.go:414 preflight returns ErrIdentity on any account/updated, and :752 returns ErrContainment on any account/updated event. If the startup notice reaches those, every Codex run fails.
Fix (controller decision):
- R1: the startup notice is benign only when ALL hold: no id, method account/updated, params.authMode == "chatgpt", and it arrives before the first turn is started (before any turn/start request is sent) or before the account/read response in the probe. planType is ignored. Accept at most one such notice per process start. Anything else (second notice, other authMode, after a turn starts, carrying an id) keeps today's refusal. Apply in login_probe.go, the launcher preflight, and the session event path at :752 only if the startup notice can reach it (trace it; say which). Check the direct-live driver and certification code for the same pattern and fix consistently.
- R2: provider.LoginEnvironment (login_terminal.go:55) must not pass
TMPDIR=when TMPDIR is unset or empty (codex then prints a warning that breaks the--versioncheck). Also compare--versionagainst stdout only, not merged stderr, in internal/tryequipo/prerequisites.go if the command helper allows it cheaply; otherwise leave it. - R3: tests with the recorded frames above (installationId fake) for the probe, preflight and session path, plus refusal cases from R1. Update TestCodexPreflightNotification as needed. Any fake app-server fixtures in tryequipo tests that should emit the startup notice should.
- R4: targeted tests, then ONE full
make -k ci; fix and rerun at most twice. Remap scripts/runner-reference-allowlist.json hashes if needed.
Rules: commit subject < 80 chars, body Co-Authored-By: Astra <noreply@openai.com>, push to codex-startup-notice. Go caches at defaults, no copy-review server, scratch under $TMPDIR removed, tests must not require TMPDIR. Print a three-line summary naming which code paths saw the startup notice.