Commit 4dcbde0
committed
fix(agents): document skipBootstrap runtime scope and add regression for existing workspace files
Codex review on PR #75217 noted that the runtime resolver guard correctly
honors agents.defaults.skipBootstrap, but the public docs at
docs/gateway/config-agents.md still described it as workspace-creation-only,
and the diff did not include a regression proving `contextFiles` /
`injectedWorkspaceFiles` stay empty when existing workspace files are
present and skipBootstrap is true.
Align the public contract with the new runtime behavior:
- docs/gateway/config-agents.md now describes both effects of skipBootstrap
(creation + runtime injection) and points users at `contextInjection: 'never'`
if they want to keep files on disk but skip injection only.
- src/config/types.agent-defaults.ts JSDoc on `skipBootstrap` mirrors the
doc wording so editor hover and SDK consumers see the same contract.
Add a regression in src/agents/bootstrap-files.test.ts that exercises the
exact failure mode the issue described: write AGENTS.md and SOUL.md into
the workspace, then call resolveBootstrapFilesForRun and
resolveBootstrapContextForRun with skipBootstrap=true and assert both
return empty results. A second case sets skipBootstrap=false / unset and
asserts AGENTS.md is still resolved, so the guard does not regress the
default path.
Refs #751841 parent a69ba75 commit 4dcbde0
3 files changed
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
144 | 182 | | |
145 | 183 | | |
146 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
226 | 233 | | |
227 | 234 | | |
228 | 235 | | |
| |||
0 commit comments