Skip to content

Preserve legacy agent visibility while pruning stale archives#203

Merged
cbusillo merged 1 commit into
mainfrom
fix/agent-session-legacy-archive-prune
May 29, 2026
Merged

Preserve legacy agent visibility while pruning stale archives#203
cbusillo merged 1 commit into
mainfrom
fix/agent-session-legacy-archive-prune

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • treat ownerless legacy agents as visible to session-scoped model-facing queries
  • prune archived terminal agents from disconnected sessions whenever sender registration changes, not only after a full sender gap
  • keep same-session reconnect archives and connected-session archives intact

Validation

  • cargo test -p code-core model_facing_agent_queries_are_session_scoped
  • cargo test -p code-core registering_second_session_keeps_existing_archived_agents
  • cargo test -p code-core registering_sender_prunes_archives_from_disconnected_sessions
  • cargo test -p code-core fresh_sender_set_drops_archives_from_other_sessions
  • ./build-fast.sh

@cbusillo cbusillo merged commit 7d346c0 into main May 29, 2026
1 check passed
@cbusillo cbusillo deleted the fix/agent-session-legacy-archive-prune branch May 29, 2026 15:23
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