Skip to content

Conversation

@shijie-oai
Copy link
Collaborator

@shijie-oai shijie-oai commented Jan 26, 2026

Summary

Add isOther to question object from request_user_input tool input and remove other option from the tool prompt to better handle tool input.

@shijie-oai shijie-oai marked this pull request as ready for review January 26, 2026 08:16
@aibrahim-oai
Copy link
Collaborator

Let's have it on question level and tell the model to not provide an other option

@shijie-oai shijie-oai changed the title Feat: add isOther to options returned by request user input tool Feat: add isOther to question returned by request user input tool Jan 26, 2026
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5331715ef

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let options_schema = JsonSchema::Array {
description: Some(
"Optional 2-3 mutually exclusive choices. Put the recommended option first and suffix its label with \"(Recommended)\". Only include \"Other\" option if we want to include a free form option. If the question is free form in nature, please do not have any option."
"Optional 2-3 mutually exclusive choices. Put the recommended option first and suffix its label with \"(Recommended)\". Do not include an \"Other\" option in this list; use isOther on the question to request a free form choice. If the question is free form in nature, please do not have any option."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve “Other” option until isOther is implemented

This schema text now instructs the model to omit an explicit “Other” option and rely on isOther, but a repo-wide search (rg "is_other|isOther" codex-rs -n) shows is_other is only plumbed through structs/tests and not used to synthesize or render an “Other” choice. In the current TUI flow, freeform input for option questions is tied to a selected option, so when the model follows this new guidance (isOther: true but no “Other” option), users lose the ability to select a freeform “Other” answer and any notes will be attached to a different option instead.

Useful? React with 👍 / 👎.

@shijie-oai shijie-oai force-pushed the shijie/add-isother-to-option branch from d533171 to a1ca019 Compare January 26, 2026 09:21
@shijie-oai shijie-oai merged commit 3ba702c into main Jan 26, 2026
32 checks passed
@shijie-oai shijie-oai deleted the shijie/add-isother-to-option branch January 26, 2026 17:52
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants