aws / aws/amazon-q-developer-cli

Issue with Amazon Q while writing file

Open
#1,480 0 comments 0 reactions 0 assignees View on GitHub
tools
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.4.1 (24E263)

### Expected behaviour

Succeed in writing file (~/.profile)

### Actual behaviour

```
[chat-transcript]
> in my aws account there is a cloudwatch log stream for Model Streaming Lambda. can you create a command to tail it and then add a short cut alias in my ~/.profile file to do that

I'll help you create a command to tail the CloudWatch log stream for your Model Streaming Lambda and add a shortcut alias to your ~/.profile file.

First, let's create the AWS CLI command to tail the CloudWatch log stream. For this, we need to know:
1. The log group name
2. The log stream name

Since we don't have the exact log group and stream names, I'll create a command that will work with the appropriate values that you can fill in.

Let's create the command and then add it to your ~/.profile:

\```bash
aws logs tail /aws/lambda/ModelStreamingLambda --follow
\```

Now, let's add this as an alias to your ~/.profile file:
[Tool uses: none]

> ok add it. also use us-west-2 region and use format json

I'll add the alias to your ~/.profile file with the specified region and JSON format.

Let's first check if the ~/.profile file exists:
[Tool uses: fs_read]

Now I'll add the alias for tailing the Model Streaming Lambda CloudWatch logs to your ~/.profile file:
[Tool uses: fs_write]

Amazon Q is having trouble responding right now:
0: failed to print tool, `fs_write`: No such file or directory (os error 2)

Location:
/private/tmp/788abf33-519d-4264-918b-e563eeb425ff/crates/q_chat/src/lib.rs:1019

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

> /issue

I'd be happy to help you report an issue or make a feature request. There are a few ways we can do this:

1. I can help you create a GitHub issue using the `report_issue` tool, which will pre-fill information about our conversation.

2. If this is related to the service you're working with, we could create a SIM issue using Amazon's internal issue tracking system.

Would you like to:
- Report an issue with Amazon Q (using the GitHub issue template)
- Create a SIM issue for the service
- Make a feature request for something specific

Please let me know which option you prefer and provide some details about the issue or feature request you'd like to make.
[Tool uses: none]

> Report an issue with Amazon Q (using the GitHub issue template

I'll help you report an issue with Amazon Q using the GitHub issue template. To do this, I'll need some information about the issue you're experiencing.
[Tool uses: report_issue]
```

### Steps to reproduce

_No response_

### Environment

```yaml

```

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.