Skip to content

Enhance System Prompt UI with editable dialog and improved layout#28

Merged
taruma merged 4 commits intov2.0from
27-edit-system-prompt-preset
Mar 20, 2026
Merged

Enhance System Prompt UI with editable dialog and improved layout#28
taruma merged 4 commits intov2.0from
27-edit-system-prompt-preset

Conversation

@taruma
Copy link
Copy Markdown
Owner

@taruma taruma commented Mar 20, 2026

No description provided.

taruma added 4 commits March 20, 2026 15:09
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.
@taruma taruma merged commit 3452997 into v2.0 Mar 20, 2026
1 check passed
@taruma taruma deleted the 27-edit-system-prompt-preset branch March 20, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant