Skip to content

Kiro > Chat menu option gives an error and erases chat history #5406

@anacunha

Description

@anacunha

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.8.140

Bug Description

When using the right mouse menu to select part of file and send to the Kiro chat using (Kiro > Chat), the chat window gives the following error message

"We've encountered an unknown error
Cannot read properties of undefined (reading 'replace')

Return to chat"

Clicking on "Return to chat" goes to a brand new chat and the original conversation is lost form chat history.

Steps to Reproduce

  1. Open Kiro
  2. Open a Markdown file (have not tested with other types of files)
  3. Continue or start a new chat conversation
  4. Use the mouse or keyboard to select part of the text
  5. Right click to launch menu
  6. Select Kiro > Chat
  7. Chat window will display the following error message "We've encountered an unknown error Cannot read properties of undefined (reading 'replace')" and a button saying "Return to chat"
  8. Click on the "Return to chat" button, it will take you to a brand new chat session and the previous session is lost from history

Expected Behavior

  1. Text selected is sent to Kiro chat so it can be part of the context
  2. No errors when performing this task
  3. If there are any errors, that I can restore my existing chat session to the previously good state

Conversation ID

ca9e94ab-be2e-4fe4-b848-a44a32ba6564

Additional Context

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions