Skip to content

AGENTS.md does not take effect #2062

@seems20

Description

@seems20

What happened?

if (settings.context?.fileName) {
setServerGeminiMdFilename(settings.context.fileName);
} else {
// Reset to default if not provided in settings.
setServerGeminiMdFilename(getCurrentGeminiMdFilename());
}

export function getCurrentGeminiMdFilename(): string {
if (Array.isArray(currentGeminiMdFilename)) {
return currentGeminiMdFilename[0];
}
return currentGeminiMdFilename;
}

let currentGeminiMdFilename: string | string[] = [
DEFAULT_CONTEXT_FILENAME,
AGENT_CONTEXT_FILENAME,
];

Doesn't this mean that it will still only return DEFAULT_CONTEXT_FILENAME, that is, QWEN.md?

What did you expect to happen?

AGENTS.md can take effect without user configuration.

Client information

│ 状态 │
│ │
│ Qwen Code 0.11.0 (a31cf75) │
│ 运行环境 Node.js v22.16.0 / npm 10.9.2 │
│ 操作系统 darwin arm64 (24.5.0) │
│ │
│ 认证 qwen-oauth │
│ 模型 coder-model │
│ 会话 ID 9057f466-0700-4ccf-8e23-61f49df48e91 │
│ 沙箱 no sandbox │
│ 代理 no proxy │
│ 内存使用 210.8 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions