Skip to content

Add editable dialogs for Phase outputs and refactor UI components#25

Merged
taruma merged 2 commits intov2.0from
11-editing-output
Mar 20, 2026
Merged

Add editable dialogs for Phase outputs and refactor UI components#25
taruma merged 2 commits intov2.0from
11-editing-output

Conversation

@taruma
Copy link
Copy Markdown
Owner

@taruma taruma commented Mar 20, 2026

No description provided.

taruma added 2 commits March 20, 2026 10:52
Introduce editable dialogs for both Phase 1 and Phase 2 markdown outputs so users can correct or refine generated text without cluttering the main view.

- add `PHASE1_EDITED_BY_USER` and `PHASE2_EDITED_BY_USER` state flags
- add Submit/Cancel edit dialogs for Phase 1 and Phase 2 outputs
- persist submitted edits back into session state output fields
- sync edited assistant content into conversation context so downstream refinement uses the updated Phase 1 text
- update README to document the new “Edit output” flow and refinement behavior
Extract usage text formatting into `build_usage_caption()` so usage captions can be reused consistently across render paths instead of being tied to a placeholder call.

Also reorganize Phase 1 output controls to improve clarity and reduce duplicate UI state:
- replace separate usage/copy placeholders with inline columns
- show usage caption alongside a compact ✏️ Edit button
- append “Edited by user” to the usage caption when applicable
- keep copy buttons directly under the output in both restored and streamed states

This makes the output area cleaner and keeps usage/edit/copy behavior consistent.
@taruma taruma merged commit 69535ff into v2.0 Mar 20, 2026
1 check passed
@taruma taruma deleted the 11-editing-output branch March 20, 2026 04:25
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