Repository navigation
Codex 支持 agents.toml config_overrides(exec -c 透传) #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,7 @@ def _build_cmd(self, session: Session, task: Task, env: dict[str, str] | None = | |
| effort=task.effort or session.effort, | ||
| resume_id=session.native_session_id, | ||
| yolo=yolo_requested(self.agent.session_meta), | ||
| config_overrides=self.agent.config_overrides, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Configured Codex model absent from result With Learn moreA Codex override can set a model even when neither Example: Configure Recommended fix: Derive the effective model from overrides when no task or session model was selected, or obtain the selected model from Codex's turn events if available. Keep task and session model precedence when present. Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| ) | ||
|
|
||
| async def _drain_stderr(self, proc: asyncio.subprocess.Process, session_id: str) -> str: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,6 +126,10 @@ class AgentConfig(BaseModel): | |
| # privilege), "allow_always" persists the grant inside the worker, | ||
| # "deny" cancels every request. | ||
| permission_policy: str = "allow_once" | ||
| # Codex only: each item is passed as `codex exec -c <item>` (raw TOML | ||
| # key=value). No key validation, no filtering, user config.toml is | ||
| # never read. | ||
| config_overrides: list[str] = Field(default_factory=list) | ||
|
Comment on lines
+129
to
+132
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎.
devin-ai-integration[bot] marked this conversation as resolved.
Comment on lines
+129
to
+132
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 严重程度:高 问题: 触发条件: 影响: 建议改法: 在
Comment on lines
+129
to
+132
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 严重程度:高 问题: 触发条件: 影响: 建议改法: 在 |
||
|
|
||
|
|
||
| class EnvConfig(BaseModel): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.