feat: implement autoexec prompt functionality #6946

Open
opened 2026-02-16 18:05:41 -05:00 by yindo · 1 comment
Owner

Originally created by @AndersHsueh on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

As discussed in issue #9615 in the fork, we need to implement a feature that allows users to set prompts that automatically execute at startup.\n\nOriginal request:\n建议增加一个功能,允许用户设置每次启动时自动执行的prompt,比如设置'##始终用中文回答##'这样的指令,这样就不用每次对话都重复输入相同的提示了。\n\nThis has been implemented in PR #9625 which adds:\n- autoexec_prompt field to config schema\n- Modified Session.initialize to execute autoexec prompts at session start\n- Allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command'

Originally created by @AndersHsueh on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. As discussed in issue #9615 in the fork, we need to implement a feature that allows users to set prompts that automatically execute at startup.\n\nOriginal request:\n建议增加一个功能,允许用户设置每次启动时自动执行的prompt,比如设置'##始终用中文回答##'这样的指令,这样就不用每次对话都重复输入相同的提示了。\n\nThis has been implemented in PR #9625 which adds:\n- autoexec_prompt field to config schema\n- Modified Session.initialize to execute autoexec prompts at session start\n- Allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command'
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9615: 需要一个每次启动自动执行的prompt功能 (Original feature request for autoexec prompt functionality - this is the exact same feature)

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #9615: 需要一个每次启动自动执行的prompt功能 (Original feature request for autoexec prompt functionality - this is the exact same feature) Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6946