Skip to content

Resolve relative agent role config paths from layers#19261

Merged
etraut-openai merged 1 commit intomainfrom
etraut/relative-path-agent-config
Apr 24, 2026
Merged

Resolve relative agent role config paths from layers#19261
etraut-openai merged 1 commit intomainfrom
etraut/relative-path-agent-config

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

Fixes #19257.

Summary

Agent roles declared in config layers can set config_file to a relative path, but deserializing the layer-local [agents.*] table happened without an AbsolutePathBuf base path. That caused configs like config_file = "agents/my-role.toml" to fail with AbsolutePathBuf deserialized without a base path.

This updates agent role layer loading to deserialize [agents.*] while the layer config folder is active as the path base, matching the behavior documented for AgentRoleToml.config_file. It also adds coverage for a user config layer with a relative agent role config_file.

@etraut-openai etraut-openai requested a review from a team as a code owner April 24, 2026 02:43
@etraut-openai etraut-openai merged commit d87d918 into main Apr 24, 2026
35 of 36 checks passed
@etraut-openai etraut-openai deleted the etraut/relative-path-agent-config branch April 24, 2026 06:23
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[agents.*].config_file with relative path fails to deserialize: "AbsolutePathBuf deserialized without a base path in agents"

2 participants