Repository navigation
feat: add autoexec prompt functionality - #9625
AndersHsueh wants to merge 2 commits into
Conversation
- Add autoexec_prompt field to config schema - Modify Session.initialize to execute autoexec prompts at session start - This allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command' Co-authored-by: Qwen-Coder <[email protected]>
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
使用方法:Autoexec Prompt 功能此 PR 实现了 autoexec prompt 功能,以下是使用方法: 配置方式在您的配置文件(如 {
"autoexec_prompt": [
"if gh command ready then do not use git command",
"Please remember to use gh command instead of git command when available.",
"This is an auto-executed prompt to set the context for the conversation."
]
}配置文件位置您可以将此配置放在以下任一位置:
功能说明
此功能允许您设置像 'if gh command ready then do not use git command' 这样的指令,这样就不需要在每次开始新会话时重复输入相同的提示了。 |
Usage Guide: Autoexec Prompt FeatureThis PR implements the autoexec prompt functionality. Here's how to use it: ConfigurationAdd the {
"autoexec_prompt": [
"if gh command ready then do not use git command",
"Please remember to use gh command instead of git command when available.",
"This is an auto-executed prompt to set the context for the conversation."
]
}Configuration File LocationsYou can place this configuration in any of the following locations:
Feature Description
This feature allows you to set instructions like 'if gh command ready then do not use git command' so you don't have to repeatedly input the same prompts every time you start a new session. |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
This PR adds functionality to execute autoexec prompts at session start.\n\n- Add autoexec_prompt field to config schema\n- Modify Session.initialize to execute autoexec prompts at session start\n- This allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command'
resolved issue #9615