Commit d22d74e
fix: include codeflash.toml in config resolution depth comparison
When both package.json and codeflash.toml exist in the directory tree,
parse_config_file() only compared package.json against pyproject.toml.
Java projects use codeflash.toml, which was never checked — so any
package.json in a parent directory would always win, setting the wrong
module_root and project_root.
Now we find the closest toml config (pyproject.toml or codeflash.toml)
and compare its depth against package.json, so a closer codeflash.toml
correctly takes priority.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 13fcb04 commit d22d74e
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
102 | | - | |
| 111 | + | |
103 | 112 | | |
104 | 113 | | |
105 | | - | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
110 | | - | |
111 | | - | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
0 commit comments