feat(cli): persist resolved approval/clarify prompts in scrollback (#44702)
Modal prompt panels (dangerous-command approval, clarify questions) live in the prompt_toolkit layout and vanish on the next repaint, leaving no trace of the question or the decision in chat history. Emit a dim one-line summary after each prompt resolves: ⚠ Approval: <command> → allowed for session ? Clarify: <question> → <answer> Gated on display.persist_prompts (default true). Detail and outcome are whitespace-collapsed and capped at 120 chars.
This commit is contained in:
parent
8e5b7592f8
commit
4474873d2c
3 changed files with 114 additions and 0 deletions
|
|
@ -1429,6 +1429,10 @@ DEFAULT_CONFIG = {
|
|||
# behaves badly with replayed scrollback.
|
||||
"persistent_output": True,
|
||||
"persistent_output_max_lines": 200,
|
||||
# Print a one-line summary of resolved modal prompts (approval /
|
||||
# clarify) into scrollback so the question and decision survive the
|
||||
# panel repaint. Set false to keep scrollback untouched.
|
||||
"persist_prompts": True,
|
||||
"inline_diffs": True, # Show inline diff previews for write actions (write_file, patch, skill_manage)
|
||||
# File-mutation verifier footer. When true (default), the agent
|
||||
# appends a one-line advisory to its final response whenever a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue