Skip to content

Persist text elements through TUI input and history#9390

Closed
charley-oai wants to merge 1 commit intomainfrom
pr1-text-elements
Closed

Persist text elements through TUI input and history#9390
charley-oai wants to merge 1 commit intomainfrom
pr1-text-elements

Conversation

@charley-oai
Copy link
Collaborator

@charley-oai charley-oai commented Jan 16, 2026

Summary

  • Thread user text element ranges through TUI/TUI2 input, submission, queueing, and history so placeholders survive resume/edit flows.
  • Preserve local image attachments alongside text elements and rehydrate placeholders when restoring drafts.
  • Keep model-facing content shapes clean by attaching UI metadata only to user input/events (no API content changes).

Key Changes

  • TUI/TUI2 composer now captures text element ranges, trims them with text edits, and restores them when submission is suppressed.
  • User history cells render styled spans for text elements and keep local image paths for future rehydration.
  • Initial chat widget bootstraps accept empty initial_text_elements to keep initialization uniform.
  • Protocol/core helpers updated to tolerate the new InputText field shape without changing payloads sent to the API.

@charley-oai charley-oai deleted the pr1-text-elements branch January 16, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant