Repository navigation
fix(codex): restore GitHub tools in Codex sessions - #128807
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready on exact head Completed:
ClawSweeper's latest comment is still the active-review placeholder and contains no finding or Post-merge proof will deploy the landed commit to Team and rerun a fresh RoboClaw Codex identity-status turn. |
|
Merged via squash.
|
|
Related follow-up: #141865 is now merged. This PR addressed the Codex host-tool construction omission. The later #151651 and #152073 work centralized GitHub-tool availability across continuations and harnesses. #141865 keeps that current implementation and separately fixes synthetic Gateway scope narrowing that discarded read/Talk access already implied by |
What Problem This Solves
Fixes an issue where agents using the Codex runtime could not inspect or use their prepared GitHub identity because the runtime omitted both
github_identity_statusandgithub_publishfrom the host tool surface.A fresh RoboClaw run on Team reproduced the problem: its managed
roboclaw-botOAuth identity verified successfully in Settings, but the agent reported that the identity-status tool was unavailable.Why This Change Was Made
The Gateway already prepares one bounded
githubPublicationAvailablefact for the admitted run. This change carries that fact through the Codex host-tool construction boundary, matching the embedded runtime instead of rediscovering identity or workspace state.The existing semantics remain intact: an unprepared run exposes neither GitHub tool, a prepared but non-publishable run exposes status only, and a publishable run exposes status plus publication. Normal tool-profile policy still applies.
User Impact
RoboClaw and other Codex-runtime agents can verify their effective managed GitHub account. Sessions with an eligible reconciled workspace can also request Gateway-owned GitHub publication, while cloud workers remain credential-free.
Evidence
extensions/codex/src/app-server/dynamic-tool-build.test.ts: 91 passed.pnpm build: passed. Two pre-existing Control UI ineffective-dynamic-import warnings remain unrelated.AI-assisted; the implementation and proof were reviewed by the maintainer.