Commit Graph

466 Commits

Author SHA1 Message Date
Sarah Fortune
48529f1a96 feat(onboard): offer codex migration after harness install (#81192)
Add a post-install seam so the wizard can prompt the user to import their
existing Codex CLI state (skills, archived config/hooks, advisory cached
plugins) through the existing `openclaw migrate codex` flow once the
harness plugin is in place. Fires on both fresh installs and repair runs;
the user can decline at any time.

Trigger sites, both routing through one helper:

- src/plugins/provider-auth-choice.ts: after
  `ensureCodexRuntimePluginForModelSelection` reports `installed: true`,
  dynamically import `offerPostInstallMigrations` and call it before the
  wizard moves on.
- src/commands/onboard-non-interactive/local/auth-choice.plugin-providers.ts:
  same call shape with `nonInteractive: true`, so the helper emits a hint
  line only and never mutates state.

Helper (src/wizard/setup.post-install-migration.ts) is generic, not
Codex-hardcoded — it resolves migration providers via the manifest
`migrationProviders` contract, filters to providers owned by plugins the
caller flags as installed in this onboarding step, runs `provider.detect`,
and on TTY hands accepted runs to `migrateDefaultCommand`. All detect,
prompt, and migrate failures are swallowed so onboarding never aborts on
this optional offer.

Also harden the Codex app-server subprocess lifecycle now that `detect()`
runs from a hotter onboarding path: isolate the plugin-install
`plugin/read` call (extensions/codex/src/migration/apply.ts) and have the
isolated request wait for child exit with a SIGKILL fallback
(extensions/codex/src/app-server/request.ts) so parents are not held open
by an orphaned codex binary.

Tests:

- src/wizard/setup.post-install-migration.test.ts (new, 10 cases)
- src/commands/onboard-non-interactive/local/auth-choice.plugin-providers.test.ts
  extended with hint-call assertions and a not-required-no-offer case.
2026-05-12 16:51:27 -07:00
Shakker
33e5f29d0a test: bar codex computer use setup calls 2026-05-12 21:17:56 +01:00
Shakker
97e44aca75 test: recount codex plugin refresh calls 2026-05-12 21:17:19 +01:00
Shakker
bebb36caa5 test: affirm codex native auth calls 2026-05-12 21:13:33 +01:00
Shakker
8cc5870b49 test: sharpen codex migration warnings 2026-05-12 21:12:27 +01:00
Kevin Lin
9ff5250792 fix(codex): gate migration on app readiness (#80815)
* fix(codex): gate migration on app readiness

* fix(codex): preserve source auth during migration

* fix(codex): isolate migration source app probes

* docs(codex): align migration readiness reasons

* docs(codex): remove stale auth-required source reason

* fix(codex): narrow native auth profile resolver input

* fix: clarify codex migration subscription gating

* refactor: simplify codex migration subscription gate

* fix: make codex app verification optional

* docs: clarify codex app inventory cache

* test: avoid map spread in migration test
2026-05-12 13:01:22 -07:00
Shakker
af20c89e83 test: weigh codex turn results 2026-05-12 20:53:50 +01:00
Shakker
7c5b3283d6 test: supply codex auth profile store 2026-05-12 20:49:47 +01:00
Shakker
81fe17c4a6 test: regularize codex collab statuses 2026-05-12 20:27:32 +01:00
Shakker
a5aadea756 test: persist codex collab terminal message 2026-05-12 20:26:56 +01:00
Shakker
354bb11702 test: originate codex collab task payloads 2026-05-12 20:26:01 +01:00
Shakker
108507f6a2 test: terminate codex subagent statuses 2026-05-12 20:24:55 +01:00
Shakker
5f68002509 test: shadow codex subagent task payloads 2026-05-12 20:24:10 +01:00
Shakker
b3ea131d51 test: box codex activation diagnostics 2026-05-12 20:11:54 +01:00
Peter Steinberger
7d9232a9a9 test: dedupe codex command mock reads 2026-05-12 18:30:47 +01:00
pashpashpash
36b9da5c91 Keep Codex media tools backed by auth profiles (#81059)
* fix(codex): pass auth profiles to dynamic tools

* fix: bump protobufjs past advisory range
2026-05-13 01:46:21 +09:00
Peter Steinberger
7b52b60051 test: dedupe codex side question mock calls 2026-05-12 16:13:08 +01:00
Peter Steinberger
250e16d3c9 test: dedupe codex conversation mock calls 2026-05-12 16:11:24 +01:00
Peter Steinberger
5ec4573604 test: dedupe codex elicitation mock calls 2026-05-12 13:48:28 +01:00
Peter Steinberger
14b871efd9 test: dedupe codex registration mock calls 2026-05-12 13:36:21 +01:00
Peter Steinberger
e9431e2dd4 test: dedupe codex run attempt hook mock calls 2026-05-12 13:04:34 +01:00
Peter Steinberger
c9ec1dea71 test: dedupe codex shared client mock calls 2026-05-12 13:01:48 +01:00
Peter Steinberger
5940d0d4b1 test: dedupe codex approval gateway mock calls 2026-05-12 12:55:50 +01:00
Peter Steinberger
dc0ebdfef8 test: guard codex command mock calls 2026-05-12 12:31:16 +01:00
Peter Steinberger
2ec1a27c9f test: guard extension channel mock calls 2026-05-12 11:19:53 +01:00
Peter Steinberger
04139a7d44 test: guard extension app mock calls 2026-05-12 11:07:04 +01:00
Peter Steinberger
a765668e63 test: guard extension one-hit mock calls 2026-05-12 10:00:29 +01:00
Mariano
d728ff8183 fix(codex): release quiet completed app-server turns (#80776)
Merged via squash.

Prepared head SHA: 59baf4110b

Reviewed-by: @mbelinky
2026-05-12 09:39:09 +02:00
Peter Steinberger
f6d787cc5c build: hard-pin dependency specs 2026-05-12 07:10:13 +01:00
Peter Steinberger
c98698aa0e chore: release 2026.5.12-beta.1 2026-05-12 06:33:41 +01:00
Sarah Fortune
c8998b71e2 fix(onboarding): use isolated codex app-server client for migration detect (#80822)
discoverInstalledCuratedPlugins acquired the shared Codex app-server client
to issue a one-shot plugin/list RPC against the source CODEX_HOME. The
shared slot kept the spawned child alive with stdio pipes attached to the
onboarding process, so the Node event loop never drained after the wizard
emitted its outro and the CLI appeared to hang.

The discovery RPC has its own one-off startOptions (custom CODEX_HOME,
HOME) that should never be reused for an agent session, so request it as
an isolated client. request.ts closes the child as soon as the call
returns, removing the dependence on process-exit harness disposal and
eliminating the post-onboarding hang.
2026-05-11 17:59:48 -07:00
Kevin Lin
8954c03231 fix(codex): default plugin destructive actions on (#80792) 2026-05-11 16:50:15 -07:00
Josh Lehman
4bfd7416f0 fix: stabilize code-mode follow-up tool display and replay (#80663)
* fix: project tool-search bridge event display

* fix: keep codex tool progress out of final replies

* fix: preserve tool result pairs on cleanup

* fix: restore tool search display target helper

* fix: keep tool search controls independent

* fix: render bridged tool calls like native tools

* fix: abort timed out tool search bridge calls

* fix: preserve code-mode tool results across display turns

* fix: repair missing code-mode tool results on disk

* fix: expose tool search controls in embedded runs

* docs: add code-mode followups changelog

* fix: update session repair agent-core import

* fix: harden code-mode follow-up repair

* fix: use stable session repair ids

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-11 15:31:35 -07:00
Eva
f7ab8c26b1 fix(codex): scale context engine projection (#80761)
* fix(codex): scale context engine projection

* fix: document Codex context projection scaling

* fix: document Codex context projection scaling

* fix: document Codex context projection scaling

* fix: document Codex context projection scaling

* chore: align Codex projection changelog

* chore: realign Codex projection changelog

* fix: isolate Codex projection patch

---------

Co-authored-by: Eva (agent) <eva+agent-78055@100yen.org>
Co-authored-by: Josh Lehman <josh@martian.engineering>
2026-05-11 15:29:59 -07:00
Kevin Lin
d06e85b0aa fix(codex): match connector app approvals by id 2026-05-11 13:19:56 -07:00
Peter Steinberger
6eccb0d3bf test: guard extension helper null checks 2026-05-11 21:18:51 +01:00
Peter Steinberger
93dd5e61ba test: guard multiline helper assertions 2026-05-11 20:49:23 +01:00
Peter Steinberger
3240aa7399 test: rely on codex approval event guard 2026-05-11 19:52:45 +01:00
Mariano
8c75ed3eaa Mirror Codex native subagents into task registry (#79512)
Merged via squash.

Prepared head SHA: 75bc96ad74
Co-authored-by: mbelinky <mbelinky@users.noreply.github.com>
Co-authored-by: marianobelinky <63976030+marianobelinky@users.noreply.github.com>
Reviewed-by: @pashpashpash
2026-05-11 20:52:41 +02:00
Peter Steinberger
c7584d5dc7 test: guard codex relay registrations 2026-05-11 19:36:35 +01:00
Peter Steinberger
e17dfb0014 test: guard extension mock helpers 2026-05-11 19:19:27 +01:00
Peter Steinberger
82a243d7b6 test: guard codex record assertions 2026-05-11 18:54:47 +01:00
Peter Steinberger
694f40fcee fix: constrain Codex app-server sandbox 2026-05-11 18:23:00 +01:00
Peter Steinberger
098469a2a1 test: remove codex pending-state sleeps 2026-05-11 17:47:41 +01:00
jeffjhunter
850d685d4b Fix Codex app-server OAuth harness auth 2026-05-11 15:54:43 +01:00
Peter Steinberger
09fcd19814 test: tighten codex event assertions 2026-05-11 14:42:25 +01:00
Peter Steinberger
c20d45e346 test: tighten codex binding assertions 2026-05-11 14:40:27 +01:00
Peter Steinberger
d2f578cbb4 fix: retire timed-out codex app-server clients 2026-05-11 14:26:56 +01:00
Shakker
19c66ad3fe test: pin Codex run attempt assertions 2026-05-11 14:24:01 +01:00
VACInc
6a741102d1 test(codex): keep native tool observability fixture generic 2026-05-11 14:23:46 +01:00