Remove initial messages from session configuration events (#50360)

## What changed

Remove `initial_messages` from `SessionConfiguredEvent` and the corresponding schema. Stop attaching replay history to startup events for resumed or rejoined threads, and remove `InitialHistory::get_event_msgs`.

## Testing

Update the MCP resume test to verify persisted tool events through `load_history`, and retain coverage that resumed requests include prior conversation items.

GitOrigin-RevId: 54b72bc44423c9b1ef2051891ef392c0ede32fe5
This commit is contained in:
Owen Lin
2026-10-02 16:55:41 +00:00
committed by copyberry
parent 91168365a5
commit c73775f19e
13 changed files with 17 additions and 213 deletions
@@ -230,7 +230,6 @@ async fn config_summary_entries_include_runtime_workspace_roots() {
active_permission_profile: None,
cwd,
reasoning_effort: None,
initial_messages: None,
network_proxy: None,
rollout_path: None,
};
-1
View File
@@ -1651,7 +1651,6 @@ fn session_configured_from_thread_response(
active_permission_profile,
cwd,
reasoning_effort,
initial_messages: None,
network_proxy: None,
rollout_path,
})
@@ -124,7 +124,6 @@ fn session_configured_produces_thread_started_event() {
active_permission_profile: None,
cwd: test_path_buf("/tmp/project").abs(),
reasoning_effort: None,
initial_messages: None,
network_proxy: None,
rollout_path: None,
};