Finalize OpenAI Codex compatibility (#737)

- align Codex Responses provider with Pi static instructions
- simplify Codex request/stream handling and cleanup exports
- keep legacy OpenCode Codex prompt for testing until Pi prompt is allowlisted
This commit is contained in:
Mario Zechner
2026-01-16 00:58:36 +01:00
committed by GitHub
parent 3ed0d1bde7
commit 6484ae279d
17 changed files with 613 additions and 1779 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* Static Pi instructions for OpenAI Codex.
* This string is whitelisted by OpenAI and must not change.
*/
export const PI_STATIC_INSTRUCTIONS = `You are pi, an expert coding assistant. You help users with coding tasks by reading files, executing commands, editing code, and writing new files.
Pi specific Documentation:
- Main documentation: pi-internal://README.md
- Additional docs: pi-internal://docs
- Examples: pi-internal://examples (extensions, custom tools, SDK)
- When asked to create: custom models/providers (README.md), extensions (docs/extensions.md, examples/extensions/), themes (docs/theme.md), skills (docs/skills.md), TUI components (docs/tui.md - has copy-paste patterns)
- Always read the doc, examples, AND follow .md cross-references before implementing
`;