Skip to content

fix(codex): restore GitHub tools in Codex sessions - #128807

Merged
steipete merged 1 commit into
mainfrom
fix/codex-github-tool-capability
Aug 24, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/codex-github-tool-capability

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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_status and github_publish from the host tool surface.

A fresh RoboClaw run on Team reproduced the problem: its managed roboclaw-bot OAuth 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 githubPublicationAvailable fact 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

  • Pre-fix focused regression: 2 failed and 2 passed because the Codex path omitted the prepared GitHub tools.
  • Post-fix focused regression: 4 passed.
  • Full extensions/codex/src/app-server/dynamic-tool-build.test.ts: 91 passed.
  • Changed checks for the two touched files: passed.
  • pnpm build: passed. Two pre-existing Control UI ineffective-dynamic-import warnings remain unrelated.
  • Structured autoreview at P1 breadth: clean, 0.98 confidence.
  • Production LOC: +1/-0. Tests: +53/-0.

AI-assisted; the implementation and proof were reviewed by the maintainer.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 24, 2026 17:00
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready on exact head 36353ed082f5f66f9602076ea2843b7f32526c00.

Completed:

  • Reproduced the live Team failure: RoboClaw's managed OAuth identity verified as roboclaw-bot, but the Codex run could not access github_identity_status.
  • Confirmed the owner-boundary omission and forwarded the already-prepared githubPublicationAvailable fact into Codex host-tool construction.
  • Regression demonstrated the pre-fix failure (2 failed / 2 passed), then passed all four capability/profile cases after the fix.
  • Full extensions/codex/src/app-server/dynamic-tool-build.test.ts — 91/91 passed.
  • Changed checks — passed.
  • pnpm build — passed; only two unrelated pre-existing Control UI ineffective-dynamic-import warnings appeared.
  • Fresh exact-head structured autoreview — clean, 0.95 confidence.
  • Exact-head CI run 32754085444 — green.
  • Repository-native review artifacts — validated READY FOR /prepare-pr, zero findings.

ClawSweeper's latest comment is still the active-review placeholder and contains no finding or Rank-up moves: entry. Per repository policy, the late publisher is not a landing blocker; there is nothing actionable to skip or apply.

Post-merge proof will deploy the landed commit to Team and rerun a fresh RoboClaw Codex identity-status turn.

@steipete
steipete merged commit 56664c5 into main Aug 24, 2026
182 checks passed
@steipete
steipete deleted the fix/codex-github-tool-capability branch August 24, 2026 17:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@VACInc

VACInc commented Sep 20, 2026

Copy link
Copy Markdown
Member

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 operator.write. This cross-link distinguishes tool registration/availability from permission loss; it does not attribute the newer defect to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants