Repository navigation
fix(agent-server): omit acp/ credential dir from download-trajectory zip - #5551
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
enyst
approved these changes
Oct 6, 2026
enyst
left a comment
Member
There was a problem hiding this comment.
Oh yes, totally fair solution, thank you!
Contributor
Coverage Report •
|
||||||||||||||||||||
simonrosenberg
enabled auto-merge (squash)
October 6, 2026 12:36
enyst
added a commit
that referenced
this pull request
Oct 6, 2026
…-zip-race Keeps #5551's acp/ exclusion and this branch's temp-file and vanished-entry handling in _create_zip_from_directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmGfBq3KDFiJTDraPJFGTT
1 of 5 tasks
Merged
3 of 7 tasks
5 tasks
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.
HUMAN:
Reviewed the diff and ran the new test with and without the change. Excluding
acp/wholesale rather than extending the key-name redactor, since each new ACP provider would otherwise need its own entries.AGENT:
Why
download-trajectoryzips the whole conversation directory, includingacp/<provider>/, which holds runtime credential files for ACP agents. The existing redaction only masks a fixed set of LLM/AWS field names and Fernet-prefixed values in.json/.jsonl, so those files are shipped with their tokens and keys intact.Summary
acp/directory when building the trajectory zip.acp_notes.json) are kept.Issue Number
Fixes #5552
How to Test
uv run pytest tests/agent_server/test_file_router.py -q(86 passed). The newtest_download_trajectory_omits_acp_credential_dirfails with thefile_router.pychange reverted and passes with it. Not exercised against a live ACP conversation.Type
Notes
Excluding by directory keeps the fix independent of per-provider credential file names and key names.
🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdkpython-node-runtimepython-node-runtimepython-node-runtimegolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:c867c31-pythonRun
All tags pushed for this build
About Multi-Architecture Support
c867c31-python) is a multi-arch manifest supporting both amd64 and arm64c867c31-python-amd64) are also available if needed