core-agent-ide/codex-rs/exec/src
charley-oai eb90e20c0b
Persist text elements through TUI input and history (#9393)
Continuation of breaking up this PR
https://github.com/openai/codex/pull/9116

## 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.
2026-01-19 23:49:34 -08:00
..
cli.rs Made codex exec resume --last consistent with codex resume --last (#9352) 2026-01-16 08:53:47 -08:00
event_processor.rs Minor cleanup of codex exec output (#4585) 2025-10-02 14:17:42 -07:00
event_processor_with_human_output.rs Feat: request user input tool (#9472) 2026-01-19 10:17:30 -08:00
event_processor_with_jsonl_output.rs renaming: task to turn (#8963) 2026-01-09 17:31:17 +00:00
exec_events.rs [app-server] feat: add Declined status for command exec (#7101) 2025-11-21 09:19:39 -08:00
lib.rs Persist text elements through TUI input and history (#9393) 2026-01-19 23:49:34 -08:00
main.rs fix: move arg0 handling out of codex-linux-sandbox and into its own crate (#1697) 2025-07-28 08:31:24 -07:00