[Bug]: gate 缺失

Open Beginner friendly
#1,297 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

Search the Go codebase for AGENTFLOW_MCP_CONFIG and for the place where the cursor-agent command line is assembled, then compare it with the adapters for the other agents that already pass an MCP config flag. Add the --mcp-config argument for cursor-agent alongside the existing environment variable, and cover the argument construction with a unit test. Done means a spawned cursor-agent process carries --mcp-config and the gate-result resubmission path no longer fails for that reason.

Written by the indexing model from the issue text.

Description

bug
Component / host

Platform — web / API

Edition

Platform

LoopForge version

0.4.2

What happened?

平台发现 agent 没提交门禁结果,自动恢复同一个 session 逼它重交。上一轮我抓到的进程命令行里,cursor-agent 没有 --mcp-config 参数——平台只设了 AGENTFLOW_MCP_CONFIG 环境变量,没转成 CLI 参数

Reproduction

平台发现 agent 没提交门禁结果,自动恢复同一个 session 逼它重交。上一轮我抓到的进程命令行里,cursor-agent 没有 --mcp-config 参数——平台只设了 AGENTFLOW_MCP_CONFIG 环境变量,没转成 CLI 参数

Sanitized diagnostics

Safety checks
  • I removed credentials, private endpoints, internal identifiers, and personal data.
  • I searched existing issues for duplicates.
Dominant language
Go
Stars
5.4k
Forks
758
Avg merge
21h 15m
Merged PRs (30d)
180

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Tencent/LoopForge

All issues in Tencent/LoopForge

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.