Commit 67b9d07
fix: interactive PTY prompt detection for Copilot + response extraction
- Copilot prompt detection: match ❯ with "Type @" placeholder (not bare >)
- Copilot response end: detect ● (assistant marker) + new ❯ prompt
- extractResponse: Strategy 1 looks for ● markers (Copilot), Strategy 2
looks for text between ❯ lines (Claude Code)
- Trust handler: expanded to match Copilot's "Confirm folder trust" dialog
- Skips dialog screens before checking for input prompt
Tested manually with real Copilot CLI: trust auto-dismissed, multi-turn
conversation working (5+5=10, multiply by 3=30, 2 second response time).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 886a836 commit 67b9d07
2 files changed
Lines changed: 46 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | | - | |
144 | | - | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | | - | |
229 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
| |||
284 | 294 | | |
285 | 295 | | |
286 | 296 | | |
287 | | - | |
288 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
292 | | - | |
293 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
294 | 325 | | |
295 | 326 | | |
296 | 327 | | |
| |||
304 | 335 | | |
305 | 336 | | |
306 | 337 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 338 | | |
312 | 339 | | |
313 | 340 | | |
| |||
0 commit comments