Roo-Code/src/core/task-persistence
Hannes Rudolph 6ffdd440ce
Remove GPT‑5 instructions/reasoning_summary from UI message metadata to prevent ui_messages.json bloat (#8756)
chore(gpt5): stop persisting instructions/reasoning_summary in UI message metadata

Problem: ui_messages.json was getting bloated with unused or duplicated content (system 'instructions' and 'reasoning_summary') that we do not read back. Root cause: earlier OpenAI Responses API implementation persisted these fields to per-message metadata; however, 'instructions' are already sent as top-level request instructions and 'reasoning_summary' is surfaced live via streaming events. Neither field is consumed from storage. Changes: (1) Task.persistGpt5Metadata now stores only previous_response_id; (2) removed instructions and reasoning_summary from types; (3) updated Zod schema; (4) persistence layer writes messages as-is (no sanitizer); (5) tests green. Impact: smaller ui_messages.json, no runtime behavior change for requests. Migration: old metadata fields will be ignored by schema.
2025-10-21 14:55:29 -06:00
..
__tests__ Remove GPT‑5 instructions/reasoning_summary from UI message metadata to prevent ui_messages.json bloat (#8756) 2025-10-21 14:55:29 -06:00
apiMessages.ts fix: use safeWriteJson for all JSON file writes with race condition fix (#4733) 2025-06-25 16:05:02 -04:00
index.ts Move message queue to the extension host (#7604) 2025-09-02 19:12:18 -07:00
taskMessages.ts fix: use safeWriteJson for all JSON file writes with race condition fix (#4733) 2025-06-25 16:05:02 -04:00
taskMetadata.ts Publish subtask events (#7626) 2025-09-03 04:05:54 -07:00