Skip to content

feat(agent-server): add reversible conversation archiving - #4831

Draft
maxgiraldo wants to merge 3 commits into
OpenHands:mainfrom
maxgiraldo:openhands/conversation-archive
Draft

feat(agent-server): add reversible conversation archiving#4831
maxgiraldo wants to merge 3 commits into
OpenHands:mainfrom
maxgiraldo:openhands/conversation-archive

Conversation

@maxgiraldo

@maxgiraldo maxgiraldo commented Sep 2, 2026

Copy link
Copy Markdown

HUMAN:


AGENT:

This pull request was created by an AI agent (OpenHands) on behalf of Max Giraldo.

Why

Agent Canvas currently stores archive state only in browser storage. The Agent Server needs a reversible, persisted archive contract so state follows the backend and remains available across clients.

Summary

  • Add persisted archived_at metadata plus idempotent archive and unarchive endpoints.
  • Default search and count to active conversations, with ARCHIVED and ALL filters.
  • Mirror the contract in @openhands/typescript-client and cover persistence, filtering, reversibility, history preservation, and deletion separation.

Issue Number

No linked issue.

How to Test

  • Backend affected suite: 206 tests passed.
  • Archive integration test: 2 tests passed, including active/archived/all search and count behavior.
  • TypeScript client: lint and build passed; 310 coverage tests passed; formatting check passed.
  • Local Agent Canvas stack was restarted against this branch and its live OpenAPI exposed archive, unarchive, and archive_filter.
  • Mandatory final pair review completed with zero suggestions.

Video/Screenshots

Not applicable; this PR provides backend and typed-client contracts.

Design Doc

Not included.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

This is the backend and TypeScript-client dependency for the coordinated Agent Canvas server-backed archiving branch. The frontend PR must wait for a released client version containing this contract.

maxgiraldo and others added 3 commits September 2, 2026 10:38
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant