Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(import): drop legacy tool_calls backfill for typed rows

Steven Enamakel4438bac1c172
diff --git a/crates/openhuman-core/src/storage/import/sessions.rs b/crates/openhuman-core/src/storage/import/sessions.rs
index dc15a78427..223a5dcc3d 100644
--- a/crates/openhuman-core/src/storage/import/sessions.rs
+++ b/crates/openhuman-core/src/storage/import/sessions.rs
@@ -397,13 +397,6 @@ fn decode_display_message(
message.parts = None;
if row_version < TYPED_ROW_VERSION {
message = message.normalized();
- // Before typed rows, call declarations lived in the legacy
- // `tool_calls` field and must be projected back onto the message
- // so the paired tool result can be resumed. Keep the copy in
- // TurnUsage below as well for usage and display projections.
- if message.tool_calls.is_empty() {
- message.tool_calls = usage_tool_calls.clone();
- }
}
}
if message.role.is_empty() {