You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adk run does not support arrow keys or input history #8022
Describe the Bug:
In adk run, the arrow keys don't work at the [user]: prompt. Pressing arrow up prints ^[[A instead of recalling the previous message, and left/right arrows can't move the cursor to edit a line.
Steps to Reproduce:
pip install google-adk
Create any agent folder and run adk run my_agent
Send a message, e.g. hello
At the next [user]: prompt, press arrow up
Expected Behavior:
Arrow up recalls hello, like in most terminal programs (and the Python REPL).
Observed Behavior: ^[[A is printed. If you press Enter, the raw escape sequence '\x1b[A' is sent to the agent as the message.
Environment Details:
ADK Library Version (pip show google-adk): 2.14.0
Desktop OS: macOS
Python Version (python -V): 3.12
Model Information:
Are you using LiteLLM: No
Which model is being used: gemini-3.5-flash (not model-specific)
🟡 Optional Information
Additional Context: run_interactively in src/google/adk/cli/cli.py reads input with the built-in input(). input() only provides line editing and history after the readline module has been imported, and the CLI never imports it. Importing readline (when available; it is not on Windows) fixes it. I'm happy to send a PR.
Thanks for the clear report and the fix. We reproduced the issue and also checked #8023 which should fixes it. The arrow up now brings back the previous message instead of sending ^[[A. The change looks good but still require an in-depth review and approval from reviewer. So could you please sign the CLA so the PR can be moved forward and reviewed by reviewer?
Thanks for reproducing the issue and testing the fix!
I've signed the CLA and the check on #8023 now passes. It's ready for review whenever a
reviewer has time. I'm happy to make any changes they ask for.
Activity
llalitkumarrr commentedon Nov 12, 2026
Hello @Stephnn0,
Thanks for the clear report and the fix. We reproduced the issue and also checked #8023 which should fixes it. The arrow up now brings back the previous message instead of sending
^[[A. The change looks good but still require an in-depth review and approval from reviewer. So could you please sign the CLA so the PR can be moved forward and reviewed by reviewer?Stephnn0 commentedon Nov 12, 2026
Hi @llalitkumarrr
Thanks for reproducing the issue and testing the fix!
I've signed the CLA and the check on #8023 now passes. It's ready for review whenever a
reviewer has time. I'm happy to make any changes they ask for.