Summary of changes just completed
Scope: Apply updated requirement to fully rename SecretManager → SecretRegistry without any alias, rename the module file, and fix all imports/exports accordingly. Re-run pre-commit and tests, and update the existing branch/PR.
What changed since the last summary
• File rename
◦ openhands-sdk/openhands/sdk/conversation/secrets_manager.py → openhands-sdk/openhands/sdk/conversation/secret_registry.py
• Alias removal
â—¦ Removed SecretsManager = SecretRegistry
• Import updates
â—¦ Updated all imports to use openhands.sdk.conversation.secret_registry for SecretRegistry and SecretValue:
▪︎ SDK: base.py, conversation.py, impl/local_conversation.py, impl/remote_conversation.py, state.py
▪︎ Agent server: event_service.py, conversation_router.py
▪︎ Tests: tests/sdk/conversation/remote/test_remote_conversation.py, tests/sdk/conversation/test_secrets_manager.py
• Public exports
â—¦ openhands-sdk/openhands/sdk/conversation/*init*.py now exports only SecretRegistry (removed SecretsManager from
all)
• Tests
â—¦ Updated tests to import from secret_registry and pass with the new naming
Checks performed
• Pre-commit on modified files: passed (ruff format/lint, pycodestyle, pyright)
• Targeted tests:
â—¦ tests/sdk/conversation/test_secrets_manager.py and tests/tools/execute_bash/test_secrets_masking.py: 9 passed
â—¦ tests/sdk/conversation/remote/test_remote_conversation.py: 17 passed
â—¦ Additional secrets-related tests with -k secrets: 33 passed
• Verified there are no remaining references to openhands.sdk.conversation.secrets_manager
Conciseness
• Only the files affected by the rename, alias removal, import updates, and
all export changes were touched. No extraneous changes were made.
Git
• Branch: rename-secretmanager-to-secretregistry
• Commit: refactor: rename SecretManager to SecretRegistry and module to secret_registry; remove alias; update imports/exports and tests
• Pushed and updated the branch after rebasing with upstream
Open question
• The open PR (#965) is currently a draft and previously referenced an alias for backward compatibility. Do you want me to:
â—¦ Update the PR title and description to reflect the final requirements (no alias, module file renamed), and keep it as draft or mark ready for review?
â—¦ Also update the docs repo (OpenHands/docs) under sdk/ to reflect the new import path (secret_registry) and class name (SecretRegistry), and open a corresponding docs PR?
Let me know your preference, and I will update the PR(s) accordingly.
<sub>
View full conversation</sub>