Repository navigation
FEAT Add seed-prompt inspiration entry and contextual Chat return - #3987
Merged
Roman Lutz (romanlutz) merged 27 commits intoNov 16, 2026
Merged
Roman Lutz (romanlutz) merged 27 commits into
Roman Lutz (romanlutz) merged 27 commits into
Conversation
Sync with upstream main, keep contextual return through catalog and example navigation, preserve conversation-editor drafts, and cover conversation/media imports with the real backend.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Returning from Datasets resets the conversation editor’s dirty baseline, allowing unsaved message edits to be discarded without saving or confirmation.
4 open issues
What changed in this PR
Adds seed-prompt discovery entry points to Chat and contextual return navigation through the existing Datasets browser and draft handoff, addressing #2752.
Changes:
- Adds an empty-chat inspiration callout and a persistent composer browse action.
- Carries Chat origin through dataset navigation and allows editor drafts to round-trip through browsing.
- Expands component and real-backend browser coverage, adds local media fixtures, and updates the GUI guide.
| File | Description |
|---|---|
tests/end_to_end/browser_initializer.py |
Seeds a local conversation with linked images. |
frontend/src/utils/routeParams.ts |
Defines and parses Chat-origin navigation state. |
frontend/src/components/Datasets/seedExampleQuery.ts |
Preserves Chat origin during cursor updates. |
frontend/src/components/Datasets/seedExampleQuery.test.ts |
Checks origin preservation in query state. |
frontend/src/components/Datasets/SeedExampleBrowser.tsx |
Distinguishes absent destinations from explicit null destinations. |
frontend/src/components/Datasets/SeedExampleBrowser.test.tsx |
Tests isolation from unrelated saved destinations. |
frontend/src/components/Datasets/DatasetSelection.tsx |
Adds contextual return links and origin-based import destinations. |
frontend/src/components/Datasets/DatasetSelection.test.tsx |
Covers contextual return and direct entry. |
frontend/src/components/Datasets/DatasetCatalog.tsx |
Adds return navigation and retains state during filtering. |
frontend/src/components/Datasets/DatasetCatalog.test.tsx |
Covers origin propagation through catalog navigation. |
frontend/src/components/Datasets/DatasetCard.tsx |
Forwards navigation state to dataset details. |
frontend/src/components/Chat/PromptEditor.styles.ts |
Styles the inspiration callout. |
frontend/src/components/Chat/ConversationEditor.tsx |
Allows dataset browsing without discard confirmation. |
frontend/src/components/Chat/ChatWindow.tsx |
Connects Chat to seed browsing. |
frontend/src/components/Chat/ChatInputArea.tsx |
Adds callout and composer browse controls. |
frontend/src/components/Chat/ChatInputArea.seed-inspiration.test.tsx |
Tests browse controls and keyboard activation without sending. |
frontend/src/App.tsx |
Captures Chat origin and clears unrelated return context. |
frontend/src/App.test.tsx |
Checks captured Chat-origin state. |
frontend/src/App.drafts.test.tsx |
Covers editor round trips and other-workspace discard confirmation. |
frontend/e2e/datasets.seeded.spec.ts |
Adds keyboard, viewport, media, and import-destination journeys. |
doc/gui/0_gui.md |
Documents seed browsing and contextual return. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain dirty baselines and editor converter snapshots, isolate dataset cursor history, keep read-only browsing available when sending is gated, and scope the navigation exemption to Chat. Cover restoration and Scanner discard protection with regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep converter initialization in the same draft transition instead of synchronizing a separate React state from the handoff effect. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Supply the shared router Request shim for the Scanner history regression and wait for the restored editor instead of querying its hidden composer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Roman Lutz (romanlutz)
marked this pull request as ready for review
November 13, 2026 22:06
Contributor
|
GUI demos: browsing seed prompts while sending is disabled, and preserving conversation edits plus converter work across a dataset round trip. pr3987-disabled-chat-browsing.webmpr3987-editor-draft-converters.webm |
Preserve editor converter snapshots alongside accepted-send draft tracking. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Wait for the notice and finding to share a settled viewport layout instead of comparing bounding boxes sampled across a resize. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Roman Lutz (romanlutz)
approved these changes
Nov 16, 2026
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.


Description
Fixes #2752.
Add an empty-Chat inspiration callout and a persistent seed-prompt action beside the composer. Capture the originating Chat route explicitly and preserve it through catalog filters, example selection, paging, runtime cursor bookkeeping, and return navigation. Direct explorer entry does not select an unrelated saved destination.
Reuse the existing draft handoff for text, conversation-editor turns, linked media, and setup. Dataset browsing preserves normal editor drafts; other workspace navigation retains discard confirmation. Browsing and return stay read-only. Importing into a new conversation uses the existing explicit conversation-creation request.
Tests and Documentation
doc/gui/0_gui.md.The seeded fixture uses existing local assets and the offline browser target; no privileged datasets or paid provider calls are required.
Developed with AI assistance under Rohitpro1's direction.