Skip to content

Commit 4195656

Browse files
steipeteanyech
andcommitted
feat: support GPT-5.6 Ultra across agent runtimes
Co-authored-by: J Cai <[email protected]>
1 parent 067edbc commit 4195656

170 files changed

Lines changed: 7381 additions & 1149 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/openclaw-live-and-e2e-checks-reusable.yml‎

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ jobs:
439439
add_profile_suite native-live-src-gateway-profiles-google "stable full"
440440
add_profile_suite native-live-src-gateway-profiles-minimax "stable full"
441441
add_profile_suite native-live-src-gateway-profiles-openai "beta minimum stable full"
442+
add_profile_suite native-live-src-gateway-profiles-openai-api-default "stable full"
443+
add_profile_suite native-live-src-gateway-profiles-openai-gpt56-ultra "stable full"
442444
add_profile_suite native-live-src-gateway-profiles-fireworks "full"
443445
add_profile_suite native-live-src-gateway-profiles-deepseek "full"
444446
add_profile_suite native-live-src-gateway-profiles-opencode-go "full"
@@ -467,6 +469,10 @@ jobs:
467469
add_profile_suite live-cli-backend-docker "stable full"
468470
add_profile_suite live-acp-bind-docker "stable full"
469471
add_profile_suite live-codex-harness-docker "stable full"
472+
add_profile_suite live-codex-harness-gpt56-sol-docker "stable full"
473+
add_profile_suite live-codex-harness-gpt56-terra-docker "stable full"
474+
add_profile_suite live-codex-harness-gpt56-luna-docker "stable full"
475+
add_profile_suite live-codex-harness-gpt56-docker "stable full"
470476
add_profile_suite live-subagent-announce-docker "stable full"
471477
472478
add_profile_suite native-live-extensions-a-k "full"
@@ -2100,6 +2106,18 @@ jobs:
21002106
timeout_minutes: 60
21012107
profile_env_only: false
21022108
profiles: beta minimum stable full
2109+
- suite_id: native-live-src-gateway-profiles-openai-api-default
2110+
label: Native live gateway fresh OpenAI API-key default
2111+
command: OPENCLAW_LIVE_GATEWAY_OPENAI_API_DEFAULT=1 OPENCLAW_LIVE_GATEWAY_THINKING=off OPENCLAW_LIVE_GATEWAY_PROVIDERS=openai OPENCLAW_LIVE_GATEWAY_MAX_MODELS=1 OPENCLAW_LIVE_GATEWAY_STEP_TIMEOUT_MS=180000 OPENCLAW_LIVE_GATEWAY_MODEL_TIMEOUT_MS=600000 node .release-harness/scripts/test-live-shard.mjs native-live-src-gateway-profiles
2112+
timeout_minutes: 60
2113+
profile_env_only: false
2114+
profiles: stable full
2115+
- suite_id: native-live-src-gateway-profiles-openai-gpt56-ultra
2116+
label: Native live gateway OpenAI GPT-5.6 Ultra
2117+
command: OPENCLAW_LIVE_GATEWAY_THINKING=ultra OPENCLAW_LIVE_GATEWAY_PROVIDERS=openai OPENCLAW_LIVE_GATEWAY_MODELS=openai/gpt-5.6-sol,openai/gpt-5.6-terra,openai/gpt-5.6-luna OPENCLAW_LIVE_GATEWAY_STEP_TIMEOUT_MS=300000 OPENCLAW_LIVE_GATEWAY_MODEL_TIMEOUT_MS=900000 node .release-harness/scripts/test-live-shard.mjs native-live-src-gateway-profiles
2118+
timeout_minutes: 75
2119+
profile_env_only: false
2120+
profiles: stable full
21032121
- suite_id: native-live-src-gateway-profiles-fireworks
21042122
label: Native live gateway profiles Fireworks
21052123
command: OPENCLAW_LIVE_GATEWAY_PROVIDERS=fireworks node .release-harness/scripts/test-live-shard.mjs native-live-src-gateway-profiles
@@ -2322,7 +2340,7 @@ jobs:
23222340
echo "OPENCLAW_CLI_BACKEND_LOG_OUTPUT=1" >> "$GITHUB_ENV"
23232341
echo "OPENCLAW_TEST_CONSOLE=1" >> "$GITHUB_ENV"
23242342
;;
2325-
live-codex-harness-docker)
2343+
live-codex-harness*-docker)
23262344
# Keep CI on the API-key path for now. The staged Codex auth secret
23272345
# is currently stale, but the wrapper still supports codex-auth for
23282346
# local maintainer reruns without changing Peter's flow.
@@ -2454,6 +2472,27 @@ jobs:
24542472
timeout_minutes: 40
24552473
profile_env_only: false
24562474
profiles: stable full
2475+
- suite_id: live-codex-harness-gpt56-sol-docker
2476+
suite_group: live-codex-harness-gpt56-docker
2477+
label: Docker live Codex GPT-5.6 Sol Ultra
2478+
command: OPENCLAW_LIVE_CODEX_HARNESS_TARGETS=openai/gpt-5.6-sol=ultra OPENCLAW_LIVE_DOCKER_REPO_ROOT="$GITHUB_WORKSPACE" timeout --foreground --kill-after=30s 35m bash .release-harness/scripts/test-live-codex-harness-docker.sh
2479+
timeout_minutes: 40
2480+
profile_env_only: false
2481+
profiles: stable full
2482+
- suite_id: live-codex-harness-gpt56-terra-docker
2483+
suite_group: live-codex-harness-gpt56-docker
2484+
label: Docker live Codex GPT-5.6 Terra Ultra
2485+
command: OPENCLAW_LIVE_CODEX_HARNESS_TARGETS=openai/gpt-5.6-terra=ultra OPENCLAW_LIVE_DOCKER_REPO_ROOT="$GITHUB_WORKSPACE" timeout --foreground --kill-after=30s 35m bash .release-harness/scripts/test-live-codex-harness-docker.sh
2486+
timeout_minutes: 40
2487+
profile_env_only: false
2488+
profiles: stable full
2489+
- suite_id: live-codex-harness-gpt56-luna-docker
2490+
suite_group: live-codex-harness-gpt56-docker
2491+
label: Docker live Codex GPT-5.6 Luna Max
2492+
command: OPENCLAW_LIVE_CODEX_HARNESS_TARGETS=openai/gpt-5.6-luna=max OPENCLAW_LIVE_DOCKER_REPO_ROOT="$GITHUB_WORKSPACE" timeout --foreground --kill-after=30s 35m bash .release-harness/scripts/test-live-codex-harness-docker.sh
2493+
timeout_minutes: 40
2494+
profile_env_only: false
2495+
profiles: stable full
24572496
- suite_id: live-subagent-announce-docker
24582497
label: Docker live subagent announce
24592498
command: OPENCLAW_LIVE_DOCKER_REPO_ROOT="$GITHUB_WORKSPACE" timeout --foreground --kill-after=30s 20m bash .release-harness/scripts/test-live-subagent-announce-docker.sh
@@ -2565,7 +2604,7 @@ jobs:
25652604
echo "OPENCLAW_CLI_BACKEND_LOG_OUTPUT=1" >> "$GITHUB_ENV"
25662605
echo "OPENCLAW_TEST_CONSOLE=1" >> "$GITHUB_ENV"
25672606
;;
2568-
live-codex-harness-docker)
2607+
live-codex-harness*-docker)
25692608
echo "OPENCLAW_LIVE_CODEX_HARNESS_AUTH=api-key" >> "$GITHUB_ENV"
25702609
echo "OPENCLAW_LIVE_CODEX_HARNESS_DEBUG=1" >> "$GITHUB_ENV"
25712610
echo "OPENCLAW_CLI_BACKEND_LOG_OUTPUT=1" >> "$GITHUB_ENV"

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
66

