feat(gateway): system prompt profiles UI with CRUD, section options, model overrides#190
Open
feat(gateway): system prompt profiles UI with CRUD, section options, model overrides#190
Conversation
…model overrides Add comprehensive system prompt profile management to the settings UI: - Profile CRUD: create, delete, and set-default via new RPC methods - Section Options panel: toggle runtime, user details, memory bootstrap, and datetime tail options per profile with live preview - Enabled Sections toggle grid: enable/disable individual prompt sections (required sections locked) - Model Overrides UI: route providers/models to different profiles using glob patterns with reorderable list and save - Flatten PromptProfileOverride TOML schema (backward compatible) - Collapsible template variables, preview profile name display - Replace inline styles with Tailwind classes - E2E tests for all new features
# Conflicts: # CHANGELOG.md
Contributor
Merging this PR will degrade performance by 12.02%
Performance Changes
Comparing Footnotes
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
# Conflicts: # CHANGELOG.md # crates/gateway/src/assets/style.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
system_prompt.config.create,.delete,.set_defaultRPC methods*sonnet*,openai), with reorderable list, add/remove, and save viasystem_prompt.config.overrides.saveRPCPromptProfileOverrideTOML schema —providerandmodelare now top-level fields instead of nested under[match](backward compatible)apply_section_optionsandparse_enabled_sections, 5 new E2E testsValidation
Completed
biome check --write(JS)cargo +nightly-2025-11-30 fmt --all -- --check(Rust)cargo +nightly-2025-11-30 clippy --workspace --all-targets -- -D warningscargo test(all pass, 499 gateway tests)Remaining
./scripts/local-validate.shnpx playwright test)Manual QA
[[prompt_profiles.overrides]]using[match]tables still work (backward compat)