Skip to content

Sync upstream v1.1.2 and remove duplicate goal implementation#2

Merged
Leeeon233 merged 46 commits into
mainfrom
codex/sync-upstream-goal-cleanup
Jul 10, 2026
Merged

Sync upstream v1.1.2 and remove duplicate goal implementation#2
Leeeon233 merged 46 commits into
mainfrom
codex/sync-upstream-goal-cleanup

Conversation

@Leeeon233

Copy link
Copy Markdown
Member

Summary

  • merge current agentclientprotocol/codex-acp upstream through v1.1.2
  • upgrade the ACP SDK to 1.2.1 and Codex runtime schema to 0.144.0
  • adopt upstream standard goal metadata and /goal command support
  • remove the fork's duplicate ACP thread/goal/* extension surface and local goal implementation
  • retain the fork's Plan Mode support

Upstream functionality included

  • standard goal updates through session_info_update._meta.codex.goal
  • boolean Fast config options
  • collaborative-agent tool-call events
  • completed-only image-generation events
  • response-item history fallback for recovered tool calls
  • ACP message IDs and agent-message phases
  • MCP elicitation support

Verification

  • npm run typecheck
  • npm test (295 passed, 28 skipped)
  • npm run build

acp-release-bot Bot and others added 30 commits June 25, 2026 12:33
* Update codex to 0.142.2

* fix: verify types and tests after codex update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Also sets up dependabot for just actions
* Add missing TypeScript semicolons

* Remove unused ACP namespace import

* Remove unused stdin close argument

* Clarify release archive and Codex update docs

* Remove duplicate sed range script pattern
…col#220)

* fix: keep exec command fallback tracking consistent

* Test response item history fallback statuses
)

Has the behavior from the old adapter of reading the env vars if one
isn't supplied.

Closes agentclientprotocol#234
…tprotocol#241)

Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [actions/create-github-app-token](https://github.com/actions/create-github-app-token) and [softprops/action-gh-release](https://github.com/softprops/action-gh-release).


Updates `actions/checkout` from 4 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v7)

Updates `actions/create-github-app-token` from 2 to 3
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](actions/create-github-app-token@v2...v3)

Updates `softprops/action-gh-release` from 2.6.2 to 3.0.1
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@3bb1273...718ea10)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/create-github-app-token
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Handle ACP request cancellation

ACP SDK v0.29.0 added support for the draft of request cancellation.

* Resolve turn interruption only on close cancellation
…ocol#224)

When resuming or loading a session, getResumeModelProvider() now reads
the model_provider value from Codex config (config/read) before falling
back to "openai". This fixes a v1.0.0 regression where sessions resumed
via ACP always used OpenAI even when ~/.codex/config.toml specified
model_provider = "azure".
* fix: Track configured auth for turn errors

Closes agentclientprotocol#244

* Clear session auth state on logout

* Refresh session auth state after logout

* Refresh session auth state after login

* Treat custom providers as auth configured

* Track auth state by model provider

* Normalize configured auth error responses

* Test provider auth state for restored sessions
…default (agentclientprotocol#199)

* fix: keep configured model id for custom providers instead of forcing the default

createModelId() looked up the configured/returned model id in Codex's
listModels() catalog and, when it was absent, substituted
availableModels.find(m => m.isDefault). Custom providers (self-hosted or
third-party endpoints) expose model ids that the catalog does not enumerate,
so this silently replaced the user's configured model with the built-in
default. That default id was then pinned onto every runTurn, making requests
to the custom endpoint fail with "unknown model '<default>'".

The Codex CLI handles the same case by keeping the configured model id and
warning "Model metadata not found. Defaulting to fallback metadata." This
change mirrors that behavior: keep the requested model id when it is not in
the catalog, and only fall back to isDefault when no model id was provided
at all. Downstream session state already degrades gracefully for unknown
models (supportedReasoningEfforts ?? [], inputModalities ?? ["text","image"]).

Adds unit tests covering an uncatalogued model id with and without an
explicit reasoning effort.

* Handle uncataloged current models in config

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
* Update codex to 0.142.3

* Fix types and tests after Codex update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Update codex to 0.142.4

* Fix types and tests after Codex update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: Add /goal support

* Suppress multiple identical notifications

* Wait on turns

* Wait for goal turn

* Add newlines after notifications

* Remove unsupported edit subcommand

* Handle goal commands without continuation turns

* Separate goal status updates from prior text

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Interrupt late-started goal commands on cancel

* Suppress stale turn notifications after routing them

* Wait for thread idle when no goal turn starts

* Handle cancellation before goal turn routing

* Wait for goal updates before finishing goal set

* Add grace periods for goal turn routing

* Wait for goal notifications in ACP client

* Wait for goal turn completion before resolving

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Use the active ACP session roots when publishing skill commands and handling /skills so Codex app-server does not fall back to the adapter process cwd.

Adds a portable e2e regression for repo-local skills under the session workspace.

Fixes agentclientprotocol#250
* Update ACP SDK v1.1 and dev tools

* Update diff dependency to v9
* Update codex to 0.142.5

* Fix types and tests after Codex update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
These were quite noisy and not always helpful. We can revisit with a new
status api in ACP
* Support boolean Fast mode config options

If the client expresses support for boolean config options, we can
provide it.

* Set fast mode config category to model config
ishulgin and others added 16 commits July 8, 2026 09:56
…entclientprotocol#273)

Bumps the github-actions group with 1 update: [openai/codex-action](https://github.com/openai/codex-action).


Updates `openai/codex-action` from 1.9 to 1.11
- [Changelog](https://github.com/openai/codex-action/blob/main/CHANGELOG.md)
- [Commits](openai/codex-action@10cb888...52fe01e)

---
updated-dependencies:
- dependency-name: openai/codex-action
  dependency-version: '1.11'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Support ACP form elicitation capability

* Auto-resolve stale user input elicitations

* Support Other answers in user input elicitations

* Complete accepted URL elicitations on resolution

* Disable app-server elicitation opt-in

* Remove request_user_input handling
Also uses the elicitation helpers
# Conflicts:
#	.github/workflows/e2e.yml
#	package-lock.json
#	package.json
#	readme-dev.md
#	src/CodexAcpServer.ts
#	src/CodexAppServerClient.ts
#	src/CodexCommands.ts
#	src/CodexEventHandler.ts
#	src/__tests__/CodexACPAgent/CodexAcpClient.test.ts
#	src/__tests__/CodexACPAgent/data/thread-goal-cleared.json
#	src/__tests__/CodexACPAgent/data/thread-goal-updated-multiline.json
#	src/__tests__/CodexACPAgent/data/thread-goal-updated.json
#	src/__tests__/CodexACPAgent/thread-goal-events.test.ts
@Leeeon233
Leeeon233 merged commit ad1e842 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants