You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(session): fold latest archive into abstract list
Return the latest archive through pre_archive_abstracts and drop the
separate latest_archive_id field so session context consumers only need
one archive index path.
Copy file name to clipboardExpand all lines: docs/en/api/05-sessions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,14 +182,12 @@ Get the assembled session context used by OpenClaw-style context rebuilding.
182
182
183
183
This endpoint returns:
184
184
-`latest_archive_overview`: the `overview` of the latest completed archive, when it fits the token budget
185
-
-`latest_archive_id`: the ID of the latest completed archive, used for archive expansion
186
-
-`pre_archive_abstracts`: lightweight history entries for older completed archives, each containing `archive_id` and `abstract`
185
+
-`pre_archive_abstracts`: lightweight entries for completed archives, each containing `archive_id` and `abstract`
187
186
-`messages`: all incomplete archive messages after the latest completed archive, plus current live session messages
188
187
-`stats`: token and inclusion stats for the returned context
189
188
190
189
Notes:
191
190
-`latest_archive_overview` becomes an empty string when no completed archive exists, or when the latest overview does not fit in the token budget.
192
-
-`latest_archive_id` is returned whenever a latest completed archive exists, even if `latest_archive_overview` is trimmed by budget.
193
191
-`token_budget` is applied to the assembled payload after active `messages`: `latest_archive_overview` has higher priority than `pre_archive_abstracts`, and older abstracts are dropped first when budget is tight.
194
192
- Only archive content that is actually returned is counted toward `estimatedTokens` and `stats.archiveTokens`.
195
193
- Session commit generates an archive summary during Phase 2 for every non-empty archive attempt. Only archives with a completed `.done` marker are exposed here.
0 commit comments