Skip to content

feat(new-tab): add the Suggested section with the chat's output artifacts - #1706

Merged
i098 merged 3 commits into
mainfrom
fm/cgx-n198-840-newtab-suggested
Dec 5, 2026
Merged

i098 merged 3 commits into
mainfrom
fm/cgx-n198-840-newtab-suggested

Conversation

@i098

@i098 i098 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Refs #1705
Refs #840

Summary

The side panel New tab page gets the original's Suggested section: the chat's output artifacts, newest turn first, up to 24. A click opens the file in place of the New tab tab.

What changed and why

  • ui::screens::new_tab::output_artifacts collects saved generated images and a completed turn's answer links to docx, pdf, tex, pptx and xlsx files, without work/ and .codex_scratch/, as loadArtifactSuggestions does.
  • The app keeps only files that exist, on the local host only, and caps at 24.
  • Rows: file icon, name, and file type (PDF, Document, Image, ...), split by divide-y borders.
  • Stays open on Add the missing side-panel tab kinds: New tab page, Files, pull request, artifact, automation #840: gap 5 (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-targets and cargo fmt --check: clean.
  • Real macOS app (Root on the replayed app-server, headless Metal window, no focus taken: front app stayed WezTerm in all 23 samples). Opening New tab shows Suggested with guide.pdf; a click gives tabs=[Artifact(1)] file=/tmp/cgx-mac/proj/preview/guide.pdf.
Before (main) After After click
before after pick

Checklist

  • One concern in this pull request.
  • The title and every commit follow Conventional Commits.
  • cargo fmt --check is clean.
  • cargo clippy --workspace --all-targets -- -D warnings is clean. Ran on ui and app only (host build cap).
  • cargo test --workspace passes. Ran the new unit test; CI runs the workspace.
  • A visual change passes cargo run -p parity -- --gate on macOS. No original capture of a chat with artifacts exists yet; parity gate pending for the supervisor.
  • A user-visible change has a line under ## [Unreleased] in CHANGELOG.md. Brief forbids CHANGELOG edits.

i098 added 2 commits December 5, 2026 04:22
…acts

- List saved generated images and answer links to documents, newest turn first, up to 24.
- Show only files that exist on the local host; a click opens the file in place of the New tab tab.

Refs #1705
Refs #840
@i098
i098 merged commit b3d20e1 into main Dec 5, 2026
4 checks passed
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