fix ios agent input#2238
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8d19fc39d
ℹ️ 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".
| .onChange(of: draft) { _, value in | ||
| onInputChange(value) | ||
| } |
There was a problem hiding this comment.
Keep the draft synced with presenter input
When the presenter changes input without a local TextField edit, the iOS draft now stays stale because this is the only remaining binding path. AgentChatPresenterController.selectInputRequestOption can programmatically set input for non-submitting options and clears it for submitting options, so tapping an agent-provided option can leave the visible field different from the presenter state: users may see old text while Send is disabled, or send hidden prefilled text that never appeared in the field. Please preserve a presenter-to-draft sync path while avoiding the original reset issue.
Useful? React with 👍 / 👎.
No description provided.