This commit is contained in:
Classic298 2026-04-02 15:31:51 +02:00 • committed by DrMelone
parent 2e20018a9e
commit febc4d530d

View file

@ -2899,6 +2899,11 @@ async def upload_file_to_terminal(
terminal_url = connection.get('url', '').rstrip('/')
# Route through orchestrator policy endpoint if configured
policy_id = connection.get('policy_id')
if policy_id:
terminal_url = f'{terminal_url}/p/{policy_id}'
# Build auth headers/cookies matching resolve_terminal_tools pattern
auth_type = connection.get('auth_type', 'bearer')
if auth_type == 'bearer':