-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
copilot-cli hangs when terminal command larger then PTY buffer (4KB on MacOS). It looks like a deadlock maybe because the copilot is too slow to drain/consume the PTY.
Affected version
No response
Steps to reproduce the behavior
Prompt: run 'seq 1 5000'
● Read shell output Waiting up to 10 seconds for command output
│
│ 1
│ 2
│ 3
│ 4
│ 5
│ 6
│ 7
│ 8
│ 9
│ 10
│ 11
│ 12
│ 13
│ 14
│ 15
│ 16
│ 17
│ 18
│ 19
│ 20
│ 21
│ 22
│ 23
│ 24
│ 25
│ 26
│ 27
│ 28
│ 29
│ 30
│ 31
│ 32
│ 33
│ 34
│ 35
│ 36
│ 3
│ <command with shellId: 0 is still running after 10 seconds. The command is still running. Check the output above - if it looks like the command is waiting for input, use write_bash to provide it. Otherwise, use read_bash to continue waiting for output, or stop_bash to stop it.>
│
└ 38 lines
◐ This is strange. seq 1 5000 should complete in milliseconds. It seems like it's stuck somehow. Let me stop it and try a different approach.
Expected behavior
command should return within milliseconds and output be given by copilot. No blocking.
Additional context
No response