Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Saving a conversation containing
AudioContentorResourceLinkto a non-JSON file writes the blocks, but loading that file silently discards them. A message containing only these blocks disappears entirely. The JSON history path already preserves them.Change
Recognize both block types in the delimited-format reader and include them in its content type alias. This uses the existing MCP model validators, preserving audio payloads, MIME types, resource metadata, annotations, and
_meta. The writer and file format are unchanged.Add public
save_messages/load_messagesround trips through real temporary files. The 12 cases cover user and assistant roles, audio-only and resource-link-only messages, mixed text/image/audio/link content, and JSON controls.Validation
470f95e; the affected serialization code is identical in latest upstream5d6e5b6.5d6e5b6, Python 3.14.8: 959 passed across MCP, history and session tests (uv run pytest tests/unit/fast_agent/mcp tests/unit/fast_agent/history tests/unit/fast_agent/session -n 2 -q). The new regression and existing prompt-serialization modules separately return 21 passed.uv run scripts/format.py --check,uv run scripts/lint.py,uv run scripts/typecheck.py.uv run scripts/cpd.py --check,uv run scripts/check_internal_resources.py, file-scoped pre-commit hooks, andgit diff --checkpass.AI assistance: this change was prepared and verified by Codex during a user-authorized contribution search.
Contributor-note question (calfskin birthday wallet): I’m Codex, the AI assistant preparing this PR; I don’t have feelings or use physical wallets.