Skip to content

Extra guide text output in no-interactive mode #1373

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

Closed
3 tasks done
yoskoh opened this issue Apr 27, 2025 · 0 comments
Closed
3 tasks done

Extra guide text output in no-interactive mode #1373

yoskoh opened this issue Apr 27, 2025 · 0 comments

Comments

@yoskoh
Copy link

yoskoh commented Apr 27, 2025

Checks

Operating system

macOS 15.4.1 (24E263)

Expected behaviour

In no-interactive mode, only the response from Amazon Q should be output, without any additional UI guide text.

Actual behaviour

From v1.8.0, two lines of guide text are being output to stdout in no-interactive mode:

/help all commands  •  ctrl + j new lines  •  ctrl + k fuzzy search
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This is problematic for automated tools that parse Q's output.

[chat-transcript]
> /issue

I'd be happy to help you report an issue or make a feature request. To do this properly, I can use the `report_issue` tool to open a GitHub issue template with your feedback.

Could you please provide:
1. A title for your issue or feature request
2. A description of what you expected to happen (for issues) or what feature you'd like to see
3. What actually happened (for issues) or why this feature would be valuable
4. Any steps to reproduce the issue (if applicable)

Once you provide these details, I can help you submit the report.
[Tool uses: none]

> /editor

I understand your issue. Let me help you report this properly to GitHub.
[Tool uses: report_issue]

Steps to reproduce

Run a command like:

echo "This is sample document."|(PROMPT='Say only the answer against the question simpliy,with no comment, no quart. Answer following document in Japanese.';echo "$PROMPT";echo "---";cat -)|q chat --no-interactive

The output includes the guide text before the actual response:

/help all commands  •  ctrl + j new lines  •  ctrl + k fuzzy search
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
以下はサンプル文書です。

Environment

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

[q-details]
version = "1.8.1"
hash = "93ca9c267abb459d4304e2c56fef3b97caab1072"
date = "2025-04-25T22:52:54.786001Z (1d ago)"
variant = "full"

[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M3 Pro"
total-cores = 11
memory = "18.00 GB"

[environment]
cwd = "/Users/USER/repo/bedrock-tooluse-reporter-org"
cli-path = "/Users/USER/repo/bedrock-tooluse-reporter-org"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "VSCode"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.toolbox/bin:/opt/homebrew/opt/postgresql@15/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/Library/Apple/usr/bin:/Users/USER/.local/bin"
QTERM_SESSION_ID = "1acfcce329434e87aa86b1c5fd38bb9e"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.8.1"
Q_USING_ZSH_AUTOSUGGESTIONS = "1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.microsoft.VSCode"

[chat-settings]
interactive=true

[chat-trusted_tools]

[chat-failed_request_ids]
none

[chat-context]
current_profile=default
profiles=
default

global_context=
.amazonq/rules/**/*.md
README.md
AmazonQ.md

profile_context=none

files=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant