Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Commit 44b0852

Browse files
Merge pull request #8 from PromptExecution/copilot/sub-pr-7
Fix dataclass field ordering in RalphConfig
2 parents ebe4d94 + ab751ba commit 44b0852

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

ralph/config.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
from __future__ import annotations
22

33
import os
4-
from dataclasses import dataclass
4+
from dataclasses import dataclass, field
55
from pathlib import Path
66

77

88
def _project_root() -> Path:
99
return Path(__file__).resolve().parent.parent
1010

1111

12+
def _default_codex_prompt_file() -> Path:
13+
"""Return the default codex prompt file path."""
14+
return _project_root() / "CLAUDE.md"
15+
16+
1217
@dataclass(frozen=True)
1318
class RalphConfig:
1419
"""Configuration for Ralph tool execution."""
1520

1621
# Tool selection
17-
tool: str # amp, claude, codex, or opencode
18-
19-
# Codex-specific configuration
20-
codex_prompt_file: Path
21-
codex_model: str
22-
codex_reasoning_effort: str
23-
codex_sandbox: str
24-
codex_full_auto: bool
25-
codex_extra_args: str
22+
tool: str = "amp" # amp, claude, codex, or opencode
2623

2724
# TaskMaster configuration
2825
use_mcp: bool = False
2926
taskmaster_url: str | None = None
3027

28+
# Codex-specific configuration
29+
codex_prompt_file: Path = field(default_factory=_default_codex_prompt_file)
30+
codex_model: str = "gpt-5-codex"
31+
codex_reasoning_effort: str = "high"
32+
codex_sandbox: str = "workspace-write"
33+
codex_full_auto: bool = True
34+
codex_extra_args: str = ""
35+
3136
# OpenCode-specific configuration
3237
opencode_model: str = "gpt-4"
3338
opencode_extra_args: str = ""

0 commit comments

Comments
 (0)