Enhance System Prompt UI with editable dialog and improved layout#28
Merged
Enhance System Prompt UI with editable dialog and improved layout#28
Conversation
Make the sidebar **System Prompt** textbox the single source of truth for request payloads, matching Initial/Refinement prompt behavior. Switch system preset selection to an explicit **Load** action (instead of implicit override), and set textbox initialization precedence to: config default system preset → selected system preset → `system_prompt.txt`. Also update AGENTS, README, and CHANGELOG to reflect the new UX and precedence rules. This keeps manual edits user-controlled, makes prompt provenance clearer, and aligns prompt handling across all phases.
Add an "Open large editor" action in the sidebar to launch a dedicated System Prompt dialog with apply/cancel controls. The dialog is seeded from the current `system_prompt_text` and applies edits back to session state. Also add a UI smoke test to verify the large editor button initializes `system_prompt_edit_text` from the existing sidebar prompt value, preventing accidental loss of the current prompt when switching editors.
Add `width="large"` to the `Edit System Prompt` Streamlit dialog. This gives more space for long prompt text, reducing wrapping and scrolling while editing.
Set the Phase 1 and Phase 2 Streamlit edit dialogs to use a large width, giving more space for markdown editing and reducing horizontal/vertical scrolling during review.
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.
No description provided.