[ 
https://issues.apache.org/jira/browse/CAMEL-24254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18098962#comment-18098962
 ] 

Omar Atie commented on CAMEL-24254:
-----------------------------------

[~davsclaus]  I'd like to take this if that's OK. A few clarifications before I 
implement:

h4. Configuration
 * Property names: \{{camel.tui.shell.history}} and 
\{{camel.tui.ai.promptHistory}} — or do you prefer different keys?
 * Default when unset (e.g. \{{100}} vs unlimited vs off)?
 * Does \{{0}} mean no storage _and_ no Up/Down recall?

h4. Shell (F6)
 * "Shell history" = command-line recall at \{{camel>}} (JLine), _not_ terminal 
scrollback (Page Up in the panel) — correct?
 * Persist across TUI restarts? If yes: global only or per-project 
(\{{camel-cli.properties}})?
 * Dedupe consecutive identical commands?

h4. AI prompt (F8)
 * History = submitted user input only (Up/Down on the prompt line), not the 
full LLM thread — correct?
 * Include slash commands (\{{/model}}, \{{/send}}, …) or only free-text 
prompts?
 * Session-only in memory, or persisted like shell?

h4. UX
 * Settings via properties only, or also in the TUI Settings popup?
 * Short camel-jbang / TUI doc note expected?

Implementation would extend the existing \{{camel.tui.*}} / \{{TuiUserConfig}} 
pattern (\{{ShellPanel}} already uses JLine \{{historyCommands(true)}}; 
\{{AiPanel}} has no prompt Up/Down yet).

I can wait for your answers or start with agreed defaults and refine in the PR 
— whichever you prefer.

> camel tui - Add history to shell and ai prompt
> ----------------------------------------------
>
>                 Key: CAMEL-24254
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24254
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.x
>
>
> Add setting to capture history in shell and ai prompt. For example last 100 
> or something.
> The setting can have:
> shell history: 100
> ai prompt history: 100
> And you can turn it off with 0



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to