Add Codex happy path prompt snapshots (#75807)

* Add Codex prompt snapshots

* Fix prompt snapshot scenario catalogs

* Harden prompt snapshot drift check

* Fix CLI compat build export

* fix: keep codex snapshots out of core plugin surface

* fix: harden prompt snapshot ci checks

* fix: accept readonly web search onboarding scopes

* fix: repair plugin sdk package boundary types

* fix: clear prompt snapshot ci regressions

* fix: clear latest main ci checks

* fix: resolve latest main discord helper overlap

* fix: refresh codex dynamic tool snapshots

* fix: align prompt snapshot branch with latest ci

* fix: isolate plugin auto enable tests

* test: refresh prompt dynamic tool snapshots

* fix: stabilize bundled channel auto enable

* fix: clean stale prompt snapshots
This commit is contained in:
pashpashpash
2026-05-02 08:59:55 -07:00
committed by GitHub
parent 4fb520d9b7
commit 563dca82f4
46 changed files with 7920 additions and 133 deletions

View File

@@ -109,6 +109,19 @@ section when the direct/group chat context already includes the resolved
conversation-specific `NO_REPLY` behavior. This avoids repeating token mechanics
in both the global system prompt and channel context.
## Prompt snapshots
OpenClaw keeps committed happy-path prompt snapshots for the Codex/message-tool
runtime under `test/fixtures/agents/prompt-snapshots/happy-path/`. They render
the OpenClaw-owned Codex app-server developer instructions, selected thread
start/resume params, turn user input, and dynamic tool specs for Telegram direct,
Discord group, and heartbeat turns. The hidden base Codex system prompt and
turn-scoped Codex collaboration-mode instructions are owned by the Codex runtime
and are not rendered by OpenClaw.
Regenerate them with `pnpm prompt:snapshots:gen` and verify drift with
`pnpm prompt:snapshots:check`.
## Workspace bootstrap injection
Bootstrap files are trimmed and appended under **Project Context** so the model sees identity and profile context without needing explicit reads: