Skip to content

inconsistency in /save and /load behavior with regard to file extensions #1918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
bcchipm opened this issue May 20, 2025 · 1 comment · May be fixed by #1939
Open
3 tasks done

inconsistency in /save and /load behavior with regard to file extensions #1918

bcchipm opened this issue May 20, 2025 · 1 comment · May be fixed by #1939

Comments

@bcchipm
Copy link

bcchipm commented May 20, 2025

Checks

Operating system

macOS 15.4.1 (24E263)

Expected behaviour

/save does not require .json and auto appends it if absent

!> /save convo

✔ Exported conversation state to convo.json

/load requires the .json file extension

!> /load convo

Failed to import from convo: No such file or directory (os error 2)

!> /load convo.json

✔ Imported conversation state from convo.json

Proposed behavior change: automatically try <fileinput>.json if no file extension provided, e.g.:

  • search for <fileinput> , if exists, try to load
    if <fileinput> file does not exist
    search for <fileinput>.json , if exists try to load

Actual behaviour

See other section

Steps to reproduce

No response

Environment

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

[q-details]
version = "1.10.1"
hash = "cb90e381cf8391beef4b966623d913e258cbb08d"
date = "2025-05-16T13:53:39.016927Z (4d ago)"
variant = "full"

[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/Work/AmazonQ/src/AmazonBuilderGenAIPowerUsersQContext"
cli-path = "/Users/USER/Work/AmazonQ/src/AmazonBuilderGenAIPowerUsersQContext"
os = "Mac"
shell-path = "/Users/USER/.toolbox/tools/toolbox/1.1.1876.0/toolbox-exec"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "toolbox"

[env-vars]
PATH = "/Users/USER/.rbenv/shims:/Users/USER/.local/share/mise/shims:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/protobuf@3/bin:/usr/local/gnat/bin:/usr/local/opt/openssl@1.1/bin:/opt/homebrew/opt/python@3/bin:/usr/local/opt/python/libexec/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin/:/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/Users/USER/.toolbox/bin:/Users/USER/bin:/System/Cryptexes/App/usr/bin:/usr/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/.odin-tools/env/OdinRetrievalScript-1.0/runtime/bin:/Users/USER/Work/EbsCLIMechanicWrapper/src/EbsCLIMechanicWrapper/src/ebs_cli_mechanic_wrapper:/Users/USER/Work/EbsCLIMechanicWrapper/src/EbsCLIMechanicWrapper/src:/Users/USER/Work/Tools/src/BcchipmToolkit/tools:/Users/USER/Work/Tools/src/BcchipmToolkit/projects:/Users/USER/Work/Tools/src/BcchipmToolkit/projects/maxis:/Users/USER/Work/Tools/src/BcchipmToolkit/tools/aws:/Users/USER/Work/Tools/src/BcchipmToolkit/tools/terminal:/Users/USER/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS"
QTERM_SESSION_ID = "6a41b08e3cdd41238d7cc61cfcc933e3"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.10.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
@Konippi
Copy link
Contributor

Konippi commented May 21, 2025

I'll fix this inconsistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants