Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Extremely slow AI Agent response streaming (approx. 1 token/sec) over Remote SSH connection

Open barisdincer opened this issue 11 months ago • 3 comments

Before opening, please confirm:

Operating System

linux

Kiro Version

0.7.21

Bug Description

I am experiencing a significant performance issue with the AI Agent's text streaming when connected to a remote machine via SSH.

While the AI Agent works perfectly smooth on my local machine, the output rendering becomes extremely slow and laggy when I am connected to a remote host (Raspberry Pi 5) using Kiro's SSH remote feature.

The Symptom: The AI response does not stream fluently. Instead, it appears blocky or word-by-word with a delay of approximately 1 second per word. This makes the agent extremely difficult to use due to the perceived latency. Environment & Diagnostics:

Client OS: Windows 11

Remote Host: Raspberry Pi 5 8 GB

Connection Type: Remote SSH (via Tailscale)

Network Latency: Negligible. I have verified the network connection with a ping test, and the round-trip time is ~7ms average (max 22ms). The connection is "Direct" (not relay).

Why this is a bug:

Since the network latency is very low (7ms) and the remote CPU is not bottlenecking, the bottleneck seems to be related to how Kiro handles or renders the AI stream output over the SSH protocol. It feels like an output buffering issue or a rendering conflict in the integrated terminal/chat interface during remote sessions.

Steps to Reproduce

  1. Connect to a remote Linux machine using Kiro (SSH).
  2. Open the AI Agent pane.
  3. Send a prompt to the agent.
  4. Observe the response generation speed.

Expected Behavior

Expected Behavior: The text should stream fluidly, similar to the local experience or a standard SSH terminal session.

Actual Behavior: The text streams painfully slow (approx. 1 word per second), creating a severe delay in the user experience.

Conversation ID

6b88204a-4024-409f-b8d8-eaf16d697852 8affeb0b-28b7-4f4e-8d02-521bbf6ac89b

Additional Context

No response

barisdincer avatar Dec 08 '25 07:12 barisdincer

I'm having the same issue—when using Remote-SSH to connect to a Linux server, the response speed of the conversation becomes noticeably much slower.

Heyddo avatar Dec 15 '25 13:12 Heyddo

I have the same problem. Have you solved it?

laipiaozi-png avatar Dec 26 '25 12:12 laipiaozi-png

Closing this issue as it was reported against an older version of Kiro (v0.x or early v1.x) and has had no activity in several months.

Kiro has shipped significant improvements since these versions, including stability fixes, new features, and major changes across v1.0, v1.1, v2.x, and the current v2.23.x releases. The behavior described here may already be resolved.

If this is still affecting you on the latest version, please open a new issue at https://github.com/kirodotdev/Kiro/issues/new with your current version (kiro-cli --version or Help > About in the IDE), your OS, and steps to reproduce. The latest version is available at https://kiro.dev/downloads/ or via kiro-cli update.

Thank you for taking the time to report this.

AnilMaktala avatar Sep 24 '26 13:09 AnilMaktala