aws / aws/aws-toolkit-vscode

Re-authenticating drops the user input and chat history

Open
#7,484 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem

## Steps to reproduce the issue

1. Open Amazon Q side panel on VSCode and wait for the auth session to be expired
2. On the "Ask a question" input, carefully type the most beautiful prompt you ever typed
3. Send the message
4. You get the "Session expired - Select a profile" button and message
5. Click on the button to renew your session and accept the login
6. The chat reloads totally empty
7. Your wonderful prompt is lost forever, and potentially all the history of context of the discussion you were having with Q 🥲

## Expected behavior

1. Open Amazon Q side panel on VSCode and wait for the auth session to be expired
2. On the "Ask a question" input, carefully type the most beautiful prompt you ever typed
3. Send the message
4. You get the "Session expired - Select a profile" button and message
5. Click on the button to renew your session and accept the login
6. The chat reloads on the state it had before (conversation history + typed message)

## System details (run `AWS: About` and/or `Amazon Q: About`)

````
OS: Darwin arm64 24.5.0
Visual Studio Code extension host: 1.100.3
Amazon Q: 1.72.0
node: 20.19.0
electron: 34.5.1
```

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the expired-session flow in the Amazon Q side panel on VS Code and trace the authentication renewal and chat reload entry points. Done means the pre-renewal conversation history and unsent prompt remain after accepting the login.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.