GitLab stations ignore the automation's agent profile on a local Agent Server
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start by reading skills/gitlab-issue-to-mr/scripts/main.py and skills/gitlab-mr-reviewer/scripts/common.py, then compare the local conversation setup with the GitHub stations' agent_conversation.py and the cloud path. Check how AUTOMATION_AGENT_PROFILE_ID is passed to the Agent Server. Done when all three affected GitLab stations use the selected profile when set and retain current behavior without one.
Written by the indexing model from the issue text.
Description
What happens
On a local Agent Canvas, I created the three GitLab stations with an agent profile that uses Claude Code over ACP. When gitlab-issue-to-mr picks up a labelled issue, the conversation starts with the default Agent and the model from Settings → LLM, not the selected profile. With no API key there, the run fails on its first message:
litellm.AuthenticationError: AuthenticationError: OpenAIException - ... Incorrect API key provided: None.
This is the local counterpart of #848, which fixed the same problem on OpenHands Cloud and Enterprise.
Cause
On the local path, create_conversation() in skills/gitlab-issue-to-mr/scripts/main.py builds {"kind": "Agent", "llm": <settings LLM>} and never reads AUTOMATION_AGENT_PROFILE_ID. Only the cloud path passes agent_profile_id.
_start_conversation() in skills/gitlab-mr-reviewer/scripts/common.py has the same pattern, so gitlab-mr-reviewer and gitlab-prd-refiner are affected too.
The automation service sets AUTOMATION_AGENT_PROFILE_ID for local runs as well, and the Agent Server accepts agent_profile_id when it starts a conversation. The GitHub stations already use it locally through agent_conversation.py.
Proposed fix
When AUTOMATION_AGENT_PROFILE_ID is set, send agent_profile_id instead of a hand-built agent. Without a profile, keep the current behaviour.
Related
github-agents-md-maintainer and github-repo-monitor use the same pattern on the local path. I'd leave them for a follow-up so this fix stays focused on GitLab.
Environment
Local Agent Canvas (Docker), openhands-agent-server 1.62.0, extensions main at cfd1d0f.
- Dominant language
- Python
- Stars
- 184
- Forks
- 137
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 60
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenHands/extensions
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OpenHands/extensions#970 ·
Maintainers usually reply within 1 day
-
Add a `maven` skill: agents install Debian's `maven` package, which can't load plugins built for Java 17+Possibly taken @sumitvairagar claimed this 1 day ago. Openpriority:medium ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
OpenHands/extensions#963 ·
Maintainers usually reply within 1 day
-
agent-readiness-report: scan_build_env.sh misses lowercase `justfile` and `just` build commandsPossibly taken @austinchennn claimed this today. Openpriority:low ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenHands/extensions#955 · 1 comment ·
Maintainers usually reply within 1 day
-
Update Slack MCP integration to Slack's official hosted MCP server (replace zencoderai/slack-mcp-server)Possibly taken @all-hands-bot claimed this 13 days ago. Opencustomer-support enhancement priority:medium ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OpenHands/extensions#900 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
priority:low ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenHands/extensions#887 ·
Maintainers usually reply within 1 day
All issues in OpenHands/extensions
Similar issues
-
[Bug]: reme CLI crashes when the running server used a relative config pathPossibly taken @nurlanmnn claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/ReMe#770 ·
Maintainers usually reply within 1 day
-
Pi: paused model calls are reported as "not signed in" when the model's provider comes from an extensionPossibly taken @balcsida claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
microsoft/TokenEconomizer#288 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 67/100
sickn33/agentic-awesome-skills#2437 ·
Maintainers usually reply within 1 day
-
site-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ethereum/consensus-specs#5846 ·
Maintainers usually reply within 1 day