(Hotfix): use direct attrib for file download result (#13448)

This commit is contained in:
Rohit Malhotra
2026-03-17 14:48:46 -04:00
committed by GitHub
parent 79cfffce60
commit 09ca1b882f

View File

@@ -405,7 +405,7 @@ class AppConversationServiceBase(AppConversationService, ABC):
# Check if there's an existing pre-commit hook
with tempfile.TemporaryFile(mode='w+t') as temp_file:
result = await workspace.file_download(PRE_COMMIT_HOOK, str(temp_file))
if result.get('success'):
if result.success:
_logger.info('Preserving existing pre-commit hook')
# an existing pre-commit hook exists
if 'This hook was installed by OpenHands' not in temp_file.read():