Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions openhands/server/routes/manage_conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ async def start_conversation(
providers_set: ProvidersSetModel,
conversation_id: str = Depends(validate_conversation_id),
user_id: str = Depends(get_user_id),
provider_tokens: PROVIDER_TOKEN_TYPE = Depends(get_provider_tokens),
settings: Settings = Depends(get_user_settings),
conversation_store: ConversationStore = Depends(get_conversation_store),
) -> ConversationResponse:
Expand Down Expand Up @@ -504,6 +505,10 @@ async def start_conversation(
user_id, conversation_id, providers_set.providers_set or []
)

# Override with real provider tokens
if provider_tokens:
conversation_init_data.git_provider_tokens = provider_tokens
Comment on lines +509 to +510
Copy link
Contributor

@malhotra5 malhotra5 Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to param providers_set if we already have the actual provider tokens?

I think they should always exists in saas?


# Start the agent loop
agent_loop_info = await conversation_manager.maybe_start_agent_loop(
sid=conversation_id,
Expand Down
Loading