Commit 6c5b49d
fix(terminal): pass cols/rows upfront on start_claude to avoid DA1 echo
When spawning claude through the terminal-server, the pty was born at
the default 80x24 from claude-bridge.js and only got resized after the
first frame arrived. During that startup window claude sends a DA1
query ("\x1b[c" — device attributes) to detect terminal capabilities,
and the xterm.js response ("\x1b[?1;2c") was landing back in the
prompt as literal input before the process was ready for it.
Visible symptom: the Oracle terminal (and every other agent terminal)
started with "0?1;2c0?1;2c" sitting in the input line on first frame.
Fix: pass cols/rows in the start_claude options payload so the pty is
created at the right size on first spawn. The claude-bridge already
destructures `cols = 80, rows = 24` with defaults, so this lines up
cleanly — no bridge changes needed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ad16369 commit 6c5b49d
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
162 | 171 | | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| |||
0 commit comments