Skip to content

Profile-resolved OpenHands agents have no exec tools (and no public skills) #3967

Closed

Description

@simonrosenberg

Summary

When a conversation is started from an AgentProfile (agent_profile_id) instead of an inline agent_settings payload, the resolved OpenHands agent has no exec tools — no TerminalTool, FileEditorTool, or TaskTrackerTool. It gets only the built-ins (FinishTool, ThinkTool, and SwitchLLMTool when enabled). Public skills are likewise not loaded by default. The agent can't run shell commands or edit files.

This is the profile-launch path exercised by agent-canvas #1571 (and the SaaS cloud backend OpenHands/OpenHands#15060). It affects local agent-server, cloud, and eval identically, since all three build the agent purely from the stored profile fields.

Root cause (traced)

  • OpenHandsAgentProfile (openhands-sdk/openhands/sdk/profiles/agent_profile.py) has no tools field.
  • _build_openhands_settings (openhands-sdk/openhands/sdk/profiles/resolver.py) never sets tools, so the resolved OpenHandsAgentSettings.tools defaults to [].
  • OpenHandsAgentSettings.create_agent() (openhands-sdk/openhands/sdk/settings/model.py:1116) does tools=self.tools (i.e. []) and only adds include_default_tools = [FinishTool, ThinkTool] (+ SwitchLLMTool).
  • Exec tools (TerminalTool/FileEditorTool/TaskTrackerTool) live in openhands-tools and are attached only when the caller passes them in agent_settings.tools. On the profile path there is no such caller — agent-canvas sends agent_profile_id XOR agent_settings, so its getAgentTools() list is dropped.
  • Similarly, skill discovery is gated on skill_refs; a profile with skill_refs=[] gets no public skills.

Agent-server resolution entry point: openhands-agent-server/openhands/agent_server/conversation_service.py:_resolve_agent_from_profile → resolve_agent_profile(...) → settings_config.create_agent().

Proposed fix

Make OpenHands profile resolution attach a default agent toolset when the profile doesn't specify one:

  • In _build_openhands_settings, default tools to the standard exec set — TerminalTool, FileEditorTool, TaskTrackerTool — and add the sub-agent tool set when enable_sub_agents is set (mirroring what a normal agent_settings launch carries). Consider making this overridable so a profile can still narrow/replace the toolset (e.g. an optional tools field on OpenHandsAgentProfile, defaulting to the standard set).
  • Default public-skill discovery on the profile path (so skill_refs unset ⇒ public skills load), matching non-profile launches.

Client-owned enrichments that legitimately can't be reconstructed server-side (agent-canvas's canvas_ui tool and the dev RUNTIME_SERVICES system-message-suffix) are out of scope — those stay canvas-only and only apply on the agent_settings path.

Context / tracking

Activity

  1. added
    bug
    and removed on Jul 2, 2026
  2. added 2 commits that reference this issue on Jul 2, 2026
    44c15b5
    04f52d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions