Include session titles in external agent import history (#35870)

## What changed

- Preserve the original title when importing an external-agent session and return it with successful session entries from `externalAgentConfig/import/readHistories`.
- Add dedicated history-record success types so externally completed imports can optionally supply a session title without changing the live import result type.

## Testing

- Verify imported session titles are returned by the app server and persisted when session import ledger entries are created or refreshed.

GitOrigin-RevId: e896688a5763c238f1e1dc8b4672a7aa7bc1ed4c
This commit is contained in:
charlesgong-openai authored and copyberry committed 2026-07-29 02:45:55 +00:00
1 parent 28f3f1f9ef
commit 9f23e97797
28 files changed
+465 -130

No files matched your search

@@ -390,6 +390,7 @@ async fn import_local_plugins_returns_completed_status() {
cwd: None,
source: Some("cloudflare@my-plugins".to_string()),
target: Some("cloudflare@my-plugins".to_string()),
title: None,
}],
raw_errors: Vec::new(),
}]