codex-cli 0.3.4 published WASM uses outdated socket ABI constants
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 66/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust, wasm
- Ambito
- build-system, networking, release, testing-qa
Direzione di ricerca
Start with toolchain/crates/libs/wasi-http/src/lib.rs and the codex-exec build and release path, then compare the published artifact with the repository constants and the host_net ABI. Use the ACP adapter at software/codex/src/adapter.ts to reproduce a session-level connection, and verify that a rebuilt published artifact passes an artifact-level network smoke test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
@agentos-software/[email protected] fails to connect to ChatGPT when used with @rivet-dev/[email protected] / @rivet-dev/[email protected]. The published codex-exec WASM artifact passes Linux socket constants to the current host_net WASI ABI.
Environment
- macOS arm64, Node 25.8.1
- AgentOS / core 0.2.20, Codex CLI package 0.3.4
- Actor server/client session flow; also reproduced in a separate core VM session
- Valid ChatGPT device-login credentials, no API key
- ACP adapter from repository revision
0f2c8319f802dd31d43645eed88198522b8dc82a(software/codex/src/adapter.ts), because the separately published CLI artifact does not register an agent
Reproduction
- Install the versions above and the repository's Codex ACP adapter.
- Make the package executable and its directories traversable by the guest user. Supply a dedicated, guest-readable Codex home containing valid ChatGPT login credentials.
- Set
forced_login_method = "chatgpt"andcli_auth_credentials_store = "file"in that home's config. - Open a Codex session and send a simple prompt.
Session creation succeeds, but the prompt fails:
stream disconnected before completion: socket error: connect(chatgpt.com:443) failed: errno 23
The runtime's errno 23 is EHOSTUNREACH. Host HTTPS, guest JavaScript HTTPS, and guest IPv4 DNS/TCP tests succeed. A fresh actor reproduces the same error.
Artifact evidence
SHA-256 of the extracted, unmodified bin/codex-exec:
fd3c6ce268e7c952dedc1aa7df637bc26d1a2b2c7a9180130bed8cf99d86b993
Disassembly immediately before call 9 <host_net.net_socket>:
10e29c: i32.const 2
10e29e: i32.const 1
10e2a0: i32.const 0
10e2a2: local.get 2
10e2a4: i32.const 48
10e2a6: i32.add
10e2a7: call 9 <host_net.net_socket>
Current repository toolchain/crates/libs/wasi-http/src/lib.rs uses AF_INET=1 and SOCK_STREAM=6. The runner's HOST_NET_AF_INET=1, HOST_NET_AF_INET6=2, and HOST_NET_SOCK_STREAM=6 agree. The published artifact still passes 2,1.
Confirmation
For diagnosis only, I verified the hash and instruction bytes, then changed the two constants to 1,6 without changing credentials, endpoint, runtime, or adapter. Two actor server/client prompts returned the requested response using the ChatGPT subscription. This is not proposed as a shipping binary patch.
Could you rebuild/publish the Codex CLI artifact from the corrected source and add an artifact-level network smoke test? It looks like the source correction exists but has not reached this published binary. I can provide a PR if the release/build path needs a change.
- Lingua principale
- Rust
- Stelle
- 4.7k
- Fork
- 263
- Merge medio
- 8h 57m
- PR unite (30g)
- 30
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rivet-dev/agentos
-
Python edits to filesystem.writeFile-created files are reverted by shadow reconciliationForse già presa @ankssjain l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
rivet-dev/agentos#2022 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 32/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
I maintainer di solito rispondono entro 1 giorno
-
Inline JavaScript resolves dynamic import() from / instead of the working directoryForse già presa @mittal-parth l’ha presa 18 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rivet-dev/agentos
Issue simili
-
status:needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agentic-os-org/ANOLISA#6742 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
git-ai-project/git-ai#2406 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
Kc1t/alethe-agents#312 ·
I maintainer di solito rispondono entro 3 giorni