Commit 79a6f7a
committed
refactor: remove footgun prompting (file-based system prompt override)
Remove the feature that allowed overriding the entire system prompt via
.roo/system-prompt-{mode} files. This removes:
- Core module: loadSystemPromptFile, getSystemPromptFilePath, PromptVariables
- File-based prompt bypass in SYSTEM_PROMPT generation
- hasFileBasedSystemPromptOverride method and hasSystemPromptOverride state
- SystemPromptWarning banner component and ChatView integration
- Advanced: Override System Prompt disclosure section in ModesView
- All related i18n keys across 18 locales (advanced, advancedSystemPrompt, systemPromptWarning)
- Footgun reference in evals README
47 files changed, 714 deletions1 parent 8d57da8 commit 79a6f7a
File tree
48 files changed
+9
-720
lines changed- packages
- evals
- types/src
- src/core
- prompts
- __tests__
- sections
- __tests__
- task/__tests__
- webview
- webview-ui/src
- components
- chat
- modes
- context
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- id
- it
- ja
- ko
- nl
- pl
- pt-BR
- ru
- tr
- vi
- zh-CN
- zh-TW
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+9
-720
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | 384 | | |
386 | 385 | | |
387 | 386 | | |
| |||
645 | 644 | | |
646 | 645 | | |
647 | 646 | | |
648 | | - | |
649 | 647 | | |
650 | 648 | | |
651 | 649 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 134 deletions
This file was deleted.
0 commit comments