aws / aws/amazon-q-developer-cli

Context summarization loses current working directory and project location

Open
#2,707 0 comments 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.3.0 (24D60)

### Expected behaviour

When the context window overflows and conversation history is summarized, Amazon Q should preserve and restore the current working directory and project context. After summarization, Q should continue working in the same directory without needing to re-discover the project location.

### Actual behaviour

When context window overflow triggers history summarization, Amazon Q loses track of the current working directory and project location. After summarization, Q attempts to re-discover the project location, which is time-consuming and often unsuccessful, leading to workflow interruption and repeated navigation attempts.

### Steps to reproduce

1. Navigate to a specific project directory (e.g., "cd project-folder")
2. Begin working on a task that requires multiple interactions (e.g., "fix the failing unit tests")
3. Continue the conversation until context window overflow occurs and history gets summarized
4. Observe that Q no longer knows the current working directory
5. Q will attempt to re-find the project location instead of continuing work in the established directory

### 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.