Commit 1bd2057
fix(runner): make integrations behave more consistently in session (#1686)
This PR fixes issues with Integrations not being loaded into session
consistently. In prior test runs against `main`, a configured Jira
integration would rarely work often resulting in this type of behavior.
<img width="1593" height="1047" alt="Screenshot 2026-06-15 at 1 14
21 PM"
src="https://github.com/user-attachments/assets/da98199e-3b0f-461e-88da-cfbcca18029b"
/>
Following up to tell the agent that Jira MCP is indeed available and the
integration is configured often resulted in it not knowing the
integration was even available to it within session:
<img width="1593" height="337" alt="Screenshot 2026-06-15 at 1 14 35 PM"
src="https://github.com/user-attachments/assets/5db71adc-6760-4e01-b9aa-2b1c046efeec"
/>
Following this change Jira (and other integrations) work on the first
invocation of the prompt:
<img width="1593" height="589" alt="Screenshot 2026-06-15 at 1 13 51 PM"
src="https://github.com/user-attachments/assets/dc669252-cf51-4fd1-8aae-485a6ef7f8b1"
/>
Relates to: #1506
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added Jira auto-configuration for MCP when credentials are provided
via environment variables.
* System prompts now generate integration-specific guidance dynamically,
including conditional integration status.
* **Improvements**
* Enhanced Claude first-run initialization to rebuild MCP servers and
the Claude system prompt, ensuring the updated prompt is applied.
* Git push instructions now adapt based on detected GitHub mode and
credential/MCP configuration.
* **Tests**
* Added unit tests covering Claude run initialization and integration
prompt generation across supported providers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Kyle Squizzato <kysquizz@redhat.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent b85feee commit 1bd2057
5 files changed
Lines changed: 484 additions & 44 deletions
File tree
- components/runners/ambient-runner
- ambient_runner
- bridges
- claude
- gemini_cli
- platform
- tests
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| |||
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
722 | 741 | | |
723 | 742 | | |
724 | 743 | | |
| |||
Lines changed: 35 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
143 | 161 | | |
144 | 162 | | |
145 | 163 | | |
| |||
243 | 261 | | |
244 | 262 | | |
245 | 263 | | |
246 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
247 | 267 | | |
248 | 268 | | |
249 | 269 | | |
250 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
251 | 273 | | |
252 | 274 | | |
253 | 275 | | |
| |||
298 | 320 | | |
299 | 321 | | |
300 | 322 | | |
301 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
302 | 328 | | |
303 | 329 | | |
304 | 330 | | |
| |||
307 | 333 | | |
308 | 334 | | |
309 | 335 | | |
310 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
311 | 339 | | |
312 | 340 | | |
313 | 341 | | |
| |||
316 | 344 | | |
317 | 345 | | |
318 | 346 | | |
319 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
320 | 350 | | |
321 | 351 | | |
322 | 352 | | |
| |||
Lines changed: 22 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | 120 | | |
123 | 121 | | |
| 122 | + | |
124 | 123 | | |
125 | | - | |
126 | 124 | | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
130 | 145 | | |
131 | 146 | | |
132 | 147 | | |
| |||
173 | 188 | | |
174 | 189 | | |
175 | 190 | | |
176 | | - | |
| 191 | + | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
179 | 195 | | |
| |||
200 | 216 | | |
201 | 217 | | |
202 | 218 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 219 | + | |
| 220 | + | |
211 | 221 | | |
212 | 222 | | |
213 | 223 | | |
| |||
0 commit comments