Commit 738cf99
fix: PTY CLI providers use Chat() instead of Stream() for chat handler
PTY providers (claude_code, copilot_cli, codex_cli, gemini_cli,
cursor_cli) don't support the interactive Stream() path well — their
rich TUI output breaks prompt detection. The chat handler now detects
PTY providers by name suffix and uses Chat() (non-interactive -p flag)
with fake-streaming (emit full response as single token event).
Verified: Claude Code through ratchet returns correct responses for
both simple queries ("What is 2+2?") and code generation tasks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 61b99b1 commit 738cf99
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
179 | 211 | | |
180 | 212 | | |
181 | 213 | | |
| |||
0 commit comments