Repository navigation
Commit b542bdc
committed
fix(core): build /init prompt with the session directory
The command plugin substituted ${path} with location.project.directory,
the git worktree root. In a monorepo that made /init write AGENTS.md at
the repository root instead of the directory the session was opened in.
Use location.directory so ${path} points at the session location
directory, and pin the test to a session opened in a subdirectory of the
project instead of the project root.
/review is unchanged: review.txt has no ${path} placeholder.
Fixes anomalyco#528331 parent 69269e4 commit b542bdc
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments