amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Bug: /save <path> results in "Session paths are not serialized"

Open rahulpyd opened this issue 1 year ago • 1 comments

Checks

Operating system

Linux 6.1.0-39-amd64 - Debian GNU/Linux 12 (bookworm)

Expected behaviour

/context add <some/path> /save -- should save serialized conversation to

Actual behaviour

/context add <some/path> /save -- Failed to export to chatservice: Session paths are not serialized

Steps to reproduce

q chat

/context add <some/path> /save

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.15.0"
hash = "a8a0426eaff32ac9b1599ca1b1f1881ffd16054d"
date = "2025-09-02T17:17:19.458949Z (15d ago)"

[system-info]
chip = "Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz"
total-cores = 2
memory = "15.53 GB"

[system-info.os.linux]
kernel_version = "6.1.0-39-amd64"
id = "debian"
name = "Debian GNU/Linux"
pretty_name = "Debian GNU/Linux 12 (bookworm)"
version_id = "12"
version = "12 (bookworm)"

[environment]
cwd = "/home/USER"
cli-path = "/home/USER"
install-method = "unknown"

[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/USER-packages2/protobuf/bin/:/home/USER/USER-packages2/Processing/bin:/home/USER/USER-packages2/tpwriter/bin:/home/USER/USER-packages2/calibre-bin/calibre/bin:/home/USER/USER-packages2/yt-dlp/bin:/home/USER/USER-packages2/picom/bin:/home/USER/.cabal/bin:/home/USER/.ghcup/bin:/home/USER/.cargo/bin:/home/USER/USER-packages2/gdb16/bin:/home/USER/USER-packages2/clangd/bin:/home/USER/USER-packages2/coursier:/home/USER/USER-packages2/kls/bin:/home/USER/.nvm/versions/node/v22.14.0/bin:/home/USER/.sdkman/candidates/scala/current/bin:/home/USER/.sdkman/candidates/sbt/current/bin:/home/USER/.sdkman/candidates/kotlin/current/bin:/home/USER/.sdkman/candidates/java/current/bin:/home/USER/.sdkman/candidates/gradle/current/bin:/home/USER/USER-packages/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/USER/.local/bin:/home/USER/USER-packages2/go/bin:/home/USER/go/bin:/home/USER/.local/bin:/home/USER/USER-packages2/dotnet:/home/USER/.dotnet/tools"
QTERM_SESSION_ID = "8305218316e0446c88978bb7aaa622a5"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.15.0"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "i3"
XDG_SESSION_DESKTOP = "i3"
XDG_SESSION_TYPE = "x11"

rahulpyd avatar Sep 17 '25 14:09 rahulpyd

I hit the same error message trying to save a session. It could possibly be related to sessions when context has been added through the /context add [path] command, I had files added like this in the original session I tried to save. I tested this with the following steps and was able to reproduce the error.

  1. Start a new chat session , ask a question, and get a response.
  2. Save the session. This should be successful.
  3. Add a file to the context.
  4. Save the session. This should fail with "Failed to export to [filename]: Session paths are not serialized."
  5. Remove the file from the context.
  6. Save the session. This should be successful.

My Environment:

[q-details]
version = "1.16.2"
hash = "ad0c864cba444a41b06b43e119f1d6bbc21bcf06"
date = "2025-09-19T04:21:51.975423Z (5d ago)"
variant = "minimal"

[system-info]
chip = "Neoverse-V1"
total-cores = 16
memory = "30.75 GB"

[system-info.os.linux]
kernel_version = "5.10.240-218.966.amzn2int.aarch64"
id = "amzn"
name = "Amazon Linux"
pretty_name = "Amazon Linux 2"
version_id = "2"
version = "2"
variant = "internal"

[environment]
cwd = "/local/home/USER"
cli-path = "/local/home/USER"
os = "Linux"
shell-path = Amazon Internal
shell-version = "4.2.46"
install-method = Amazon Internal
in-ssh = true

[env-vars]
PATH = "/home/USER/.local/share/m/installs/python/3.12.9/bin:/home/USER/.local/share/m/installs/python/3.11.11/bin:/home/USER/.local/share/m/installs/python/3.10.16/bin:/home/USER/.local/share/m/installs/python/3.9.21/bin:/home/USER/.local/share/m/installs/python/3.8.20/bin:/home/USER/.cargo/bin:/home/USER/.nvm/versions/node/v20.19.4/bin:/home/USER/.toolbox/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/USER/.local/bin:/home/USER/.local/bin:/home/USER/bin:/home/USER/.local/share/JetBrains/Toolbox/scripts"
Q_SET_PARENT_CHECK = "1"
SHELL = "/bin/bash"
TERM = "xterm"

horsmand avatar Sep 24 '25 14:09 horsmand