gstack/hosts
jacob-wang 8f313cf15a fix(codex): add AskUserQuestion→request_user_input tool rewrite
Issue #1066 — Codex skills that call AskUserQuestion silently fail
in Default mode because Codex strips AskUserQuestion from the
tool schema and its equivalent (request_user_input) only works in
Plan mode.

The HostConfig interface already supports toolRewrites (gbrain, openclaw,
factory, hermes all use it). codex.ts was missing it.

Adding { 'AskUserQuestion': 'request_user_input' } to codex.ts so that
when gen-skill-docs.ts applies rewrites at generation time, any prompt
text referencing AskUserQuestion gets replaced with Codex's equivalent.

Note: this only handles the text rewrite. A full fix would also need
the Plan-mode gate in the preamble (Option 4 in #1066), but that requires
codex-side feature flag changes outside gstack's control.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 01:08:08 +08:00
..
claude.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
codex.ts fix(codex): add AskUserQuestion→request_user_input tool rewrite 2026-04-21 01:08:08 +08:00
cursor.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
factory.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
gbrain.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
hermes.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
index.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
kiro.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
openclaw.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
opencode.ts community wave: 6 PRs + hardening (v0.18.1.0) (#1028) 2026-04-17 00:45:13 -07:00
slate.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00