Commit c9712c8
committed
refactor(canvas): drop vestigial anti-rewrite prompting from canvas tools
The "do not regenerate wholesale" phrasing in the checkout tool description,
its runtime message, and the generation prompt warned against a workflow a
fresh agent never sees, and could bias against legitimately large rewrites.
The one forward-looking economy nudge (prefer targeted edits over rewriting
the whole file for a small change) stays in the authoring contract in
canvasTemplates.ts, stated once.
Generated-By: PostHog Code
Task-Id: 2b3d176e-3023-41d2-92e8-81eda7c12a8c1 parent e9b12cd commit c9712c8
3 files changed
Lines changed: 6 additions & 7 deletions
File tree
- packages
- agent/src/adapters/local-tools/tools
- ui/src/features/canvas
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments