aws / aws/amazon-q-developer-cli

error: EOF while parsing an object

Open
#3,663 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

macOS 15.7.4 (24G517)

### Expected behaviour

I don't expect Kiro to encounter unrecoverable errors when writing source files.

### Actual behaviour

Kiro repeatedly runs in to this error when trying to write a particular source file:

```
Kiro is having trouble responding right now:
0: Failed to receive the next message: request_id: 79743423-0033-4872-bff4-a24131b0280d, error: EOF while parsing an object at line 1 column 84

Location:
crates/chat-cli/src/cli/chat/mod.rs:1524

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
```

It doesn't seem to be consistent for every source file, but for the particular workflow I'm trying to run it hits it every time.

### Steps to reproduce

I don't know how to reproduce this in general, but it is reliably reproduced in my project.

### Environment

```yaml

[q-details]
version = "1.27.1"
hash = "30746a31eef0bc41e66dd1fbab14ecbc4edb35cc"
date = "2026-03-05T20:36:04.628222Z (23h ago)"
variant = "full"

[system-info]
os = "macOS 15.7.4 (24G517)"
chip = "Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"
total-cores = 6
memory = "16.00 GB"

[environment]
cwd = "/Users/USER/darjeeling"
cli-path = "/Users/USER/darjeeling"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.toolbox/bin:/Users/USER/bin:/Users/USER/.pyenv/shims:/Users/USER/.local/share/mise/installs/node/lts/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/USER/.cargo/bin:/Users/USER/.local/bin"
QTERM_SESSION_ID = "ab293c423390429e93a98948f53e955c"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.27.0"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.