77
### Changes
88

9+
- **GPT-5.6 Ultra and runtime switching:** support Sol, Terra, and Luna across OpenClaw and Codex engines; keep model, runtime, and thinking selection atomic through `/model` and fallback; and add live matrix coverage for both harnesses. (#98021) Thanks @anyech.
910
- **OpenAI GPT-5.6 defaults:** use `openai/gpt-5.6` (Sol alias) for fresh API-key setup and exact `openai/gpt-5.6-sol` for fresh Codex/OAuth setup, while preserving existing primaries, fallbacks, aliases, and explicit GPT-5.5 selections. (#103234)
1011
- **Meta provider:** add bundled `muse-spark-1.1` model support with Responses API streaming, tool calls, encrypted reasoning replay, onboarding, and standalone npm/ClawHub distribution. (#102873) Thanks @HamidShojanazeri.
1112
- **Android chat agent selector:** switch the active agent directly from the live chat screen while keeping chat, Talk mode, and home canvas on the same canonical session. (#80422) Thanks @bcperry.

‎docs/automation/cron-jobs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Every job carries exactly one payload kind, chosen by flag:
151151
On `cron edit`, removes the per-job model override so the job follows normal cron model precedence (stored cron-session override, else agent/default model). Cannot combine with `--model`.
152152
</ParamField>
153153
<ParamField path="--thinking" type="string">
154-
Thinking level override (`off|minimal|low|medium|high|xhigh|adaptive|max`).
154+
Thinking level override (`off|minimal|low|medium|high|xhigh|adaptive|max|ultra`). Available levels still depend on the selected model and agent runtime.
155155
</ParamField>
156156
<ParamField path="--clear-thinking" type="boolean">
157157
On `cron edit`, removes the per-job thinking override. Cannot combine with `--thinking`.

‎docs/help/testing-live.md‎

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ Docker notes:
288288
- Goal: validate the plugin-owned Codex harness through the normal gateway
289289
`agent` method:
290290
- load the bundled `codex` plugin
291-
- select `openai/gpt-5.5`, which routes OpenAI agent turns through Codex by default
292-
- send a first gateway agent turn to `openai/gpt-5.5` with the Codex harness selected
291+
- select an OpenAI model through `/model <ref> --runtime codex`
292+
- send a first gateway agent turn with the requested thinking level
293293
- send a second turn to the same OpenClaw session and verify the app-server
294294
thread can resume
295295
- run `/codex status` and `/codex models` through the same gateway command
@@ -299,15 +299,22 @@ Docker notes:
299299
denied so the agent asks back
300300
- Test: `src/gateway/gateway-codex-harness.live.test.ts`
301301
- Enable: `OPENCLAW_LIVE_CODEX_HARNESS=1`
302-
- Default model: `openai/gpt-5.5`
302+
- Harness baseline model: `codex/gpt-5.5`
303+
- Fresh OpenAI API-key selection default: `openai/gpt-5.6`
304+
- Default thinking: `low`
305+
- Model override: `OPENCLAW_LIVE_CODEX_HARNESS_MODEL=openai/<model>`
306+
- Thinking override: `OPENCLAW_LIVE_CODEX_HARNESS_THINKING=<level>`
307+
- Matrix override: `OPENCLAW_LIVE_CODEX_HARNESS_TARGETS=<model>=<thinking>,...`
308+
- Auth mode: `OPENCLAW_LIVE_CODEX_HARNESS_AUTH=codex-auth` (default) uses the
309+
copied Codex login; `api-key` uses `OPENAI_API_KEY` through Codex app-server.
303310
- Optional image probe: `OPENCLAW_LIVE_CODEX_HARNESS_IMAGE_PROBE=1`
304311
- Optional MCP/tool probe: `OPENCLAW_LIVE_CODEX_HARNESS_MCP_PROBE=1`
305312
- Optional Guardian probe: `OPENCLAW_LIVE_CODEX_HARNESS_GUARDIAN_PROBE=1`
306313
- The smoke forces provider/model `agentRuntime.id: "codex"` so a broken Codex
307314
harness cannot pass by silently falling back to OpenClaw.
308-
- Auth: Codex app-server auth from the local Codex subscription login. Docker
309-
smokes can also provide `OPENAI_API_KEY` for non-Codex probes when applicable,
310-
plus optional copied `~/.codex/auth.json` and `~/.codex/config.toml`.
315+
- Auth: Codex app-server auth from the local Codex subscription login, or
316+
`OPENAI_API_KEY` when `OPENCLAW_LIVE_CODEX_HARNESS_AUTH=api-key`. Docker can
317+
copy `~/.codex/auth.json` and `~/.codex/config.toml` for subscription runs.
311318

312319
Local recipe:
313320

@@ -326,6 +333,36 @@ Docker recipe:
326333
pnpm test:docker:live-codex-harness
327334
```
328335

336+
GPT-5.6 native Codex matrix:
337+
338+
```bash
339+
OPENCLAW_LIVE_CODEX_HARNESS_AUTH=api-key \
340+
OPENCLAW_LIVE_CODEX_HARNESS_TARGETS='openai/gpt-5.6-sol=ultra,openai/gpt-5.6-terra=ultra,openai/gpt-5.6-luna=max' \
341+
pnpm test:docker:live-codex-harness
342+
```
343+
344+
Fresh OpenAI API-key default:
345+
346+
```bash
347+
OPENCLAW_LIVE_GATEWAY_OPENAI_API_DEFAULT=1 \
348+
OPENCLAW_LIVE_GATEWAY_PROVIDERS=openai \
349+
OPENCLAW_LIVE_GATEWAY_THINKING=off \
350+
pnpm test:live -- src/gateway/gateway-models.profiles.live.test.ts
351+
```
352+
353+
This proof leaves `OPENCLAW_LIVE_GATEWAY_MODELS` unset, resolves the model through
354+
the fresh onboarding inference-selection seam, asserts `openai/gpt-5.6`, and then
355+
runs a real gateway turn with that resolved model.
356+
357+
GPT-5.6 embedded OpenClaw matrix:
358+
359+
```bash
360+
OPENCLAW_LIVE_GATEWAY_THINKING=ultra \
361+
OPENCLAW_LIVE_GATEWAY_PROVIDERS=openai \
362+
OPENCLAW_LIVE_GATEWAY_MODELS='openai/gpt-5.6-sol,openai/gpt-5.6-terra,openai/gpt-5.6-luna' \
363+
pnpm test:live -- src/gateway/gateway-models.profiles.live.test.ts
364+
```
365+
329366
Docker notes:
330367

331368
- The Docker runner lives at `scripts/test-live-codex-harness-docker.sh`.
@@ -339,6 +376,9 @@ Docker notes:
339376
run.
340377
- Docker uses the same explicit Codex runtime config, so legacy aliases or OpenClaw
341378
fallback cannot hide a Codex harness regression.
379+
- Matrix targets run sequentially in one container. The Docker script scales its
380+
default 35-minute timeout by target count; any outer shell or CI timeout must
381+
allow the same total. Canonical CI keeps each GPT-5.6 target in a separate shard.
342382

343383
### Recommended live recipes
344384

‎docs/tools/thinking.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ title: "Thinking levels"
88
## What it does
99

1010
- Inline directive in any inbound body: `/t <level>`, `/think:<level>`, or `/thinking <level>`.
11-
- Levels (aliases): `off | minimal | low | medium | high | xhigh | adaptive | max`, roughly mirroring Anthropic's classic "think" < "think hard" < "think harder" < "ultrathink" magic-word ladder:
11+
- Levels (aliases): `off | minimal | low | medium | high | xhigh | adaptive | max | ultra`, roughly mirroring Anthropic's classic "think" < "think hard" < "think harder" < "ultrathink" magic-word ladder:
1212
- minimal ~ "think"
1313
- low ~ "think hard"
1414
- medium ~ "think harder"
1515
- high ~ "ultrathink" (max budget)
1616
- xhigh ~ "ultrathink+" (GPT-5.2+ and Codex models, plus Anthropic Claude Opus 4.7+ effort)
1717
- adaptive → provider-managed adaptive thinking (supported for Claude 4.6 on Anthropic/Bedrock, Anthropic Claude Opus 4.7+, and Google Gemini dynamic thinking)
1818
- max → provider max reasoning (Anthropic Claude Opus 4.7+; Ollama maps this to its highest native `think` effort)
19+
- ultra → provider max reasoning plus proactive sub-agent orchestration when the selected model/runtime supports it
1920
- `x-high`, `x_high`, `extra-high`, `extra high`, and `extra_high` map to `xhigh`.
2021
- `highest` maps to `high`.
2122
- Provider notes:
2223
- Thinking menus and pickers are provider-profile driven. Provider plugins declare the exact level set for the selected model, including labels such as binary `on`.
23-
- `adaptive`, `xhigh`, and `max` are only advertised for provider/model profiles that support them. Typed directives for unsupported levels are rejected with that model's valid options.
24+
- `adaptive`, `xhigh`, `max`, and `ultra` are only advertised for provider/model/runtime profiles that support them. Typed directives for unsupported levels are rejected with that model's valid options.
2425
- Existing stored unsupported levels are remapped by provider profile rank. `adaptive` falls back to `medium` on non-adaptive models, while `xhigh` and `max` fall back to the largest supported non-off level for the selected model.
2526
- Anthropic Claude 4.6 models default to `adaptive` when no explicit thinking level is set.
2627
- Anthropic Claude Opus 4.8 and Opus 4.7 keep thinking off unless you explicitly set a thinking level. Opus 4.8's provider-owned effort default is `high` after adaptive thinking is enabled.
@@ -30,6 +31,8 @@ title: "Thinking levels"
3031
- OpenRouter-routed DeepSeek V4 models expose `/think xhigh` and send OpenRouter-supported `reasoning.effort` values instead of DeepSeek-native top-level `reasoning_effort`. Lower non-off levels map to `high`, and stored `max` overrides fall back to `xhigh`.
3132
- Ollama thinking-capable models expose `/think low|medium|high|max`; `max` maps to native `think: "high"` because Ollama's native API accepts `low`, `medium`, and `high` effort strings.
3233
- OpenAI GPT models map `/think` through model-specific Responses API effort support. `/think off` sends `reasoning.effort: "none"` only when the target model supports it; otherwise OpenClaw omits the disabled reasoning payload instead of sending an unsupported value.
34+
- GPT-5.6 Sol and Terra expose native `/think ultra` through the Codex runtime. GPT-5.6 Luna exposes levels through `max` because its Codex catalog does not advertise Ultra.
35+
- The embedded OpenClaw runtime exposes logical `/think ultra` for GPT-5.6 Sol, Terra, and Luna. It sends provider max effort and adds run-scoped proactive sub-agent orchestration guidance.
3336
- Custom OpenAI-compatible catalog entries can opt into `/think xhigh` by setting `models.providers.<provider>.models[].compat.supportedReasoningEfforts` to include `"xhigh"`. This uses the same compat metadata that maps outbound OpenAI reasoning effort payloads, so menus, session validation, agent CLI, and `llm-task` agree with transport behavior.
3437
- Stale configured OpenRouter Hunter Alpha refs skip proxy reasoning injection because that retired route could return final answer text through reasoning fields.
3538
- Google Gemini maps `/think adaptive` to Gemini's provider-owned dynamic thinking. Gemini 3 requests omit a fixed `thinkingLevel`, while Gemini 2.5 requests send `thinkingBudget: -1`; fixed levels still map to the closest Gemini `thinkingLevel` or budget for that model family.
@@ -136,9 +139,9 @@ Malformed local-model reasoning tags are handled conservatively. Closed `<think>
136139

137140
- Provider plugins can expose `resolveThinkingProfile(ctx)` to define the model's supported levels and default.
138141
- Provider plugins that proxy Claude models should reuse `resolveClaudeThinkingProfile(modelId)` from `openclaw/plugin-sdk/provider-model-shared` so direct Anthropic and proxy catalogs stay aligned.
139-
- Each profile level has a stored canonical `id` (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `adaptive`, or `max`) and may include a display `label`. Binary providers use `{ id: "low", label: "on" }`.
142+
- Each profile level has a stored canonical `id` (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `adaptive`, `max`, or `ultra`) and may include a display `label`. Binary providers use `{ id: "low", label: "on" }`.
140143
- Profile hooks receive merged catalog facts when available, including `reasoning`, `compat.thinkingFormat`, and `compat.supportedReasoningEfforts`. Use those facts to expose binary or custom profiles only when the configured request contract supports the matching payload.
141-
- Tool plugins that need to validate an explicit thinking override should use `api.runtime.agent.resolveThinkingPolicy({ provider, model })` plus `api.runtime.agent.normalizeThinkingLevel(...)`; they should not keep their own provider/model level lists.
144+
- Tool plugins that need to validate an explicit thinking override should use `api.runtime.agent.resolveThinkingPolicy({ provider, model, agentRuntime })` plus `api.runtime.agent.normalizeThinkingLevel(...)`; they should not keep their own provider/model level lists. Pass `agentRuntime` when the tool owns the execution path, such as an always-embedded run.
142145
- Tool plugins with access to configured custom model metadata can pass `catalog` into `resolveThinkingPolicy` so `compat.supportedReasoningEfforts` opt-ins are reflected in plugin-side validation.
143146
- Published legacy hooks (`supportsXHighThinking`, `isBinaryThinking`, and `resolveDefaultThinkingLevel`) remain as compatibility adapters, but new custom level sets should use `resolveThinkingProfile`.
144147
- Gateway rows/defaults expose `thinkingLevels`, `thinkingOptions`, and `thinkingDefault` so ACP/chat clients render the same profile ids and labels that runtime validation uses.

0 commit comments

Comments
 (0)