diff --git a/openhands/automation/presets/plugin/sdk_main.py b/openhands/automation/presets/plugin/sdk_main.py index e6174ce..e2e6606 100644 --- a/openhands/automation/presets/plugin/sdk_main.py +++ b/openhands/automation/presets/plugin/sdk_main.py @@ -299,6 +299,10 @@ def event_callback(event) -> None: delete_on_close=False, # Keep conversation history after completion ) assert isinstance(conversation, RemoteConversation) + + # Register conversation ID with workspace for completion callback + workspace.register_conversation(str(conversation.id)) + print(f" conversation created: {type(conversation).__name__}") print(f" plugins loaded: {len(plugin_sources)}") diff --git a/openhands/automation/presets/prompt/sdk_main.py b/openhands/automation/presets/prompt/sdk_main.py index 2f884d7..4032e61 100644 --- a/openhands/automation/presets/prompt/sdk_main.py +++ b/openhands/automation/presets/prompt/sdk_main.py @@ -287,6 +287,10 @@ def event_callback(event) -> None: delete_on_close=False, # Keep conversation history after completion ) assert isinstance(conversation, RemoteConversation) + + # Register conversation ID with workspace for completion callback + workspace.register_conversation(str(conversation.id)) + print(f" conversation created: {type(conversation).__name__}") # Inject secrets into the conversation (as LookupSecret references)