Add reusable conversation delegation policy - #1511
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8984e0e8ad
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (typeof instructions === "string") { | ||
| return `${instructions}\n\n${LOAD_SKILL_CONTINUATION_REMINDER}`; |
There was a problem hiding this comment.
Avoid duplicating reminders for string instructions
When a caller keeps system instructions as a string and applies this helper on each model step after a trailing load_skill result, this branch appends the full critical reminder every time. The ChatSystemMessage[] branch is idempotent, so string-based integrations can grow the prompt and repeat the same system instruction across retries or steps; guard with instructions.includes(LOAD_SKILL_CONTINUATION_REMINDER) before appending.
Useful? React with 👍 / 👎.
Summary
Verification