Skip to content

[Bug]: cli的输入行编辑行为改进 #399

@aetheln

Description

@aetheln

What happened?

现在行编辑器响应方向键时上下为切换历史命令,如果输入比较长,跨行了,如果想编辑前面内容,输入者习惯动作会用上下来切换行修改调整编辑内容。但是当前行为会直接切换历史条目。用户发现会立刻切回去,但是会发现刚才编辑的内容丢失了。这个行为非常不爽,尤其是在和智能体沟通细节输入也比较多,来回修改的时候,尤其让人抓狂

What did you expect to happen?

对于输入部分,上下按键优先在行编辑器内移动光标调整行位置,到第一行再往上切到前一条历史,用下往回可以切换到刚才编辑的内容,并且内容需要保持不小心切出去时的内容编辑状态,不要丢失

Traceback

No response

What is your system, Python, dependency version?

No response

Additional information that you believe is relevant to this bug

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions