Repository navigation
feat(new-tab): add the Suggested section with the chat's output artifacts - #1706
Merged
Merged
Conversation
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.
Refs #1705
Refs #840
Summary
The side panel
New tabpage gets the original'sSuggestedsection: the chat's output artifacts, newest turn first, up to 24. A click opens the file in place of theNew tabtab.What changed and why
ui::screens::new_tab::output_artifactscollects saved generated images and a completed turn's answer links todocx,pdf,tex,pptxandxlsxfiles, withoutwork/and.codex_scratch/, asloadArtifactSuggestionsdoes.PDF,Document,Image, ...), split bydivide-yborders.Loading tabs…/No tabs are available for this chat; the app has no async tool load that triggers them today), and gaps 2 (Files), 3 (New page), 4 (Desktop). Not added: thumbnails, output citations, website artifacts.Test evidence
cargo test -p ui --lib new_tab: 1 passed (order, dedupe,path:line, scratch, URL, code block and in-progress cases).cargo clippy -p ui -p app --all-targetsandcargo fmt --check: clean.Rooton the replayed app-server, headless Metal window, no focus taken: front app stayedWezTermin all 23 samples). OpeningNew tabshowsSuggestedwithguide.pdf; a click givestabs=[Artifact(1)] file=/tmp/cgx-mac/proj/preview/guide.pdf.Checklist
cargo fmt --checkis clean.cargo clippy --workspace --all-targets -- -D warningsis clean. Ran onuiandapponly (host build cap).cargo test --workspacepasses. Ran the new unit test; CI runs the workspace.cargo run -p parity -- --gateon macOS. No original capture of a chat with artifacts exists yet; parity gate pending for the supervisor.## [Unreleased]inCHANGELOG.md. Brief forbids CHANGELOG edits.